We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 066a3c1 + d16f8b0 commit 690298dCopy full SHA for 690298d
riscv/insns/c_lui.h
@@ -4,7 +4,7 @@ if (insn.rvc_rd() == 2) { // c.addi16sp
4
WRITE_REG(X_SP, sext_xlen(RVC_SP + insn.rvc_addi16sp_imm()));
5
} else if (insn.rvc_imm() != 0) { // c.lui
6
WRITE_RD(insn.rvc_imm() << 12);
7
-} else if ((insn.rvc_rd() & 1) != 0) { // c.mop.N
+} else if ((insn.rvc_rd() & 0x11) == 1) { // c.mop.N
8
#include "c_mop_N.h"
9
} else {
10
require(false);
0 commit comments