diff --git a/src/rv32_constopt.c b/src/rv32_constopt.c index 14a957b3..c2711595 100644 --- a/src/rv32_constopt.c +++ b/src/rv32_constopt.c @@ -946,6 +946,8 @@ CONSTOPT(cmv, { info->const_val[ir->rd] = ir->imm; ir->opcode = rv_insn_clui; ir->impl = dispatch_table[ir->opcode]; + } else { + info->is_constant[ir->rd] = false; } })