1 ; RUN: llc %s -mtriple=arm-linux-gnueabi -filetype=obj -o - | \
2 ; RUN: llvm-readobj -s -sd | FileCheck -check-prefix=BASIC %s
3 ; RUN: llc %s -mtriple=armv7-linux-gnueabi -march=arm -mcpu=cortex-a8 \
4 ; RUN: -mattr=-neon,-vfp3,+vfp2 \
5 ; RUN: -arm-reserve-r9 -filetype=obj -o - | \
6 ; RUN: llvm-readobj -s -sd | FileCheck -check-prefix=CORTEXA8 %s
9 ; This tests that the extpected ARM attributes are emitted.
12 ; BASIC: Name: .ARM.attributes
13 ; BASIC-NEXT: Type: SHT_ARM_ATTRIBUTES
14 ; BASIC-NEXT: Flags [ (0x0)
16 ; BASIC-NEXT: Address: 0x0
17 ; BASIC-NEXT: Offset: 0x3C
18 ; BASIC-NEXT: Size: 34
21 ; BASIC-NEXT: AddressAlignment: 1
22 ; BASIC-NEXT: EntrySize: 0
23 ; BASIC-NEXT: SectionData (
24 ; BASIC-NEXT: 0000: 41210000 00616561 62690001 17000000
25 ; BASIC-NEXT: 0010: 060A0741 08010902 14011501 17031801
26 ; BASIC-NEXT: 0020: 1901
29 ; CORTEXA8: Name: .ARM.attributes
30 ; CORTEXA8-NEXT: Type: SHT_ARM_ATTRIBUTES
31 ; CORTEXA8-NEXT: Flags [ (0x0)
33 ; CORTEXA8-NEXT: Address: 0x0
34 ; CORTEXA8-NEXT: Offset: 0x3C
35 ; CORTEXA8-NEXT: Size: 47
36 ; CORTEXA8-NEXT: Link: 0
37 ; CORTEXA8-NEXT: Info: 0
38 ; CORTEXA8-NEXT: AddressAlignment: 1
39 ; CORTEXA8-NEXT: EntrySize: 0
40 ; CORTEXA8-NEXT: SectionData (
41 ; CORTEXA8-NEXT: 0000: 412E0000 00616561 62690001 24000000
42 ; CORTEXA8-NEXT: 0010: 05434F52 5445582D 41380006 0A074108
43 ; CORTEXA8-NEXT: 0020: 0109020A 02140115 01170318 011901
46 define i32 @f(i64 %z) {