aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-05-12 14:30:47 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-05-12 14:30:47 +0000
commit6a80f9da8c2cb2cbf931ec8cf2a72b5f288c1bc6 (patch)
tree19280e379e52c162a7d86053590e04d7f05a799c /test/MC
parentbc3b27ccd964df7627ecff4a62715ff72f1c4a7f (diff)
downloadexternal_llvm-6a80f9da8c2cb2cbf931ec8cf2a72b5f288c1bc6.zip
external_llvm-6a80f9da8c2cb2cbf931ec8cf2a72b5f288c1bc6.tar.gz
external_llvm-6a80f9da8c2cb2cbf931ec8cf2a72b5f288c1bc6.tar.bz2
ELF: Add support for the asm .version directive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/ELF/version.s17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/MC/ELF/version.s b/test/MC/ELF/version.s
new file mode 100644
index 0000000..31e952a
--- /dev/null
+++ b/test/MC/ELF/version.s
@@ -0,0 +1,17 @@
+// RUN: llvm-mc -filetype=obj -triple i386-pc-linux-gnu %s -o - | elf-dump --dump-section-data | FileCheck %s
+
+.version "1234"
+.version "123"
+
+// CHECK: (('sh_name', 0x0000000c) # '.note'
+// CHECK-NEXT: ('sh_type', 0x00000007)
+// CHECK-NEXT: ('sh_flags', 0x00000000)
+// CHECK-NEXT: ('sh_addr', 0x00000000)
+// CHECK-NEXT: ('sh_offset', 0x00000034)
+// CHECK-NEXT: ('sh_size', 0x00000024)
+// CHECK-NEXT: ('sh_link', 0x00000000)
+// CHECK-NEXT: ('sh_info', 0x00000000)
+// CHECK-NEXT: ('sh_addralign', 0x00000004)
+// CHECK-NEXT: ('sh_entsize', 0x00000000)
+// CHECK-NEXT: ('_section_data', '05000000 00000000 01000000 31323334 00000000 04000000 00000000 01000000 31323300')
+// CHECK-NEXT: ),