aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDavid Guillen Fandos <david@davidgf.net>2023-06-23 01:25:09 +0200
committerYunQiang Su <syq@debian.org>2024-06-10 18:42:17 +0800
commita2e71b281a9365872451a157767e03a2e89ddaad (patch)
treed5fc16ab619fa4c5f4c04c11f10faaac6beb5965 /gas
parentd1c2dd6f4de7ec0761fcf89c95342da72826329b (diff)
downloadgdb-a2e71b281a9365872451a157767e03a2e89ddaad.zip
gdb-a2e71b281a9365872451a157767e03a2e89ddaad.tar.gz
gdb-a2e71b281a9365872451a157767e03a2e89ddaad.tar.bz2
MIPS/Allegrex: Exclude trap instructions
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.l13
-rw-r--r--gas/testsuite/gas/mips/allegrex-removed.s13
-rw-r--r--gas/testsuite/gas/mips/mips.exp1
3 files changed, 27 insertions, 0 deletions
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..f657b0e 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_list_test_arches "allegrex-removed" [mips_arch_list_matching allegrex]
run_list_test_arches "ext-ill" [mips_arch_list_matching mips64r2]