diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-02-26 23:06:41 -0800 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-03-12 00:53:27 -0700 |
commit | 5b6e779675c2908413821e07e61fcde2d48cd981 (patch) | |
tree | 54b2b6820696af3d108345c4f8dec0d95b48d8f9 /riscv/insns/vfmv_s_f.h | |
parent | 4c9b5767414cd9e2603ec99de8e9b8b199b5a1db (diff) | |
download | spike-5b6e779675c2908413821e07e61fcde2d48cd981.zip spike-5b6e779675c2908413821e07e61fcde2d48cd981.tar.gz spike-5b6e779675c2908413821e07e61fcde2d48cd981.tar.bz2 |
rvv: fix vfmv.s.f and vfmv.f.s
vfmv.s.f
check valid vstart
vfmv.f.s
reset vstart in the end
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/insns/vfmv_s_f.h')
-rw-r--r-- | riscv/insns/vfmv_s_f.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/insns/vfmv_s_f.h b/riscv/insns/vfmv_s_f.h index 1f319b5..84c5a3f 100644 --- a/riscv/insns/vfmv_s_f.h +++ b/riscv/insns/vfmv_s_f.h @@ -5,7 +5,7 @@ require_extension('F'); require(P.VU.vsew >= e32 && P.VU.vsew <= 64); reg_t vl = P.VU.vl; -if (vl > 0) { +if (vl > 0 && P.VU.vstart < vl) { reg_t rd_num = insn.rd(); switch(P.VU.vsew) { |