aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/remuw.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/remuw.h')
-rw-r--r--riscv/insns/remuw.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/insns/remuw.h b/riscv/insns/remuw.h
index 1ef810c..bec7059 100644
--- a/riscv/insns/remuw.h
+++ b/riscv/insns/remuw.h
@@ -2,6 +2,6 @@ require_xpr64;
reg_t lhs = zext32(RS1);
reg_t rhs = zext32(RS2);
if(rhs == 0)
- RD = sext32(lhs);
+ WRITE_RD(sext32(lhs));
else
- RD = sext32(lhs % rhs);
+ WRITE_RD(sext32(lhs % rhs));