diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2019-10-28 23:46:56 -0700 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2019-10-28 23:46:56 -0700 |
commit | 7eeee127dac2a0eb71f5b0ac4921af017070513c (patch) | |
tree | c56ca0b61fabc5761b3408b92608d53c57aa882c | |
parent | f90db5367c1bd052e7373ea6c7d9b04c23ba8c1d (diff) | |
download | spike-7eeee127dac2a0eb71f5b0ac4921af017070513c.zip spike-7eeee127dac2a0eb71f5b0ac4921af017070513c.tar.gz spike-7eeee127dac2a0eb71f5b0ac4921af017070513c.tar.bz2 |
rvv: remove unused loop
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
-rw-r--r-- | riscv/insns/vmv_x_s.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/riscv/insns/vmv_x_s.h b/riscv/insns/vmv_x_s.h index 8b50cb6..50f2e79 100644 --- a/riscv/insns/vmv_x_s.h +++ b/riscv/insns/vmv_x_s.h @@ -2,9 +2,10 @@ require(insn.v_vm() == 1); uint64_t xmask = UINT64_MAX >> (64 - P.get_max_xlen()); reg_t rs1 = RS1; -VI_LOOP_BASE -VI_LOOP_END_NO_TAIL_ZERO -if (!(rs1 >= 0 && rs1 < (P.VU.get_vlen()/sew))) { +reg_t sew = P.VU.vsew; +reg_t rs2_num = insn.rs2(); + +if (!(rs1 >= 0 && rs1 < (P.VU.get_vlen() / sew))) { WRITE_RD(0); } else { switch(sew) { |