diff options
author | Dave Wen <dave.wen@sifive.com> | 2020-06-16 06:54:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-15 15:54:28 -0700 |
commit | 2495301866ef4c432dab63bc140092994771adde (patch) | |
tree | fab19a16986e3b0871747bba9f1c5cde41bd7743 /riscv | |
parent | 983abeaa9fb9c9c5cc8b318fdad11305a88021f3 (diff) | |
download | spike-2495301866ef4c432dab63bc140092994771adde.zip spike-2495301866ef4c432dab63bc140092994771adde.tar.gz spike-2495301866ef4c432dab63bc140092994771adde.tar.bz2 |
remove the redundant code (#488)
Diffstat (limited to 'riscv')
-rw-r--r-- | riscv/decode.h | 1 | ||||
-rw-r--r-- | riscv/insns/vmsbc_vvm.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/riscv/decode.h b/riscv/decode.h index d37310a..7debeaa 100644 --- a/riscv/decode.h +++ b/riscv/decode.h @@ -1878,7 +1878,6 @@ for (reg_t i = 0; i < P.VU.vlmax && P.VU.vl != 0; ++i) { \ bool is_active = false; \ for (reg_t i=P.VU.vstart; i<vl; ++i){ \ VI_LOOP_ELEMENT_SKIP(); \ - int##width##_t &vd = P.VU.elt<int##width##_t>(rd_num, i, true); \ float##width##_t vs2 = P.VU.elt<float##width##_t>(rs2_num, i); \ is_active = true; \ diff --git a/riscv/insns/vmsbc_vvm.h b/riscv/insns/vmsbc_vvm.h index b6f1521..ff95464 100644 --- a/riscv/insns/vmsbc_vvm.h +++ b/riscv/insns/vmsbc_vvm.h @@ -2,7 +2,7 @@ VI_VV_LOOP_CARRY ({ auto v0 = P.VU.elt<uint64_t>(0, midx); - const uint64_t mmask = UINT64_C(1) << mpos; \ + const uint64_t mmask = UINT64_C(1) << mpos; const uint128_t op_mask = (UINT64_MAX >> (64 - sew)); uint64_t carry = insn.v_vm() == 0 ? (v0 >> mpos) & 0x1 : 0; |