aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vrsub_vi.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/vrsub_vi.h')
-rw-r--r--riscv/insns/vrsub_vi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/riscv/insns/vrsub_vi.h b/riscv/insns/vrsub_vi.h
new file mode 100644
index 0000000..198c33f
--- /dev/null
+++ b/riscv/insns/vrsub_vi.h
@@ -0,0 +1,5 @@
+// vrsub.vi vd, vs2, imm, vm # vd[i] = imm - vs2[i]
+VI_VI_LOOP
+({
+ vd = simm5 - vs2;
+})