MIPS/GAS/testsuite: Run RFE test across all ISAs
authorMaciej W. Rozycki <macro@orcam.me.uk>
Sat, 29 May 2021 01:26:33 +0000 (03:26 +0200)
committerMaciej W. Rozycki <macro@orcam.me.uk>
Sat, 29 May 2021 01:26:33 +0000 (03:26 +0200)
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/ChangeLog
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/mips1@rfe.d [new file with mode: 0644]
gas/testsuite/gas/mips/mips2@rfe.d [new file with mode: 0644]
gas/testsuite/gas/mips/r3000@rfe.d [new file with mode: 0644]
gas/testsuite/gas/mips/r3900@rfe.d [new file with mode: 0644]
gas/testsuite/gas/mips/rfe.d
gas/testsuite/gas/mips/rfe.l [new file with mode: 0644]

index bc412979712aff7e88f5b8746c70c848d85ca3d9..94690feb19105a4e14ca9a794af59d574da1f275 100644 (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
index dcf71ea099708c101f4d4cf234c2d92ac2f29f5e..d65ae50fa29209b35b9bd049845106898ae1b065 100644 (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"
diff --git a/gas/testsuite/gas/mips/mips1@rfe.d b/gas/testsuite/gas/mips/mips1@rfe.d
new file mode 100644 (file)
index 0000000..65a1f72
--- /dev/null
@@ -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
+       \.\.\.
diff --git a/gas/testsuite/gas/mips/mips2@rfe.d b/gas/testsuite/gas/mips/mips2@rfe.d
new file mode 100644 (file)
index 0000000..8eaf657
--- /dev/null
@@ -0,0 +1,5 @@
+#objdump: -d --prefix-addresses --show-raw-insn
+#name: MIPS RFE instruction
+#as: -32
+#source: rfe.s
+#dump: mips1@rfe.d
diff --git a/gas/testsuite/gas/mips/r3000@rfe.d b/gas/testsuite/gas/mips/r3000@rfe.d
new file mode 100644 (file)
index 0000000..8eaf657
--- /dev/null
@@ -0,0 +1,5 @@
+#objdump: -d --prefix-addresses --show-raw-insn
+#name: MIPS RFE instruction
+#as: -32
+#source: rfe.s
+#dump: mips1@rfe.d
diff --git a/gas/testsuite/gas/mips/r3900@rfe.d b/gas/testsuite/gas/mips/r3900@rfe.d
new file mode 100644 (file)
index 0000000..8eaf657
--- /dev/null
@@ -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 c086e9db70281c309860ed26a181af4bfd873ed7..e7e2f7c17b497ece4457e68c3fd6c3abd17cc585 100644 (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
diff --git a/gas/testsuite/gas/mips/rfe.l b/gas/testsuite/gas/mips/rfe.l
new file mode 100644 (file)
index 0000000..eeb843b
--- /dev/null
@@ -0,0 +1,2 @@
+.*: Assembler messages:
+.*:4: Error: opcode not supported on this processor: .* \(.*\) `rfe'