aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vnsrl_vx.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/vnsrl_vx.h')
-rw-r--r--riscv/insns/vnsrl_vx.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/riscv/insns/vnsrl_vx.h b/riscv/insns/vnsrl_vx.h
new file mode 100644
index 0000000..e149b38
--- /dev/null
+++ b/riscv/insns/vnsrl_vx.h
@@ -0,0 +1,5 @@
+// vnsrl.vx vd, vs2, rs1
+VI_VX_LOOP_NSHIFT
+({
+ vd = vs2_u >> (rs1 & (sew * 2 - 1));
+})