diff options
Diffstat (limited to 'riscv/insns/vsxei32_v.h')
-rw-r--r-- | riscv/insns/vsxei32_v.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/riscv/insns/vsxei32_v.h b/riscv/insns/vsxei32_v.h new file mode 100644 index 0000000..296c8bb --- /dev/null +++ b/riscv/insns/vsxei32_v.h @@ -0,0 +1,24 @@ +// vsxei32.v and vsxseg[2-8]ei32.v +VI_DUPLICATE_VREG(insn.rs2(), 32); + +switch(P.VU.vsew) { + case e8: { + VI_ST_INDEX(index[i], fn, uint8, true); + } + break; + case e16: { + VI_ST_INDEX(index[i], fn, uint16, true); + } + break; + case e32: { + VI_ST_INDEX(index[i], fn, uint32, true); + } + break; + case e64: { + VI_ST_INDEX(index[i], fn, uint64, true); + } + break; + default: + require(0); + break; +}; |