diff options
author | yangcheng <28107329+yorange1@users.noreply.github.com> | 2022-08-23 05:05:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-22 14:05:19 -0700 |
commit | 1556cf7fe2d8e31ca9e80b8e6e9eea7fbf12314d (patch) | |
tree | 1f49ac4fed0eea4d0dd556968dcfb2349b9a1ebd /riscv | |
parent | 25f2e61d0e178890c0fd46d6a5a288c33d7c6fc8 (diff) | |
download | spike-1556cf7fe2d8e31ca9e80b8e6e9eea7fbf12314d.zip spike-1556cf7fe2d8e31ca9e80b8e6e9eea7fbf12314d.tar.gz spike-1556cf7fe2d8e31ca9e80b8e6e9eea7fbf12314d.tar.bz2 |
Fix redundant loops when calculating vrgather.vi. (#1072)
Diffstat (limited to 'riscv')
-rw-r--r-- | riscv/insns/vrgather_vi.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/riscv/insns/vrgather_vi.h b/riscv/insns/vrgather_vi.h index 56e11e1..85ba621 100644 --- a/riscv/insns/vrgather_vi.h +++ b/riscv/insns/vrgather_vi.h @@ -7,10 +7,6 @@ require_vm; reg_t zimm5 = insn.v_zimm5(); VI_LOOP_BASE - -for (reg_t i = P.VU.vstart->read(); i < vl; ++i) { - VI_LOOP_ELEMENT_SKIP(); - switch (sew) { case e8: P.VU.elt<uint8_t>(rd_num, i, true) = zimm5 >= P.VU.vlmax ? 0 : P.VU.elt<uint8_t>(rs2_num, zimm5); @@ -25,6 +21,4 @@ for (reg_t i = P.VU.vstart->read(); i < vl; ++i) { P.VU.elt<uint64_t>(rd_num, i, true) = zimm5 >= P.VU.vlmax ? 0 : P.VU.elt<uint64_t>(rs2_num, zimm5); break; } -} - VI_LOOP_END; |