aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vmadc_vvm.h
diff options
context:
space:
mode:
authorChih-Min Chao <chihmin.chao@sifive.com>2020-05-21 20:01:32 -0700
committerChih-Min Chao <chihmin.chao@sifive.com>2020-05-21 20:45:57 -0700
commit857ebb501199938327e9d25db45ccc13d646d4f6 (patch)
treeebc5cf3ea58f60311bffc49dadb40118c6c0c017 /riscv/insns/vmadc_vvm.h
parent7eed9371f79f5c8f4675078d11a0228af9b5f571 (diff)
downloadspike-857ebb501199938327e9d25db45ccc13d646d4f6.zip
spike-857ebb501199938327e9d25db45ccc13d646d4f6.tar.gz
spike-857ebb501199938327e9d25db45ccc13d646d4f6.tar.bz2
rvv: remove vmlen
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/insns/vmadc_vvm.h')
-rw-r--r--riscv/insns/vmadc_vvm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/insns/vmadc_vvm.h b/riscv/insns/vmadc_vvm.h
index eae71d2..a5d54c6 100644
--- a/riscv/insns/vmadc_vvm.h
+++ b/riscv/insns/vmadc_vvm.h
@@ -2,7 +2,7 @@
VI_VV_LOOP_CARRY
({
auto v0 = P.VU.elt<uint64_t>(0, midx);
- const uint64_t mmask = (UINT64_MAX << (64 - mlen)) >> (64 - mlen - 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;