aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vdivu_vv.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/vdivu_vv.h')
-rw-r--r--riscv/insns/vdivu_vv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/riscv/insns/vdivu_vv.h b/riscv/insns/vdivu_vv.h
new file mode 100644
index 0000000..ef6e777
--- /dev/null
+++ b/riscv/insns/vdivu_vv.h
@@ -0,0 +1,8 @@
+// vdivu.vv vd, vs2, vs1
+VI_VV_ULOOP
+({
+ if(vs1 == 0)
+ vd = -1;
+ else
+ vd = vs2 / vs1;
+})