[binutils-gdb] RISC-V: drop FCVT.Q.L{, U} forms with rounding mode operand

Jan Beulich jbeulich@sourceware.org
Fri Jul 31 09:00:24 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a592a6684708cb1554850b2cae311b4240838fe8

commit a592a6684708cb1554850b2cae311b4240838fe8
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Jul 31 10:57:20 2026 +0200

    RISC-V: drop FCVT.Q.L{,U} forms with rounding mode operand
    
    Like FCVT.D.W{,U} and FCVT.Q.W{,U} these also are unaffected by rounding
    mode, and hence allowing for a respective operand is bogus. (Otherwise
    MASK_RM should also be used in the match field for the respectively other
    forms.)

Diff:
---
 opcodes/riscv-opc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/opcodes/riscv-opc.c b/opcodes/riscv-opc.c
index d08466c3bbb..7610e6386c0 100644
--- a/opcodes/riscv-opc.c
+++ b/opcodes/riscv-opc.c
@@ -1189,9 +1189,7 @@ const struct riscv_opcode riscv_opcodes[] =
 {"fcvt.lu.q", 64, INSN_CLASS_Q_INX,   "d,S",       MATCH_FCVT_LU_Q|MASK_RM, MASK_FCVT_LU_Q|MASK_RM, match_opcode, 0 },
 {"fcvt.lu.q", 64, INSN_CLASS_Q_INX,   "d,S,m",     MATCH_FCVT_LU_Q, MASK_FCVT_LU_Q, match_opcode, 0 },
 {"fcvt.q.l",  64, INSN_CLASS_Q_INX,   "D,s",       MATCH_FCVT_Q_L, MASK_FCVT_Q_L|MASK_RM, match_opcode, 0 },
-{"fcvt.q.l",  64, INSN_CLASS_Q_INX,   "D,s,m",     MATCH_FCVT_Q_L, MASK_FCVT_Q_L, match_opcode, 0 },
 {"fcvt.q.lu", 64, INSN_CLASS_Q_INX,   "D,s",       MATCH_FCVT_Q_LU, MASK_FCVT_Q_LU|MASK_RM, match_opcode, 0 },
-{"fcvt.q.lu", 64, INSN_CLASS_Q_INX,   "D,s,m",     MATCH_FCVT_Q_LU, MASK_FCVT_Q_LU, match_opcode, 0 },
 
 /* Compressed instructions.  */
 {"c.unimp",    0, INSN_CLASS_ZCA,   "",          0, 0xffffU,  match_opcode, 0 },


More information about the Binutils-cvs mailing list