aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorTsukasa OI <research_trasio@irq.a4lg.com>2022-05-20 20:51:49 +0900
committerNelson Chu <nelson.chu@sifive.com>2022-05-20 22:21:30 +0800
commitaa8c9d60a6fc8865a5c4131aab243bf97b961e2c (patch)
tree3b19354c999a0b2be87240673c027e9cfcb5925f /gas
parentf270fd72f6694daa74cbd4d42a1ed3aaeddb8e38 (diff)
downloadgdb-aa8c9d60a6fc8865a5c4131aab243bf97b961e2c.zip
gdb-aa8c9d60a6fc8865a5c4131aab243bf97b961e2c.tar.gz
gdb-aa8c9d60a6fc8865a5c4131aab243bf97b961e2c.tar.bz2
RISC-V: Remove RV128-only fmv instructions
As fmv.x.q and fmv.q.x instructions are RV128-only (not RV64-only), it should be removed until RV128 support for GNU Binutils is required again. gas/ChangeLog: * testsuite/gas/riscv/fmv.x.q-rv64-fail.d: New failure test. * testsuite/gas/riscv/fmv.x.q-rv64-fail.l: Likewise. * testsuite/gas/riscv/fmv.x.q-rv64-fail.s: Likewise. include/ChangeLog: * opcode/riscv-opc.h (MATCH_FMV_X_Q, MASK_FMV_X_Q, MATCH_FMV_Q_X, MASK_FMV_Q_X): Remove RV128-only instructions. opcodes/ChangeLog: * riscv-opc.c (riscv_opcodes): Remove RV128-only instructions.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.d3
-rw-r--r--gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.l3
-rw-r--r--gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.s2
3 files changed, 8 insertions, 0 deletions
diff --git a/gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.d b/gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.d
new file mode 100644
index 0000000..2913a1a
--- /dev/null
+++ b/gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.d
@@ -0,0 +1,3 @@
+#as: -march=rv64iq
+#source: fmv.x.q-rv64-fail.s
+#error_output: fmv.x.q-rv64-fail.l
diff --git a/gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.l b/gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.l
new file mode 100644
index 0000000..9fb1f8c
--- /dev/null
+++ b/gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.l
@@ -0,0 +1,3 @@
+.*: Assembler messages:
+.*Error: unrecognized opcode `fmv\.x\.q a0,fa0'
+.*Error: unrecognized opcode `fmv\.q\.x fa0,a0'
diff --git a/gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.s b/gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.s
new file mode 100644
index 0000000..320a557
--- /dev/null
+++ b/gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.s
@@ -0,0 +1,2 @@
+fmv.x.q a0, fa0
+fmv.q.x fa0, a0