1 ; RUN: llc %s -mtriple=arm-linux-gnueabi -filetype=obj -o - | \
2 ; RUN: elf-dump --dump-section-data | 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: elf-dump --dump-section-data | FileCheck -check-prefix=CORTEXA8 %s
9 ; This tests that the extpected ARM attributes are emitted.
11 ; BASIC: .ARM.attributes
12 ; BASIC-NEXT: 0x70000003
13 ; BASIC-NEXT: 0x00000000
14 ; BASIC-NEXT: 0x00000000
15 ; BASIC-NEXT: 0x0000003c
16 ; BASIC-NEXT: 0x00000020
17 ; BASIC-NEXT: 0x00000000
18 ; BASIC-NEXT: 0x00000000
19 ; BASIC-NEXT: 0x00000001
20 ; BASIC-NEXT: 0x00000000
21 ; BASIC-NEXT: '411f0000 00616561 62690001 15000000 06020801 09011401 15011703 18011901'
23 ; CORTEXA8: .ARM.attributes
24 ; CORTEXA8-NEXT: 0x70000003
25 ; CORTEXA8-NEXT: 0x00000000
26 ; CORTEXA8-NEXT: 0x00000000
27 ; CORTEXA8-NEXT: 0x0000003c
28 ; CORTEXA8-NEXT: 0x0000002f
29 ; CORTEXA8-NEXT: 0x00000000
30 ; CORTEXA8-NEXT: 0x00000000
31 ; CORTEXA8-NEXT: 0x00000001
32 ; CORTEXA8-NEXT: 0x00000000
33 ; CORTEXA8-NEXT: '412e0000 00616561 62690001 24000000 05434f52 5445582d 41380006 0a074108 0109020a 02140115 01170318 011901'
35 define i32 @f(i64 %z) {