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:
parent
7388e440ec
commit
d9e138e292
@ -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.
|
||||
|
3
gas/testsuite/gas/mips/illegal.l
Normal file
3
gas/testsuite/gas/mips/illegal.l
Normal file
@ -0,0 +1,3 @@
|
||||
.*: Assembler messages:
|
||||
.*:4: Error: illegal operands `move 1,2'
|
||||
.*:5: Error: illegal operands `c.eq.s 1,2'
|
5
gas/testsuite/gas/mips/illegal.s
Normal file
5
gas/testsuite/gas/mips/illegal.s
Normal file
@ -0,0 +1,5 @@
|
||||
# Source file used to test illegal operands.
|
||||
|
||||
foo:
|
||||
move 1,2
|
||||
c.eq.s 1,2
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user