summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/ARM/2010-09-29-mc-asm-header-test.ll10
-rw-r--r--llvm/test/CodeGen/ARM/2010-10-19-mc-elf-objheader.ll42
2 files changed, 35 insertions, 17 deletions
diff --git a/llvm/test/CodeGen/ARM/2010-09-29-mc-asm-header-test.ll b/llvm/test/CodeGen/ARM/2010-09-29-mc-asm-header-test.ll
index 561588d9494..bda14bcb152 100644
--- a/llvm/test/CodeGen/ARM/2010-09-29-mc-asm-header-test.ll
+++ b/llvm/test/CodeGen/ARM/2010-09-29-mc-asm-header-test.ll
@@ -2,11 +2,11 @@
; This tests that MC/asm header conversion is smooth
;
; CHECK: .syntax unified
-; CHECK-NEXT: .eabi_attribute 20, 1
-; CHECK-NEXT: .eabi_attribute 21, 1
-; CHECK-NEXT: .eabi_attribute 23, 3
-; CHECK-NEXT: .eabi_attribute 24, 1
-; CHECK-NEXT: .eabi_attribute 25, 1
+; CHECK: .eabi_attribute 20, 1
+; CHECK: .eabi_attribute 21, 1
+; CHECK: .eabi_attribute 23, 3
+; CHECK: .eabi_attribute 24, 1
+; CHECK: .eabi_attribute 25, 1
define i32 @f(i64 %z) {
ret i32 0
diff --git a/llvm/test/CodeGen/ARM/2010-10-19-mc-elf-objheader.ll b/llvm/test/CodeGen/ARM/2010-10-19-mc-elf-objheader.ll
index d854238c04c..ee443febcc1 100644
--- a/llvm/test/CodeGen/ARM/2010-10-19-mc-elf-objheader.ll
+++ b/llvm/test/CodeGen/ARM/2010-10-19-mc-elf-objheader.ll
@@ -1,18 +1,36 @@
; RUN: llc %s -mtriple=arm-linux-gnueabi -filetype=obj -o - | \
-; RUN: elf-dump --dump-section-data | FileCheck %s
+; RUN: elf-dump --dump-section-data | FileCheck -check-prefix=BASIC %s
+; RUN: llc %s -mtriple=armv7-linux-gnueabi -march=arm -mcpu=cortex-a8 \
+; RUN: -mattr=-neon -mattr=+vfp2 \
+; RUN: -arm-reserve-r9 -filetype=obj -o - | \
+; RUN: elf-dump --dump-section-data | FileCheck -check-prefix=CORTEXA8 %s
+
+
; This tests that the extpected ARM attributes are emitted.
;
-; CHECK: .ARM.attributes
-; CHECK-NEXT: 0x70000003
-; CHECK-NEXT: 0x00000000
-; CHECK-NEXT: 0x00000000
-; CHECK-NEXT: 0x0000003c
-; CHECK-NEXT: 0x00000022
-; CHECK-NEXT: 0x00000000
-; CHECK-NEXT: 0x00000000
-; CHECK-NEXT: 0x00000001
-; CHECK-NEXT: 0x00000000
-; CHECK-NEXT: '41210000 00616561 62690001 17000000 06020801 09011401 15011703 18011901 2c01'
+; BASIC: .ARM.attributes
+; BASIC-NEXT: 0x70000003
+; BASIC-NEXT: 0x00000000
+; BASIC-NEXT: 0x00000000
+; BASIC-NEXT: 0x0000003c
+; BASIC-NEXT: 0x00000020
+; BASIC-NEXT: 0x00000000
+; BASIC-NEXT: 0x00000000
+; BASIC-NEXT: 0x00000001
+; BASIC-NEXT: 0x00000000
+; BASIC-NEXT: '411f0000 00616561 62690001 15000000 06020801 09011401 15011703 18011901'
+
+; CORTEXA8: .ARM.attributes
+; CORTEXA8-NEXT: 0x70000003
+; CORTEXA8-NEXT: 0x00000000
+; CORTEXA8-NEXT: 0x00000000
+; CORTEXA8-NEXT: 0x0000003c
+; CORTEXA8-NEXT: 0x0000002f
+; CORTEXA8-NEXT: 0x00000000
+; CORTEXA8-NEXT: 0x00000000
+; CORTEXA8-NEXT: 0x00000001
+; CORTEXA8-NEXT: 0x00000000
+; CORTEXA8-NEXT: '412e0000 00616561 62690001 24000000 05434f52 5445582d 41380006 0a074108 0109020a 02140115 01170318 011901'
define i32 @f(i64 %z) {
ret i32 0
OpenPOWER on IntegriCloud