diff options
Diffstat (limited to 'riscv/insns/vremu_vx.h')
-rw-r--r-- | riscv/insns/vremu_vx.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/riscv/insns/vremu_vx.h b/riscv/insns/vremu_vx.h new file mode 100644 index 0000000..a87a820 --- /dev/null +++ b/riscv/insns/vremu_vx.h @@ -0,0 +1,8 @@ +// vremu.vx vd, vs2, rs1 +VI_VX_ULOOP +({ + if (rs1 == 0) + vd = vs2; + else + vd = vs2 % rs1; +}) |