summaryrefslogtreecommitdiff
path: root/test/MC/AsmParser
diff options
context:
space:
mode:
authorMatt Fleming <matt@console-pimps.org>2010-07-20 21:37:30 +0000
committerMatt Fleming <matt@console-pimps.org>2010-07-20 21:37:30 +0000
commita7f9563c018d33eee1586da8aa26a1faa58a3cea (patch)
tree46dd2af7810b4f0e790b4d115b027319c118dd99 /test/MC/AsmParser
parent21d35c1399cbf353abfad82fc47c919ffbe7abc6 (diff)
downloadllvm-a7f9563c018d33eee1586da8aa26a1faa58a3cea.tar.gz
llvm-a7f9563c018d33eee1586da8aa26a1faa58a3cea.tar.bz2
llvm-a7f9563c018d33eee1586da8aa26a1faa58a3cea.tar.xz
Include some tests for the recently committed ELF section directive
handlers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108938 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/AsmParser')
-rw-r--r--test/MC/AsmParser/ELF/dg.exp6
-rw-r--r--test/MC/AsmParser/ELF/directive_section_bss.s6
-rw-r--r--test/MC/AsmParser/ELF/directive_section_data_rel.s6
-rw-r--r--test/MC/AsmParser/ELF/directive_section_data_rel_ro.s6
-rw-r--r--test/MC/AsmParser/ELF/directive_section_eh_frame.s6
-rw-r--r--test/MC/AsmParser/ELF/directive_section_rodata.s6
-rw-r--r--test/MC/AsmParser/ELF/directive_section_tbss.s6
-rw-r--r--test/MC/AsmParser/ELF/directive_section_tdata.s6
8 files changed, 48 insertions, 0 deletions
diff --git a/test/MC/AsmParser/ELF/dg.exp b/test/MC/AsmParser/ELF/dg.exp
new file mode 100644
index 0000000000..ca6aefe9c5
--- /dev/null
+++ b/test/MC/AsmParser/ELF/dg.exp
@@ -0,0 +1,6 @@
+load_lib llvm.exp
+
+if { [llvm_supports_target X86] } {
+ RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{s}]]
+}
+
diff --git a/test/MC/AsmParser/ELF/directive_section_bss.s b/test/MC/AsmParser/ELF/directive_section_bss.s
new file mode 100644
index 0000000000..66d5d9d11f
--- /dev/null
+++ b/test/MC/AsmParser/ELF/directive_section_bss.s
@@ -0,0 +1,6 @@
+# RUN: llvm-mc -triple i386-pc-linux-gnu %s | FileCheck %s
+
+ .bss
+# CHECK: .bss
+ .bss
+
diff --git a/test/MC/AsmParser/ELF/directive_section_data_rel.s b/test/MC/AsmParser/ELF/directive_section_data_rel.s
new file mode 100644
index 0000000000..1cd54cfcad
--- /dev/null
+++ b/test/MC/AsmParser/ELF/directive_section_data_rel.s
@@ -0,0 +1,6 @@
+# RUN: llvm-mc -triple i386-pc-linux-gnu %s | FileCheck %s
+
+ .data.rel
+# CHECK: .data.rel
+ .data.rel
+
diff --git a/test/MC/AsmParser/ELF/directive_section_data_rel_ro.s b/test/MC/AsmParser/ELF/directive_section_data_rel_ro.s
new file mode 100644
index 0000000000..3debab89ae
--- /dev/null
+++ b/test/MC/AsmParser/ELF/directive_section_data_rel_ro.s
@@ -0,0 +1,6 @@
+# RUN: llvm-mc -triple i386-pc-linux-gnu %s | FileCheck %s
+
+ .data.rel.ro
+# CHECK: .data.rel.ro
+ .data.rel.ro
+
diff --git a/test/MC/AsmParser/ELF/directive_section_eh_frame.s b/test/MC/AsmParser/ELF/directive_section_eh_frame.s
new file mode 100644
index 0000000000..915141d61f
--- /dev/null
+++ b/test/MC/AsmParser/ELF/directive_section_eh_frame.s
@@ -0,0 +1,6 @@
+# RUN: llvm-mc -triple i386-pc-linux-gnu %s | FileCheck %s
+
+ .eh_frame
+# CHECK: .eh_frame
+ .eh_frame
+
diff --git a/test/MC/AsmParser/ELF/directive_section_rodata.s b/test/MC/AsmParser/ELF/directive_section_rodata.s
new file mode 100644
index 0000000000..5123469c55
--- /dev/null
+++ b/test/MC/AsmParser/ELF/directive_section_rodata.s
@@ -0,0 +1,6 @@
+# RUN: llvm-mc -triple i386-pc-linux-gnu %s | FileCheck %s
+
+ .rodata
+# CHECK: .rodata
+ .rodata
+
diff --git a/test/MC/AsmParser/ELF/directive_section_tbss.s b/test/MC/AsmParser/ELF/directive_section_tbss.s
new file mode 100644
index 0000000000..edd91cadc3
--- /dev/null
+++ b/test/MC/AsmParser/ELF/directive_section_tbss.s
@@ -0,0 +1,6 @@
+# RUN: llvm-mc -triple i386-pc-linux-gnu %s | FileCheck %s
+
+ .tbss
+# CHECK: .tbss
+ .tbss
+
diff --git a/test/MC/AsmParser/ELF/directive_section_tdata.s b/test/MC/AsmParser/ELF/directive_section_tdata.s
new file mode 100644
index 0000000000..3f43016a2b
--- /dev/null
+++ b/test/MC/AsmParser/ELF/directive_section_tdata.s
@@ -0,0 +1,6 @@
+# RUN: llvm-mc -triple i386-pc-linux-gnu %s | FileCheck %s
+
+ .tdata
+# CHECK: .tdata
+ .tdata
+