aboutsummaryrefslogtreecommitdiffstats
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
commit776c0c64652dc1319b75705f198e2be24bd8994d (patch)
tree46dd2af7810b4f0e790b4d115b027319c118dd99
parent9d89738c258667352677d5058072d4eae73cf2ef (diff)
downloadexternal_llvm-776c0c64652dc1319b75705f198e2be24bd8994d.zip
external_llvm-776c0c64652dc1319b75705f198e2be24bd8994d.tar.gz
external_llvm-776c0c64652dc1319b75705f198e2be24bd8994d.tar.bz2
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
-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 0000000..ca6aefe
--- /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 0000000..66d5d9d
--- /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 0000000..1cd54cf
--- /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 0000000..3debab8
--- /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 0000000..915141d
--- /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 0000000..5123469
--- /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 0000000..edd91ca
--- /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 0000000..3f43016
--- /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
+