diff options
Diffstat (limited to 'riscv/insns/remu.h')
-rw-r--r-- | riscv/insns/remu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/riscv/insns/remu.h b/riscv/insns/remu.h new file mode 100644 index 0000000..c698aca --- /dev/null +++ b/riscv/insns/remu.h @@ -0,0 +1,4 @@ +if(RS2 == 0) + RD = RS1; +else + RD = sext_xprlen(zext_xprlen(RS1) % zext_xprlen(RS2)); |