diff options
author | Maciej W. Rozycki <macro@orcam.me.uk> | 2021-05-29 03:26:33 +0200 |
---|---|---|
committer | Maciej W. Rozycki <macro@orcam.me.uk> | 2021-05-29 03:26:33 +0200 |
commit | 4c67fb41f983bbe52243fcb692d3b4454a360cab (patch) | |
tree | 0ed7cc31d9fc423143163ffae4c7b0a57bae5c75 | |
parent | 2d5e2889ca17dfb23e8fe83d944edd3800745f27 (diff) | |
download | gdb-4c67fb41f983bbe52243fcb692d3b4454a360cab.zip gdb-4c67fb41f983bbe52243fcb692d3b4454a360cab.tar.gz gdb-4c67fb41f983bbe52243fcb692d3b4454a360cab.tar.bz2 |
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.
-rw-r--r-- | gas/ChangeLog | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips.exp | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips1@rfe.d | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips2@rfe.d | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/r3000@rfe.d | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/r3900@rfe.d | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/rfe.d | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/rfe.l | 2 |
8 files changed, 39 insertions, 7 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index bc41297..94690fe 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,15 @@ 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 ISAs. * testsuite/gas/mips/cp0b.d: Update for ISA exclusions. diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index dcf71ea..d65ae50 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/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" diff --git a/gas/testsuite/gas/mips/mips1@rfe.d b/gas/testsuite/gas/mips/mips1@rfe.d new file mode 100644 index 0000000..65a1f72 --- /dev/null +++ b/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 + \.\.\. diff --git a/gas/testsuite/gas/mips/mips2@rfe.d b/gas/testsuite/gas/mips/mips2@rfe.d new file mode 100644 index 0000000..8eaf657 --- /dev/null +++ b/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 diff --git a/gas/testsuite/gas/mips/r3000@rfe.d b/gas/testsuite/gas/mips/r3000@rfe.d new file mode 100644 index 0000000..8eaf657 --- /dev/null +++ b/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 diff --git a/gas/testsuite/gas/mips/r3900@rfe.d b/gas/testsuite/gas/mips/r3900@rfe.d new file mode 100644 index 0000000..8eaf657 --- /dev/null +++ b/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 diff --git a/gas/testsuite/gas/mips/rfe.d b/gas/testsuite/gas/mips/rfe.d index c086e9d..e7e2f7c 100644 --- a/gas/testsuite/gas/mips/rfe.d +++ b/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 diff --git a/gas/testsuite/gas/mips/rfe.l b/gas/testsuite/gas/mips/rfe.l new file mode 100644 index 0000000..eeb843b --- /dev/null +++ b/gas/testsuite/gas/mips/rfe.l @@ -0,0 +1,2 @@ +.*: Assembler messages: +.*:4: Error: opcode not supported on this processor: .* \(.*\) `rfe' |