aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vsxei32_v.h
diff options
context:
space:
mode:
authorChih-Min Chao <chihmin.chao@sifive.com>2020-05-20 01:55:46 -0700
committerChih-Min Chao <chihmin.chao@sifive.com>2020-05-20 11:38:45 -0700
commit5126f9ac6ba365a949e8125ea0caaa7185a0e542 (patch)
tree1deeab180cd2c740e7ac423586c62e82d7a3fa33 /riscv/insns/vsxei32_v.h
parentf3ea0d7081f5156df776ac70e245d5d63a44f03a (diff)
downloadspike-5126f9ac6ba365a949e8125ea0caaa7185a0e542.zip
spike-5126f9ac6ba365a949e8125ea0caaa7185a0e542.tar.gz
spike-5126f9ac6ba365a949e8125ea0caaa7185a0e542.tar.bz2
rvv: refine st_index
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/insns/vsxei32_v.h')
-rw-r--r--riscv/insns/vsxei32_v.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/riscv/insns/vsxei32_v.h b/riscv/insns/vsxei32_v.h
index 296c8bb..f0aed6b 100644
--- a/riscv/insns/vsxei32_v.h
+++ b/riscv/insns/vsxei32_v.h
@@ -1,24 +1,2 @@
// 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;
-};
+VI_ST_INDEX(e32, true);