From 4c67fb41f983bbe52243fcb692d3b4454a360cab Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Sat, 29 May 2021 03:26:33 +0200 Subject: 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. --- gas/ChangeLog | 10 ++++++++++ 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 ++ 8 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 gas/testsuite/gas/mips/mips1@rfe.d create mode 100644 gas/testsuite/gas/mips/mips2@rfe.d create mode 100644 gas/testsuite/gas/mips/r3000@rfe.d create mode 100644 gas/testsuite/gas/mips/r3900@rfe.d create mode 100644 gas/testsuite/gas/mips/rfe.l (limited to 'gas') 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 + * 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 + * 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' -- cgit v1.1