diff options
Diffstat (limited to 'riscv/insns/remu.h')
-rw-r--r-- | riscv/insns/remu.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/riscv/insns/remu.h b/riscv/insns/remu.h index 3b6c44f..04499ab 100644 --- a/riscv/insns/remu.h +++ b/riscv/insns/remu.h @@ -1,5 +1,4 @@ -require64; if(RS2 == 0) - RD = 0; + RD = RS1; else - RD = RS1 % RS2; + RD = sext_xprlen(RS1 % RS2); |