diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-05-21 20:01:32 -0700 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-05-21 20:45:57 -0700 |
commit | 857ebb501199938327e9d25db45ccc13d646d4f6 (patch) | |
tree | ebc5cf3ea58f60311bffc49dadb40118c6c0c017 /riscv/insns/vmerge_vvm.h | |
parent | 7eed9371f79f5c8f4675078d11a0228af9b5f571 (diff) | |
download | spike-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/vmerge_vvm.h')
-rw-r--r-- | riscv/insns/vmerge_vvm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/insns/vmerge_vvm.h b/riscv/insns/vmerge_vvm.h index f0a3fd5..d670554 100644 --- a/riscv/insns/vmerge_vvm.h +++ b/riscv/insns/vmerge_vvm.h @@ -3,8 +3,8 @@ require_vector; VI_CHECK_SSS(true); VI_VVXI_MERGE_LOOP ({ - int midx = (P.VU.vmlen * i) / 64; - int mpos = (P.VU.vmlen * i) % 64; + int midx = i / 64; + int mpos = i % 64; bool use_first = (P.VU.elt<uint64_t>(0, midx) >> mpos) & 0x1; vd = use_first ? vs1 : vs2; |