From 1ded0d12e0ee5399a3c1d8606fd23491e00fc60f Mon Sep 17 00:00:00 2001 From: David Guillen Fandos Date: Tue, 11 Jun 2024 09:36:11 +0100 Subject: MIPS/opcodes: Exclude trap instructions for MIPS Allegrex These instructions are not supported by the target even though they are part of the MIPS II specification. --- gas/testsuite/gas/mips/allegrex-removed.d | 3 +++ gas/testsuite/gas/mips/allegrex-removed.l | 13 +++++++++++++ gas/testsuite/gas/mips/allegrex-removed.s | 13 +++++++++++++ gas/testsuite/gas/mips/mips.exp | 1 + 4 files changed, 30 insertions(+) create mode 100644 gas/testsuite/gas/mips/allegrex-removed.d create mode 100644 gas/testsuite/gas/mips/allegrex-removed.l create mode 100644 gas/testsuite/gas/mips/allegrex-removed.s (limited to 'gas') diff --git a/gas/testsuite/gas/mips/allegrex-removed.d b/gas/testsuite/gas/mips/allegrex-removed.d new file mode 100644 index 0000000..d94db49 --- /dev/null +++ b/gas/testsuite/gas/mips/allegrex-removed.d @@ -0,0 +1,3 @@ +#name: MIPS Sony Allegrex CPU removed opcode tests +#as: -march=allegrex -mabi=32 +#error_output: allegrex-removed.l diff --git a/gas/testsuite/gas/mips/allegrex-removed.l b/gas/testsuite/gas/mips/allegrex-removed.l new file mode 100644 index 0000000..a77d4df --- /dev/null +++ b/gas/testsuite/gas/mips/allegrex-removed.l @@ -0,0 +1,13 @@ +.*: Assembler messages: +.*:2: Error: opcode not supported on this processor: .* \(.*\) `teqi \$11,1024' +.*:3: Error: opcode not supported on this processor: .* \(.*\) `tgei \$11,1024' +.*:4: Error: opcode not supported on this processor: .* \(.*\) `tgeiu \$11,1024' +.*:5: Error: opcode not supported on this processor: .* \(.*\) `tlti \$11,1024' +.*:6: Error: opcode not supported on this processor: .* \(.*\) `tltiu \$11,1024' +.*:7: Error: opcode not supported on this processor: .* \(.*\) `tnei \$11,1024' +.*:8: Error: opcode not supported on this processor: .* \(.*\) `teq \$1,\$2' +.*:9: Error: opcode not supported on this processor: .* \(.*\) `tge \$1,\$2' +.*:10: Error: opcode not supported on this processor: .* \(.*\) `tgeu \$1,\$2' +.*:11: Error: opcode not supported on this processor: .* \(.*\) `tlt \$1,\$2' +.*:12: Error: opcode not supported on this processor: .* \(.*\) `tltu \$1,\$2' +.*:13: Error: opcode not supported on this processor: .* \(.*\) `tne \$1,\$2' diff --git a/gas/testsuite/gas/mips/allegrex-removed.s b/gas/testsuite/gas/mips/allegrex-removed.s new file mode 100644 index 0000000..8dac8a1 --- /dev/null +++ b/gas/testsuite/gas/mips/allegrex-removed.s @@ -0,0 +1,13 @@ + .set noreorder + teqi $11,1024 + tgei $11,1024 + tgeiu $11,1024 + tlti $11,1024 + tltiu $11,1024 + tnei $11,1024 + teq $1,$2 + tge $1,$2 + tgeu $1,$2 + tlt $1,$2 + tltu $1,$2 + tne $1,$2 diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index 2ddbf0c..acb7fb8 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -1633,6 +1633,7 @@ if { [istarget mips*-*-vxworks*] } { run_list_test "r5900-error-vu0" "-march=r5900" run_dump_test "allegrex" + run_dump_test "allegrex-removed" run_list_test_arches "ext-ill" [mips_arch_list_matching mips64r2] -- cgit v1.1