Rafael Espindola | cecbc3d | 2010-10-25 17:50:35 +0000 | [diff] [blame] | 1 | ; RUN: llc %s -mtriple=arm-linux-gnueabi -filetype=obj -o - | \ |
Jason W Kim | 69ad713 | 2010-11-08 17:58:07 +0000 | [diff] [blame^] | 2 | ; RUN: elf-dump --dump-section-data | FileCheck -check-prefix=BASIC %s |
| 3 | ; RUN: llc %s -march=arm -mcpu=cortex-a8 -mattr=-neon -mattr=+vfp2 \ |
| 4 | ; RUN: -arm-reserve-r9 -arm-use-movt -filetype=obj -o - | \ |
| 5 | ; RUN: elf-dump --dump-section-data | FileCheck -check-prefix=CORTEXA8 %s |
| 6 | |
| 7 | |
Rafael Espindola | cecbc3d | 2010-10-25 17:50:35 +0000 | [diff] [blame] | 8 | ; This tests that the extpected ARM attributes are emitted. |
| 9 | ; |
Jason W Kim | 69ad713 | 2010-11-08 17:58:07 +0000 | [diff] [blame^] | 10 | ; BASIC: .ARM.attributes |
| 11 | ; BASIC-NEXT: 0x70000003 |
| 12 | ; BASIC-NEXT: 0x00000000 |
| 13 | ; BASIC-NEXT: 0x00000000 |
| 14 | ; BASIC-NEXT: 0x0000003c |
| 15 | ; BASIC-NEXT: 0x00000022 |
| 16 | ; BASIC-NEXT: 0x00000000 |
| 17 | ; BASIC-NEXT: 0x00000000 |
| 18 | ; BASIC-NEXT: 0x00000001 |
| 19 | ; BASIC-NEXT: 0x00000000 |
| 20 | ; BASIC-NEXT: '41210000 00616561 62690001 17000000 06020801 09011401 15011703 18011901 2c01' |
| 21 | |
| 22 | ; CORTEXA8: .ARM.attributes |
| 23 | ; CORTEXA8-NEXT: 0x70000003 |
| 24 | ; CORTEXA8-NEXT: 0x00000000 |
| 25 | ; CORTEXA8-NEXT: 0x00000000 |
| 26 | ; CORTEXA8-NEXT: 0x0000003c |
| 27 | ; CORTEXA8-NEXT: 0x00000031 |
| 28 | ; CORTEXA8-NEXT: 0x00000000 |
| 29 | ; CORTEXA8-NEXT: 0x00000000 |
| 30 | ; CORTEXA8-NEXT: 0x00000001 |
| 31 | ; CORTEXA8-NEXT: 0x00000000 |
| 32 | ; CORTEXA8-NEXT: '41300000 00616561 62690001 26000000 05434f52 5445582d 41380006 0a074108 0109020a 02140115 01170318 0119012c 01' |
Rafael Espindola | cecbc3d | 2010-10-25 17:50:35 +0000 | [diff] [blame] | 33 | |
| 34 | define i32 @f(i64 %z) { |
| 35 | ret i32 0 |
| 36 | } |