diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2000-04-01 23:46:53 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2000-04-01 23:46:53 +0000 |
commit | 31254b20c5f103c189da5dcdde57cf3be377819b (patch) | |
tree | 3ee6131334ececa2a5ca09c5cab9e57edbcfbbf8 /gas | |
parent | 5728a7d74f9df5b9957f2f982bb62d4f0d6f5fbc (diff) | |
download | gdb-31254b20c5f103c189da5dcdde57cf3be377819b.zip gdb-31254b20c5f103c189da5dcdde57cf3be377819b.tar.gz gdb-31254b20c5f103c189da5dcdde57cf3be377819b.tar.bz2 |
* gas/mn10300/am33_5.s: Check that negative SP offsets are encoded
with 32 bits, not with the unsigned shorter opcodes.
* gas/mn10300/basic.exp: Likewise.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/mn10300/am33_5.s | 12 | ||||
-rw-r--r-- | gas/testsuite/gas/mn10300/basic.exp | 26 |
3 files changed, 43 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 24aa7c9..719f922 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2000-04-01 Alexandre Oliva <aoliva@cygnus.com> + + * gas/mn10300/am33_5.s: Check that negative SP offsets are encoded + with 32 bits, not with the unsigned shorter opcodes. + * gas/mn10300/basic.exp: Likewise. + 2000-03-31 Alexandre Oliva <aoliva@cygnus.com> * lib/gas-defs.exp (regexp_diff): Don't break on the first diff --git a/gas/testsuite/gas/mn10300/am33_5.s b/gas/testsuite/gas/mn10300/am33_5.s index 53aa42d..a2e3a39 100644 --- a/gas/testsuite/gas/mn10300/am33_5.s +++ b/gas/testsuite/gas/mn10300/am33_5.s @@ -51,3 +51,15 @@ mov r1,(r2+,0x7ffefdfc) movhu (r1+,0x7ffefdfc),r2 movhu r1,(r2+,0x7ffefdfc) + mov (-16,sp),r2 + mov r2,(-16,sp) + movbu (-16,sp),r2 + movbu r2,(-16,sp) + movhu (-16,sp),r2 + movhu r2,(-16,sp) + mov (-1024,sp),r2 + mov r2,(-1024,sp) + movbu (-1024,sp),r2 + movbu r2,(-1024,sp) + movhu (-1024,sp),r2 + movhu r2,(-1024,sp) diff --git a/gas/testsuite/gas/mn10300/basic.exp b/gas/testsuite/gas/mn10300/basic.exp index 6d32ff3..d0f4811 100644 --- a/gas/testsuite/gas/mn10300/basic.exp +++ b/gas/testsuite/gas/mn10300/basic.exp @@ -1418,6 +1418,30 @@ proc do_am33_5 {} { -re "^ +52 +FDFE7F\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0158 FEFA12FC\[^\n\]*\n" { set x [expr $x+1] } -re "^ +53 +FDFE7F\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 015f FE8A20F0\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +54 +FFFFFF\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 0166 FE9A20F0\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +55 +FFFFFF\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 016d FEAA20F0\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +56 +FFFFFF\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 0174 FEBA20F0\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +57 +FFFFFF\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 017b FECA20F0\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +58 +FFFFFF\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 0182 FEDA20F0\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +59 +FFFFFF\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 0189 FE8A2000\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +60 +FCFFFF\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 0190 FE9A2000\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +61 +FCFFFF\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 0197 FEAA2000\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +62 +FCFFFF\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 019e FEBA2000\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +63 +FCFFFF\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 01a5 FECA2000\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +64 +FCFFFF\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 01ac FEDA2000\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +65 +FCFFFF\[^\n\]*\n" { set x [expr $x+1] } -re "\[^\n\]*\n" { } timeout { perror "timeout\n"; break } eof { break } @@ -1429,7 +1453,7 @@ proc do_am33_5 {} { gas_finish # Did we find what we were looking for? If not, flunk it. - if [expr $x==100] then { pass $testname } else { fail $testname } + if [expr $x==124] then { pass $testname } else { fail $testname } } proc do_am33_6 {} { |