From aa8c9d60a6fc8865a5c4131aab243bf97b961e2c Mon Sep 17 00:00:00 2001 From: Tsukasa OI Date: Fri, 20 May 2022 20:51:49 +0900 Subject: 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. --- gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.d | 3 +++ gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.l | 3 +++ gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.s | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.d create mode 100644 gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.l create mode 100644 gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.s (limited to 'gas') 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 -- cgit v1.1