public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/1] RISC-V: Remove RV128-only fmv instructions
@ 2022-05-20 11:51 Tsukasa OI
  2022-05-20 11:51 ` [PATCH 1/1] " Tsukasa OI
  0 siblings, 1 reply; 3+ messages in thread
From: Tsukasa OI @ 2022-05-20 11:51 UTC (permalink / raw)
  To: Tsukasa OI, Palmer Dabbelt, Nelson Chu, Kito Cheng; +Cc: binutils

Hello,

While I'm reviewing my Zfinx-related fixes (PATCH v2), I found something
different.  There are two RV128-only instructions enabled on RV64!

1.  fmv.x.q
2.  fmv.q.x

Those instructions will be RV128-only instructions that transfer 128-bit
floating point values between a GPR and a FPR.  As RV64 only has 64-bit
general purpose registers, they should not be valid (64-bit transfer
instructions, fmv.x.d and fmv.d.x are, on the other hand, valid).

This patchset is simple.  It just removes those instructions and makes
sure that they are invalid on RV64.




Tsukasa OI (1):
  RISC-V: Remove RV128-only fmv 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 ++
 include/opcode/riscv-opc.h                  | 6 ------
 opcodes/riscv-opc.c                         | 2 --
 5 files changed, 8 insertions(+), 8 deletions(-)
 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


base-commit: ef5d515048ba13a06815c8fccc420e6e8098da03
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-20 14:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20 11:51 [PATCH 0/1] RISC-V: Remove RV128-only fmv instructions Tsukasa OI
2022-05-20 11:51 ` [PATCH 1/1] " Tsukasa OI
2022-05-20 14:26   ` Nelson Chu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).