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