aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDavid Guillen Fandos <david@davidgf.net>2024-06-11 09:36:11 +0100
committerMaciej W. Rozycki <macro@redhat.com>2024-06-11 09:36:11 +0100
commit1ded0d12e0ee5399a3c1d8606fd23491e00fc60f (patch)
tree0856aa61ea5e9755c3297ba8df79f3c435d3ce8b /gas
parentb20ab53f81db7eefa0db00d14f06c04527ac324c (diff)
downloadgdb-1ded0d12e0ee5399a3c1d8606fd23491e00fc60f.zip
gdb-1ded0d12e0ee5399a3c1d8606fd23491e00fc60f.tar.gz
gdb-1ded0d12e0ee5399a3c1d8606fd23491e00fc60f.tar.bz2
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.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/mips/allegrex-removed.d3
-rw-r--r--gas/testsuite/gas/mips/allegrex-removed.l13
-rw-r--r--gas/testsuite/gas/mips/allegrex-removed.s13
-rw-r--r--gas/testsuite/gas/mips/mips.exp1
4 files changed, 30 insertions, 0 deletions
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]