From f12bc1f55107db8cc4c59a1695bfa1facb6bb5c4 Mon Sep 17 00:00:00 2001 From: Chih-Min Chao Date: Wed, 27 May 2020 23:15:01 -0700 Subject: rvv: index register doesn't care about NF Signed-off-by: Chih-Min Chao --- riscv/decode.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/riscv/decode.h b/riscv/decode.h index 5226948..a0f9f10 100644 --- a/riscv/decode.h +++ b/riscv/decode.h @@ -462,9 +462,7 @@ static inline bool is_aligned(const unsigned val, const unsigned pos) require_align(insn.rd(), P.VU.vflmul); \ require_align(insn.rs2(), P.VU.vemul); \ require((nf * flmul) <= (NVPR / 4) && \ - (nf * emul) <= (NVPR / 4) && \ - (insn.rd() + nf * flmul) <= NVPR && \ - (insn.rs2() + nf * emul) <= NVPR); \ + (insn.rd() + nf * flmul) <= NVPR); \ #define VI_CHECK_LD_INDEX(elt_width) \ VI_CHECK_ST_INDEX(elt_width); \ -- cgit v1.1