Include some tests for the recently committed ELF section directive
authorMatt Fleming <matt@console-pimps.org>
Tue, 20 Jul 2010 21:37:30 +0000 (21:37 +0000)
committerMatt Fleming <matt@console-pimps.org>
Tue, 20 Jul 2010 21:37:30 +0000 (21:37 +0000)
handlers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108938 91177308-0d34-0410-b5e6-96231b3b80d8

test/MC/AsmParser/ELF/dg.exp [new file with mode: 0644]
test/MC/AsmParser/ELF/directive_section_bss.s [new file with mode: 0644]
test/MC/AsmParser/ELF/directive_section_data_rel.s [new file with mode: 0644]
test/MC/AsmParser/ELF/directive_section_data_rel_ro.s [new file with mode: 0644]
test/MC/AsmParser/ELF/directive_section_eh_frame.s [new file with mode: 0644]
test/MC/AsmParser/ELF/directive_section_rodata.s [new file with mode: 0644]
test/MC/AsmParser/ELF/directive_section_tbss.s [new file with mode: 0644]
test/MC/AsmParser/ELF/directive_section_tdata.s [new file with mode: 0644]

diff --git a/test/MC/AsmParser/ELF/dg.exp b/test/MC/AsmParser/ELF/dg.exp
new file mode 100644 (file)
index 0000000..ca6aefe
--- /dev/null
@@ -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 (file)
index 0000000..66d5d9d
--- /dev/null
@@ -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 (file)
index 0000000..1cd54cf
--- /dev/null
@@ -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 (file)
index 0000000..3debab8
--- /dev/null
@@ -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 (file)
index 0000000..915141d
--- /dev/null
@@ -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 (file)
index 0000000..5123469
--- /dev/null
@@ -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 (file)
index 0000000..edd91ca
--- /dev/null
@@ -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 (file)
index 0000000..3f43016
--- /dev/null
@@ -0,0 +1,6 @@
+# RUN: llvm-mc -triple i386-pc-linux-gnu %s | FileCheck %s
+
+       .tdata
+# CHECK: .tdata
+       .tdata
+