[committed,16/18] MIPS/GAS/testsuite: Run RFE test across all ISAs

Message ID alpine.DEB.2.21.2105290224550.11113@angie.orcam.me.uk
State New
Headers show
Series
  • MIPS coprocessor opcodes handling fixes
Related show

Commit Message

Maciej W. Rozycki May 29, 2021, 1:38 a.m.
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.
---
 gas/testsuite/gas/mips/mips.exp    |    2 +-
 gas/testsuite/gas/mips/mips1@rfe.d |   10 ++++++++++
 gas/testsuite/gas/mips/mips2@rfe.d |    5 +++++
 gas/testsuite/gas/mips/r3000@rfe.d |    5 +++++
 gas/testsuite/gas/mips/r3900@rfe.d |    5 +++++
 gas/testsuite/gas/mips/rfe.d       |    7 +------
 gas/testsuite/gas/mips/rfe.l       |    2 ++
 7 files changed, 29 insertions(+), 7 deletions(-)

binutils-mips-opcodes-rfe-test-update.diff

Patch

Index: binutils-gdb/gas/testsuite/gas/mips/mips.exp
===================================================================
--- binutils-gdb.orig/gas/testsuite/gas/mips/mips.exp
+++ binutils-gdb/gas/testsuite/gas/mips/mips.exp
@@ -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"
Index: binutils-gdb/gas/testsuite/gas/mips/mips1@rfe.d
===================================================================
--- /dev/null
+++ binutils-gdb/gas/testsuite/gas/mips/mips1@rfe.d
@@ -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
+	\.\.\.
Index: binutils-gdb/gas/testsuite/gas/mips/mips2@rfe.d
===================================================================
--- /dev/null
+++ binutils-gdb/gas/testsuite/gas/mips/mips2@rfe.d
@@ -0,0 +1,5 @@ 
+#objdump: -d --prefix-addresses --show-raw-insn
+#name: MIPS RFE instruction
+#as: -32
+#source: rfe.s
+#dump: mips1@rfe.d
Index: binutils-gdb/gas/testsuite/gas/mips/r3000@rfe.d
===================================================================
--- /dev/null
+++ binutils-gdb/gas/testsuite/gas/mips/r3000@rfe.d
@@ -0,0 +1,5 @@ 
+#objdump: -d --prefix-addresses --show-raw-insn
+#name: MIPS RFE instruction
+#as: -32
+#source: rfe.s
+#dump: mips1@rfe.d
Index: binutils-gdb/gas/testsuite/gas/mips/r3900@rfe.d
===================================================================
--- /dev/null
+++ binutils-gdb/gas/testsuite/gas/mips/r3900@rfe.d
@@ -0,0 +1,5 @@ 
+#objdump: -d --prefix-addresses --show-raw-insn
+#name: MIPS RFE instruction
+#as: -32
+#source: rfe.s
+#dump: mips1@rfe.d
Index: binutils-gdb/gas/testsuite/gas/mips/rfe.d
===================================================================
--- binutils-gdb.orig/gas/testsuite/gas/mips/rfe.d
+++ binutils-gdb/gas/testsuite/gas/mips/rfe.d
@@ -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
Index: binutils-gdb/gas/testsuite/gas/mips/rfe.l
===================================================================
--- /dev/null
+++ binutils-gdb/gas/testsuite/gas/mips/rfe.l
@@ -0,0 +1,2 @@ 
+.*: Assembler messages:
+.*:4: Error: opcode not supported on this processor: .* \(.*\) `rfe'