diff options
author | Matt Fleming <matt@console-pimps.org> | 2010-07-20 21:37:30 +0000 |
---|---|---|
committer | Matt Fleming <matt@console-pimps.org> | 2010-07-20 21:37:30 +0000 |
commit | c3eb5e3d4bf1152b702a196b903c9c6559b02b1c (patch) | |
tree | 16c1880be86594729f040ad5d347ca57f861911d | |
parent | 94027202e0b3f23ceb9fc2f9b9e3d51fe42ed3bc (diff) | |
download | bcm5719-llvm-c3eb5e3d4bf1152b702a196b903c9c6559b02b1c.tar.gz bcm5719-llvm-c3eb5e3d4bf1152b702a196b903c9c6559b02b1c.zip |
Include some tests for the recently committed ELF section directive
handlers.
llvm-svn: 108938
8 files changed, 48 insertions, 0 deletions
diff --git a/llvm/test/MC/AsmParser/ELF/dg.exp b/llvm/test/MC/AsmParser/ELF/dg.exp new file mode 100644 index 00000000000..ca6aefe9c53 --- /dev/null +++ b/llvm/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/llvm/test/MC/AsmParser/ELF/directive_section_bss.s b/llvm/test/MC/AsmParser/ELF/directive_section_bss.s new file mode 100644 index 00000000000..66d5d9d11fb --- /dev/null +++ b/llvm/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/llvm/test/MC/AsmParser/ELF/directive_section_data_rel.s b/llvm/test/MC/AsmParser/ELF/directive_section_data_rel.s new file mode 100644 index 00000000000..1cd54cfcade --- /dev/null +++ b/llvm/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/llvm/test/MC/AsmParser/ELF/directive_section_data_rel_ro.s b/llvm/test/MC/AsmParser/ELF/directive_section_data_rel_ro.s new file mode 100644 index 00000000000..3debab89ae6 --- /dev/null +++ b/llvm/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/llvm/test/MC/AsmParser/ELF/directive_section_eh_frame.s b/llvm/test/MC/AsmParser/ELF/directive_section_eh_frame.s new file mode 100644 index 00000000000..915141d61f7 --- /dev/null +++ b/llvm/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/llvm/test/MC/AsmParser/ELF/directive_section_rodata.s b/llvm/test/MC/AsmParser/ELF/directive_section_rodata.s new file mode 100644 index 00000000000..5123469c55f --- /dev/null +++ b/llvm/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/llvm/test/MC/AsmParser/ELF/directive_section_tbss.s b/llvm/test/MC/AsmParser/ELF/directive_section_tbss.s new file mode 100644 index 00000000000..edd91cadc32 --- /dev/null +++ b/llvm/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/llvm/test/MC/AsmParser/ELF/directive_section_tdata.s b/llvm/test/MC/AsmParser/ELF/directive_section_tdata.s new file mode 100644 index 00000000000..3f43016a2be --- /dev/null +++ b/llvm/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 + |