From 2d59116fa250bd584bbf4e8432304b5e6780fdfd Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sat, 5 Jun 1999 23:14:42 +0000 Subject: [PATCH] * gas/elf/elf.exp: New directory. * gas/elf/section0.[sd]: New test. * gas/elf/section1.[sd]: New test. --- gas/testsuite/ChangeLog | 6 ++++++ gas/testsuite/gas/elf/elf.exp | 14 ++++++++++++++ gas/testsuite/gas/elf/section0.d | 14 ++++++++++++++ gas/testsuite/gas/elf/section0.s | 16 ++++++++++++++++ gas/testsuite/gas/elf/section1.d | 14 ++++++++++++++ gas/testsuite/gas/elf/section1.s | 32 ++++++++++++++++++++++++++++++++ 6 files changed, 96 insertions(+) create mode 100644 gas/testsuite/gas/elf/elf.exp create mode 100644 gas/testsuite/gas/elf/section0.d create mode 100644 gas/testsuite/gas/elf/section0.s create mode 100644 gas/testsuite/gas/elf/section1.d create mode 100644 gas/testsuite/gas/elf/section1.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 67b7a7fdd..f85f23925 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +1999-06-05 Richard Henderson + + * gas/elf/elf.exp: New directory. + * gas/elf/section0.[sd]: New test. + * gas/elf/section1.[sd]: New test. + 1999-06-03 Philip Blundell * gas/arm/arm7t.d, gas/arm/inst.d: Update to match current gas, diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp new file mode 100644 index 000000000..274b9ceda --- /dev/null +++ b/gas/testsuite/gas/elf/elf.exp @@ -0,0 +1,14 @@ +# +# elf tests +# + +# We're testing bits in obj-elf -- don't run on anything else. +if { [istarget "*-elf*"] + || [istarget "*-linux*"] + || [istarget "sparc*-*-solaris*"] + || [istarget "mips*-*-irix6*"] } then { + + run_dump_test "section0" + run_dump_test "section1" + +} diff --git a/gas/testsuite/gas/elf/section0.d b/gas/testsuite/gas/elf/section0.d new file mode 100644 index 000000000..60547c2e5 --- /dev/null +++ b/gas/testsuite/gas/elf/section0.d @@ -0,0 +1,14 @@ +#objdump: -s +#name: elf section0 + +.*: +file format .* + +Contents of section .text: +Contents of section .data: + 0000 0000 .. +Contents of section A: + 0000 010101 ... +Contents of section B: + 0000 0202 .. +Contents of section C: + 0000 03 . diff --git a/gas/testsuite/gas/elf/section0.s b/gas/testsuite/gas/elf/section0.s new file mode 100644 index 000000000..bdc8f0c75 --- /dev/null +++ b/gas/testsuite/gas/elf/section0.s @@ -0,0 +1,16 @@ +.data + .byte 0 +.section A + .byte 1 +.pushsection B + .byte 2 +.pushsection C + .byte 3 +.popsection + .byte 2 +.popsection + .byte 1 +.previous + .byte 0 +.previous + .byte 1 diff --git a/gas/testsuite/gas/elf/section1.d b/gas/testsuite/gas/elf/section1.d new file mode 100644 index 000000000..52a16a3a4 --- /dev/null +++ b/gas/testsuite/gas/elf/section1.d @@ -0,0 +1,14 @@ +#objdump: -s +#name: elf section1 + +.*: +file format .* + +Contents of section .text: +Contents of section .data: + 0000 000000 ... +Contents of section A: + 0000 01010101 0101 ...... +Contents of section B: + 0000 02020202 02 ..... +Contents of section C: + 0000 0303 .. diff --git a/gas/testsuite/gas/elf/section1.s b/gas/testsuite/gas/elf/section1.s new file mode 100644 index 000000000..1592adffb --- /dev/null +++ b/gas/testsuite/gas/elf/section1.s @@ -0,0 +1,32 @@ +.data + .byte 0 +.section A + .byte 1 +.previous + .byte 0 +.previous + .byte 1 +.pushsection B + .byte 2 +.previous + .byte 1 +.previous + .byte 2 +.pushsection C + .byte 3 +.previous + .byte 2 +.previous + .byte 3 +.popsection + .byte 2 +.previous + .byte 1 +.previous + .byte 2 +.popsection + .byte 1 +.previous + .byte 0 +.previous + .byte 1 -- 2.11.4.GIT