From: Matt Fleming Date: Tue, 20 Jul 2010 21:37:30 +0000 (+0000) Subject: Include some tests for the recently committed ELF section directive X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a7f9563c018d33eee1586da8aa26a1faa58a3cea;p=oota-llvm.git 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 --- diff --git a/test/MC/AsmParser/ELF/dg.exp b/test/MC/AsmParser/ELF/dg.exp new file mode 100644 index 00000000000..ca6aefe9c53 --- /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 00000000000..66d5d9d11fb --- /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 00000000000..1cd54cfcade --- /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 00000000000..3debab89ae6 --- /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 00000000000..915141d61f7 --- /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 00000000000..5123469c55f --- /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 00000000000..edd91cadc32 --- /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 00000000000..3f43016a2be --- /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 +