* gas/mn10300/mov5.s: New.
* gas/mn10300/basic.exp (do_mov5): New.
This commit is contained in:
parent
d164ea7f0f
commit
ac882a1d77
|
@ -1,3 +1,8 @@
|
|||
2004-01-16 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
* gas/mn10300/mov5.s: New.
|
||||
* gas/mn10300/basic.exp (do_mov5): New.
|
||||
|
||||
2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
|
||||
|
||||
* gas/mips/relax-swap1-mips1.d: New test for branch relaxation
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (C) 1996, 2000, 2002 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1996, 2000, 2002, 2004 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
@ -499,6 +499,40 @@ proc do_mov4 {} {
|
|||
if [expr $x==16] then { pass $testname } else { fail $testname }
|
||||
}
|
||||
|
||||
proc do_mov5 {} {
|
||||
set testname "mov5.s: mov5 tests"
|
||||
set x 0
|
||||
|
||||
gas_start "mov5.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 FBF80008\[^\n\]*\n" { set x [expr $x+1] }
|
||||
-re "^ +\[0-9\]+ 0004 FDF80000\[^\n\]*\n" { set x [expr $x+1] }
|
||||
-re "^ +4 +0100\[^\n\]*\n" { set x [expr $x+1] }
|
||||
-re "^ +\[0-9\]+ 000a FDF800FF\[^\n\]*\n" { set x [expr $x+1] }
|
||||
-re "^ +5 +FF7F\[^\n\]*\n" { set x [expr $x+1] }
|
||||
-re "^ +\[0-9\]+ 0010 FEF80080\[^\n\]*\n" { set x [expr $x+1] }
|
||||
-re "^ +6 +FFFFFF\[^\n\]*\n" { set x [expr $x+1] }
|
||||
-re "^ +\[0-9\]+ 0017 FEF80000\[^\n\]*\n" { set x [expr $x+1] }
|
||||
-re "^ +7 +0080FF\[^\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==9] then { pass $testname } else { fail $testname }
|
||||
}
|
||||
|
||||
proc do_movbu {} {
|
||||
set testname "movbu.s: movbu tests"
|
||||
set x 0
|
||||
|
@ -1762,6 +1796,7 @@ if [istarget mn10300*-*-*] then {
|
|||
do_mov2
|
||||
do_mov3
|
||||
do_mov4
|
||||
do_mov5
|
||||
do_movbu
|
||||
do_movhu
|
||||
do_movm
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
.am33
|
||||
.text
|
||||
mov 8,sp
|
||||
mov 256,sp
|
||||
mov +((1<<23)-1),sp
|
||||
mov -128,sp
|
||||
mov +((-1)<<23),sp
|
Loading…
Reference in New Issue