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: 30
21 ; BASIC-NEXT: AddressAlignment: 1
22 ; BASIC-NEXT: EntrySize: 0
23 ; BASIC-NEXT: SectionData (
24 ; BASIC-NEXT: 0000: 411D0000 00616561 62690001 13000000
25 ; BASIC-NEXT: 0010: 06010801 14011501 17031801 1901
28 ; CORTEXA8: Name: .ARM.attributes
29 ; CORTEXA8-NEXT: Type: SHT_ARM_ATTRIBUTES
30 ; CORTEXA8-NEXT: Flags [ (0x0)
32 ; CORTEXA8-NEXT: Address: 0x0
33 ; CORTEXA8-NEXT: Offset: 0x3C
34 ; CORTEXA8-NEXT: Size: 47
35 ; CORTEXA8-NEXT: Link: 0
36 ; CORTEXA8-NEXT: Info: 0
37 ; CORTEXA8-NEXT: AddressAlignment: 1
38 ; CORTEXA8-NEXT: EntrySize: 0
39 ; CORTEXA8-NEXT: SectionData (
40 ; CORTEXA8-NEXT: 0000: 412E0000 00616561 62690001 24000000
41 ; CORTEXA8-NEXT: 0010: 05434F52 5445582D 41380006 0A074108
42 ; CORTEXA8-NEXT: 0020: 0109020A 02140115 01170318 011901
45 define i32 @f(i64 %z) {