2013-12-11 17:16:25 +00:00
|
|
|
@ Test the .arch directive for armv4
|
|
|
|
|
|
|
|
@ This test case will check the default .ARM.attributes value for the
|
|
|
|
@ armv4 architecture.
|
|
|
|
|
2013-12-11 19:38:10 +00:00
|
|
|
@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
|
2013-12-11 17:16:25 +00:00
|
|
|
@ RUN: | FileCheck %s --check-prefix=CHECK-ASM
|
2013-12-11 19:38:10 +00:00
|
|
|
@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
|
2013-12-11 17:16:25 +00:00
|
|
|
@ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
|
|
|
|
|
|
|
|
.syntax unified
|
|
|
|
.arch armv4
|
|
|
|
|
|
|
|
@ CHECK-ASM: .arch armv4
|
|
|
|
|
|
|
|
@ CHECK-OBJ: Name: .ARM.attributes
|
|
|
|
@ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
|
|
|
|
@ CHECK-OBJ: Flags [ (0x0)
|
|
|
|
@ CHECK-OBJ: ]
|
|
|
|
@ CHECK-OBJ: Address: 0x0
|
2014-01-12 03:35:18 +00:00
|
|
|
@ CHECK-OBJ: Offset: 0x{{[0-9A-F]*}}
|
2013-12-11 17:16:25 +00:00
|
|
|
@ CHECK-OBJ: Size: 23
|
|
|
|
@ CHECK-OBJ: Link: 0
|
|
|
|
@ CHECK-OBJ: Info: 0
|
|
|
|
@ CHECK-OBJ: AddressAlignment: 1
|
|
|
|
@ CHECK-OBJ: EntrySize: 0
|
|
|
|
@ CHECK-OBJ: SectionData (
|
|
|
|
@ CHECK-OBJ: 0000: 41160000 00616561 62690001 0C000000 |A....aeabi......|
|
|
|
|
@ CHECK-OBJ: 0010: 05340006 010801 |.4.....|
|
|
|
|
@ CHECK-OBJ: )
|
2014-01-12 03:35:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
@ Check that multiplication is supported
|
|
|
|
mul r4, r5, r6
|
|
|
|
smull r4, r5, r6, r3
|
|
|
|
umull r4, r5, r6, r3
|
|
|
|
smlal r4, r5, r6, r3
|
2014-01-12 03:38:30 +00:00
|
|
|
umlal r4, r5, r6, r3
|