+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.
#
# 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*] ]
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,