From 31254b20c5f103c189da5dcdde57cf3be377819b Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sat, 1 Apr 2000 23:46:53 +0000 Subject: * 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. --- gas/testsuite/ChangeLog | 6 ++++++ gas/testsuite/gas/mn10300/am33_5.s | 12 ++++++++++++ gas/testsuite/gas/mn10300/basic.exp | 26 +++++++++++++++++++++++++- 3 files changed, 43 insertions(+), 1 deletion(-) (limited to 'gas') 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 + + * 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 * 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 {} { -- cgit v1.1