aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/2010-10-19-mc-elf-objheader.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/2010-10-19-mc-elf-objheader.ll')
-rw-r--r--test/CodeGen/ARM/2010-10-19-mc-elf-objheader.ll19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/2010-10-19-mc-elf-objheader.ll b/test/CodeGen/ARM/2010-10-19-mc-elf-objheader.ll
new file mode 100644
index 0000000..d854238
--- /dev/null
+++ b/test/CodeGen/ARM/2010-10-19-mc-elf-objheader.ll
@@ -0,0 +1,19 @@
+; RUN: llc %s -mtriple=arm-linux-gnueabi -filetype=obj -o - | \
+; RUN: elf-dump --dump-section-data | FileCheck %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'
+
+define i32 @f(i64 %z) {
+ ret i32 0
+}