2001-06-08 H.J. Lu <hjl@gnu.org>

* gas/mips/illegal.s: New file.
	* gas/mips/illegal.l: Likewise.

	* gas/elf/elf.exp (run_list_test): New.
	Run illegal with run_list_test.
This commit is contained in:
H.J. Lu 2001-06-09 04:54:16 +00:00
parent 7388e440ec
commit d9e138e292
4 changed files with 32 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2001-06-08 H.J. Lu <hjl@gnu.org>
* gas/mips/illegal.s: New file.
* gas/mips/illegal.l: Likewise.
* gas/elf/elf.exp (run_list_test): New.
Run illegal with run_list_test.
2001-06-08 H.J. Lu <hjl@gnu.org>
* gas/mips/elf-jal.d: New file.

View File

@ -0,0 +1,3 @@
.*: Assembler messages:
.*:4: Error: illegal operands `move 1,2'
.*:5: Error: illegal operands `c.eq.s 1,2'

View File

@ -0,0 +1,5 @@
# Source file used to test illegal operands.
foo:
move 1,2
c.eq.s 1,2

View File

@ -1,6 +1,20 @@
#
# Some generic MIPS tests
#
proc run_list_test { name opts } {
global srcdir subdir
set testname "MIPS $name"
set file $srcdir/$subdir/$name
gas_run ${name}.s $opts ">&dump.out"
if { [regexp_diff "dump.out" "${file}.l"] } then {
fail $testname
verbose "output is [file_contents "dump.out"]" 2
return
}
pass $testname
}
if { [istarget mips*-*-*] } then {
set no_mips16 0
set svr4pic [expr [istarget *-*-elf*] || [istarget *-*-irix5*] || [istarget *-*-irix6* ] || [istarget *-*-linux*] ]
@ -99,6 +113,8 @@ if { [istarget mips*-*-*] } then {
run_dump_test "mips32"
run_dump_test "mips64"
run_list_test "illegal" ""
if $svr4pic {
# Make sure that -mcpu=FOO and -mFOO are equivalent. Assemble a file
# containing 4650-specific instructions with -m4650 and -mcpu=4650,