diff options
author | Alan Modra <amodra@gmail.com> | 2000-03-27 23:47:09 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-03-27 23:47:09 +0000 |
commit | 224de7a50d1d755bd561f7e669957bff6b9032b2 (patch) | |
tree | 26b9d324ffb587f7991a4cca412c29df676b34e6 /gas/testsuite | |
parent | ba23e138c9c5214ead72b2599790256e3563591a (diff) | |
download | gdb-224de7a50d1d755bd561f7e669957bff6b9032b2.zip gdb-224de7a50d1d755bd561f7e669957bff6b9032b2.tar.gz gdb-224de7a50d1d755bd561f7e669957bff6b9032b2.tar.bz2 |
Default LISTING_LHS_WIDTH to depend on LISTING_WORD_SIZE so that bytes per
line is 4. Fix tests for LISTING_WORD_SIZE==1.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/all/cond.d | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/all/gas.exp | 8 | ||||
-rw-r--r-- | gas/testsuite/gas/ieee-fp/x930509a.exp | 7 |
4 files changed, 21 insertions, 15 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index ef99b86..6659f66 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2000-03-27 Alan Modra <alan@linuxcare.com.au> + + * gas/ieee-fp/x930509a.exp (dotest): Fix test for + LISTING_WORD_SIZE==1. + * gas/all/gas.exp (do_930509a): Same here. + * gas/all/cond.d: And here. + 2000-03-10 Geoffrey Keating <geoffk@cygnus.com> * gas/mips/empic.d: New file. diff --git a/gas/testsuite/gas/all/cond.d b/gas/testsuite/gas/all/cond.d index 4ee3942..a496287 100644 --- a/gas/testsuite/gas/all/cond.d +++ b/gas/testsuite/gas/all/cond.d @@ -7,14 +7,14 @@ 8[ ]+.else 9[ ]+.if 1 10[ ]+.endc - 11 0000 0[02]00 ?000[02][ ]+.long[ ]+2 + 11 0000 0[02] ?00 ?00 ?0[02][ ]+.long[ ]+2 12[ ]+.if 0 14[ ]+.else - 15 0004 0[04]00 ?000[04][ ]+.long[ ]+4 + 15 0004 0[04] ?00 ?00 ?0[04][ ]+.long[ ]+4 16[ ]+.endc 17[ ]+.endc - 18 0008 0000 ?0000[ ]+.p2align 5,0 - 18[ ]+0000 ?0000 - 18[ ]+0000 ?0000 - 18[ ]+0000 ?0000 - 18[ ]+0000 ?0000 + 18 0008 00 ?00 ?00 ?00[ ]+.p2align 5,0 + 18[ ]+00 ?00 ?00 ?00 + 18[ ]+00 ?00 ?00 ?00 + 18[ ]+00 ?00 ?00 ?00 + 18[ ]+00 ?00 ?00 ?00 diff --git a/gas/testsuite/gas/all/gas.exp b/gas/testsuite/gas/all/gas.exp index bd39705..49d9421 100644 --- a/gas/testsuite/gas/all/gas.exp +++ b/gas/testsuite/gas/all/gas.exp @@ -65,9 +65,9 @@ proc do_930509a {} { # If ".long" means an 8-byte value on some target someday, this test will have # to be fixed. expect { - -re "^ +1 .... 0000 *0000" { fail $testname; set x 1 } - -re "^ +1 .... 0400 *0000" { pass $testname; set x 1 } - -re "^ +1 .... 0000 *0004" { pass $testname; set x 1 } + -re "^ +1 .... 00 ?00 ?00 ?00" { fail $testname; set x 1 } + -re "^ +1 .... 04 ?00 ?00 ?00" { pass $testname; set x 1 } + -re "^ +1 .... 00 ?00 ?00 ?04" { pass $testname; set x 1 } -re "\[^\n\]*\n" { } timeout { perror "timeout\n"; break } eof { break } @@ -124,7 +124,7 @@ proc test_cond {} { global subdir set testname "conditional listings" - gas_run cond.s -alc ">dump.out" + gas_run cond.s "-alc" ">dump.out" if ![string match "" $comp_output] { send_log "$comp_output\n" fail $testname diff --git a/gas/testsuite/gas/ieee-fp/x930509a.exp b/gas/testsuite/gas/ieee-fp/x930509a.exp index d788d2c..8556972 100644 --- a/gas/testsuite/gas/ieee-fp/x930509a.exp +++ b/gas/testsuite/gas/ieee-fp/x930509a.exp @@ -7,10 +7,9 @@ proc dotest {} { gas_start "x930509a.s" "-al" while 1 { expect { - -re " 00008000\[ \]+.single" { pass $testname; set x 1 } - -re " 00800000\[ \]+.single" { pass $testname; set x 1 } - -re " 0080 0000\[ \]+.single" { pass $testname; set x 1 } - -re " ........ +.single" { fail $testname; set x 1 } + -re " 00 ?00 ?80 ?00\[ \]+.single" { pass $testname; set x 1 } + -re " 00 ?80 ?00 ?00\[ \]+.single" { pass $testname; set x 1 } + -re ".single" { fail $testname; set x 1 } -re "\[^\n\]*\n" { } timeout { perror "timeout\n"; break } eof { break } |