diff options
author | Jeff Law <law@redhat.com> | 1996-08-30 06:40:44 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1996-08-30 06:40:44 +0000 |
commit | 1f17971deec38c40028180bf6ddee1a2f0d76a61 (patch) | |
tree | bf3d678bc3fa4bfa72513e78b33017fd59dfcdde /gas | |
parent | 3cb6bf7818b30b5501abf49022451e10fcd499f0 (diff) | |
download | gdb-1f17971deec38c40028180bf6ddee1a2f0d76a61.zip gdb-1f17971deec38c40028180bf6ddee1a2f0d76a61.tar.gz gdb-1f17971deec38c40028180bf6ddee1a2f0d76a61.tar.bz2 |
* gas/v850/hilo.s: New testfile.
* gas/v850/basic.exp: Run hilo tests.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/v850/.Sanitize | 1 | ||||
-rwxr-xr-x | gas/testsuite/gas/v850/basic.exp | 33 | ||||
-rw-r--r-- | gas/testsuite/gas/v850/hilo.s | 5 |
4 files changed, 45 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 183a8c6..2cde84d 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +start-sanitize-v850 +Fri Aug 30 00:37:55 1996 Jeffrey A Law (law@cygnus.com) + + * gas/v850/hilo.s: New testfile. + * gas/v850/basic.exp: Run hilo tests. + +end-sanitize-v850 Thu Aug 29 11:32:23 1996 James G. Smith <jsmith@cygnus.co.uk> * gas/arm/arm7t.d: Explicitly force little-endian assembly. diff --git a/gas/testsuite/gas/v850/.Sanitize b/gas/testsuite/gas/v850/.Sanitize index 4d15c25..17b7e66 100644 --- a/gas/testsuite/gas/v850/.Sanitize +++ b/gas/testsuite/gas/v850/.Sanitize @@ -30,6 +30,7 @@ basic.exp bit.s branch.s compare.s +hilo.s jumps.s logical.s mem.s diff --git a/gas/testsuite/gas/v850/basic.exp b/gas/testsuite/gas/v850/basic.exp index d2ff983..9078f4b 100755 --- a/gas/testsuite/gas/v850/basic.exp +++ b/gas/testsuite/gas/v850/basic.exp @@ -261,7 +261,7 @@ proc do_mem {} { -re "^ +\[0-9\]+ 0000 05370500\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0004 25370400\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0008 25370500\[^\n\]*\n" { set x [expr $x+1] } - -re "^ +\[0-9\]+ 000c\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 000c 4033\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 000e\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0010\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0012 462F0500\[^\n\]*\n" { set x [expr $x+1] } @@ -353,6 +353,34 @@ proc do_move {} { if [expr $x==4] then { pass $testname } else { fail $testname } } +proc do_hilo {} { + set testname "hilo.s: hilo tests" + set x 0 + + gas_start "hilo.s" "-al" + + # Instead of having a variable for each match string just increment the + # total number of matches seen. That's simpler when testing large numbers + # of instructions (as these tests to). + while 1 { + expect { + -re "^ +\[0-9\]+ 0000 200EEFBE\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 0004 410EAEDE\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 0008 410EADDE\[^\n\]*\n" { set x [expr $x+1] } + -re "\[^\n\]*\n" { } + timeout { perror "timeout\n"; break } + eof { break } + } + } + + # This was intended to do any cleanup necessary. It kinda looks like it + # isn't needed, but just in case, please keep it in for now. + gas_finish + + # Did we find what we were looking for? If not, flunk it. + if [expr $x==3] then { pass $testname } else { fail $testname } +} + if [istarget v850*-*-*] then { # Test the basic instruction parser. do_arith @@ -364,4 +392,7 @@ if [istarget v850*-*-*] then { do_mem do_misc do_move + + # Make sure we handle lo() hi() and hi0() correctly. + do_hilo } diff --git a/gas/testsuite/gas/v850/hilo.s b/gas/testsuite/gas/v850/hilo.s new file mode 100644 index 0000000..5067e56 --- /dev/null +++ b/gas/testsuite/gas/v850/hilo.s @@ -0,0 +1,5 @@ + + .text + movea lo(0xdeadbeef),r0,r1 + movhi hi(0xdeadbeef),r1,r1 + movhi hi0(0xdeadbeef),r1,r1 |