diff options
author | Chih-Min Chao <48193236+chihminchao@users.noreply.github.com> | 2020-03-13 12:29:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-12 21:29:29 -0700 |
commit | 8b68e135012560a8b7b1cca3a767f169faa732f0 (patch) | |
tree | 229657173830ea3c6ea4a823b38f7a0acb13e8d1 | |
parent | f048ad619f660762f9f4b5213b6914aef75db1a4 (diff) | |
download | riscv-isa-sim-8b68e135012560a8b7b1cca3a767f169faa732f0.zip riscv-isa-sim-8b68e135012560a8b7b1cca3a767f169faa732f0.tar.gz riscv-isa-sim-8b68e135012560a8b7b1cca3a767f169faa732f0.tar.bz2 |
rvv: commitlog: fix vrgather_vv dump (#421)
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
-rw-r--r-- | riscv/insns/vrgather_vv.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/riscv/insns/vrgather_vv.h b/riscv/insns/vrgather_vv.h index 8266c95..822e197 100644 --- a/riscv/insns/vrgather_vv.h +++ b/riscv/insns/vrgather_vv.h @@ -11,22 +11,22 @@ VI_LOOP_BASE case e8: { auto vs1 = P.VU.elt<uint8_t>(rs1_num, i); //if (i > 255) continue; - P.VU.elt<uint8_t>(rd_num, i) = vs1 >= P.VU.vlmax ? 0 : P.VU.elt<uint8_t>(rs2_num, vs1); + P.VU.elt<uint8_t>(rd_num, i, true) = vs1 >= P.VU.vlmax ? 0 : P.VU.elt<uint8_t>(rs2_num, vs1); break; } case e16: { auto vs1 = P.VU.elt<uint16_t>(rs1_num, i); - P.VU.elt<uint16_t>(rd_num, i) = vs1 >= P.VU.vlmax ? 0 : P.VU.elt<uint16_t>(rs2_num, vs1); + P.VU.elt<uint16_t>(rd_num, i, true) = vs1 >= P.VU.vlmax ? 0 : P.VU.elt<uint16_t>(rs2_num, vs1); break; } case e32: { auto vs1 = P.VU.elt<uint32_t>(rs1_num, i); - P.VU.elt<uint32_t>(rd_num, i) = vs1 >= P.VU.vlmax ? 0 : P.VU.elt<uint32_t>(rs2_num, vs1); + P.VU.elt<uint32_t>(rd_num, i, true) = vs1 >= P.VU.vlmax ? 0 : P.VU.elt<uint32_t>(rs2_num, vs1); break; } default: { auto vs1 = P.VU.elt<uint64_t>(rs1_num, i); - P.VU.elt<uint64_t>(rd_num, i) = vs1 >= P.VU.vlmax ? 0 : P.VU.elt<uint64_t>(rs2_num, vs1); + P.VU.elt<uint64_t>(rd_num, i, true) = vs1 >= P.VU.vlmax ? 0 : P.VU.elt<uint64_t>(rs2_num, vs1); break; } } |