diff options
author | Jan Beulich <jbeulich@novell.com> | 2005-11-07 08:04:56 +0000 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2005-11-07 08:04:56 +0000 |
commit | 5ca0ee011b4dec43633a4e174d3d0ac85add12a4 (patch) | |
tree | 98a6ef64396aa19ceb060bba31d9d4c7dbfe8aa0 /gas | |
parent | 5157cd8a4f683098b5463886d8041e45914b613c (diff) | |
download | gdb-5ca0ee011b4dec43633a4e174d3d0ac85add12a4.zip gdb-5ca0ee011b4dec43633a4e174d3d0ac85add12a4.tar.gz gdb-5ca0ee011b4dec43633a4e174d3d0ac85add12a4.tar.bz2 |
gas/testsuite/
2005-11-07 Jan Beulich <jbeulich@novell.com>
* gas/all/redef2.[sd]: New.
* gas/all/gas.exp: Run new test.
* gas/elf/redef.d: New.
* gas/elf/elf.exp: Run new test.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/all/gas.exp | 3 | ||||
-rw-r--r-- | gas/testsuite/gas/all/redef2.d | 13 | ||||
-rw-r--r-- | gas/testsuite/gas/all/redef2.s | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/elf.exp | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/redef.d | 14 |
6 files changed, 57 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 92c0d65..d9a47c5 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2005-11-07 Jan Beulich <jbeulich@novell.com> + + * gas/all/redef2.[sd]: New. + * gas/all/gas.exp: Run new test. + * gas/elf/redef.d: New. + * gas/elf/elf.exp: Run new test. + 2005-11-07 Alan Modra <amodra@bigpond.net.au> * gas/i386/divide.s: Test line comment starting with '/'. diff --git a/gas/testsuite/gas/all/gas.exp b/gas/testsuite/gas/all/gas.exp index 0c7e4df..7eb180b 100644 --- a/gas/testsuite/gas/all/gas.exp +++ b/gas/testsuite/gas/all/gas.exp @@ -81,6 +81,9 @@ case $target_triplet in { default { setup_xfail "*c30*-*-*" "*c4x*-*-*" "pdp11-*-*" run_dump_test redef + setup_xfail "*c30*-*-*" "*c4x*-*-*" "*arm*-*-coff" "arm*-*-pe*" "crx*-*-*" + setup_xfail "h8300*-*-*" "m68hc*-*-*" "maxq-*-*" "pdp11-*-*" "vax*-*-*" "z8k-*-*" + run_dump_test redef2 } } diff --git a/gas/testsuite/gas/all/redef2.d b/gas/testsuite/gas/all/redef2.d new file mode 100644 index 0000000..452d610 --- /dev/null +++ b/gas/testsuite/gas/all/redef2.d @@ -0,0 +1,13 @@ +#objdump: -rsj .data +#name: .equ redefinitions (2) + +.*: .* + +RELOCATION RECORDS FOR .* +.* +0+0.*(here|\.data) +0+8.*xtrn +#... +Contents of section \.data: + 0000 00000000 11111111 00000000 22222222[ ]+................[ ]* +#pass diff --git a/gas/testsuite/gas/all/redef2.s b/gas/testsuite/gas/all/redef2.s new file mode 100644 index 0000000..3e975e1 --- /dev/null +++ b/gas/testsuite/gas/all/redef2.s @@ -0,0 +1,10 @@ + .data +here: + .set sym, here + .long sym + .set sym, 0x11111111 + .long sym + .set sym, xtrn + .long sym + .set sym, 0x22222222 + .long sym diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp index 4068253..43265d0 100644 --- a/gas/testsuite/gas/elf/elf.exp +++ b/gas/testsuite/gas/elf/elf.exp @@ -61,6 +61,16 @@ if { ([istarget "*-*-*elf*"] run_dump_test "group0b" run_dump_test "group1a" run_dump_test "group1b" + case $target_triplet in { + { alpha*-*-* } { } + { hppa*-*-* } { } + { iq2000*-*-* } { } + { mips*-*-* } { } + { *c54x*-*-* } { } + default { + run_dump_test redef + } + } run_dump_test "section0" run_dump_test "section1" run_list_test "section2" "$target_machine" "-al" "-s" "" diff --git a/gas/testsuite/gas/elf/redef.d b/gas/testsuite/gas/elf/redef.d new file mode 100644 index 0000000..d62e302 --- /dev/null +++ b/gas/testsuite/gas/elf/redef.d @@ -0,0 +1,14 @@ +#objdump: -t +#name: .equ redefinitions (ELF) +#source: ../all/redef2.s + +.*: .* + +SYMBOL TABLE: +#... +0+[ ]+l[ ].*[ ]here +#... +0*2+[ ]+l[ ]+\*ABS\*[ ].*[ ]sym +#... +0+[ ]+\*UND\*[ ].*[ ]xtrn +#... |