MIPS/GAS/testsuite: Run RFE test across all ISAs

Verify that the RFE instruction is not only accepted where supported,
but rejected where it is not as well.

	gas/
	* testsuite/gas/mips/mips.exp: Run RFE test across all ISAs.
	* testsuite/gas/mips/rfe.d: Update for ISA exclusions.
	* testsuite/gas/mips/mips1@rfe.d: New test.
	* testsuite/gas/mips/mips2@rfe.d: New test.
	* testsuite/gas/mips/r3000@rfe.d: New test.
	* testsuite/gas/mips/r3900@rfe.d: New test.
	* testsuite/gas/mips/rfe.l: New test stderr output.
This commit is contained in:
Maciej W. Rozycki 2021-05-29 03:26:33 +02:00
parent 2d5e2889ca
commit 4c67fb41f9
8 changed files with 39 additions and 7 deletions

View File

@ -1,3 +1,13 @@
2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
* testsuite/gas/mips/mips.exp: Run RFE test across all ISAs.
* testsuite/gas/mips/rfe.d: Update for ISA exclusions.
* testsuite/gas/mips/mips1@rfe.d: New test.
* testsuite/gas/mips/mips2@rfe.d: New test.
* testsuite/gas/mips/r3000@rfe.d: New test.
* testsuite/gas/mips/r3900@rfe.d: New test.
* testsuite/gas/mips/rfe.l: New test stderr output.
2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
* testsuite/gas/mips/mips.exp: Run coprocessor tests across all

View File

@ -1343,7 +1343,7 @@ if { [istarget mips*-*-vxworks*] } {
!micromips]
run_dump_test_arches "rfe" [mips_arch_list_matching mips1 \
!mips3 !mips32 !micromips]
!micromips]
run_dump_test "cp1-names-numeric"
run_dump_test "cp1-names-r3000"

View File

@ -0,0 +1,10 @@
#objdump: -d --prefix-addresses --show-raw-insn
#name: MIPS RFE instruction
#as: -32
#source: rfe.s
.*: +file format .*mips.*
Disassembly of section \.text:
[0-9a-f]+ <[^>]*> 42000010 rfe
\.\.\.

View File

@ -0,0 +1,5 @@
#objdump: -d --prefix-addresses --show-raw-insn
#name: MIPS RFE instruction
#as: -32
#source: rfe.s
#dump: mips1@rfe.d

View File

@ -0,0 +1,5 @@
#objdump: -d --prefix-addresses --show-raw-insn
#name: MIPS RFE instruction
#as: -32
#source: rfe.s
#dump: mips1@rfe.d

View File

@ -0,0 +1,5 @@
#objdump: -d --prefix-addresses --show-raw-insn
#name: MIPS RFE instruction
#as: -32
#source: rfe.s
#dump: mips1@rfe.d

View File

@ -1,9 +1,4 @@
#objdump: -d --prefix-addresses --show-raw-insn
#name: MIPS RFE instruction
#as: -32
.*: +file format .*mips.*
Disassembly of section \.text:
[0-9a-f]+ <[^>]*> 42000010 rfe
\.\.\.
#error_output: rfe.l

View File

@ -0,0 +1,2 @@
.*: Assembler messages:
.*:4: Error: opcode not supported on this processor: .* \(.*\) `rfe'