From d3553b5d03fb0a37d657d0534c508354f0378307 Mon Sep 17 00:00:00 2001 From: Chih-Min Chao Date: Wed, 27 May 2020 22:56:20 -0700 Subject: rvv: fix ext alignment checking for src and dst Signed-off-by: Chih-Min Chao --- riscv/decode.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'riscv/decode.h') diff --git a/riscv/decode.h b/riscv/decode.h index 981f65e..5226948 100644 --- a/riscv/decode.h +++ b/riscv/decode.h @@ -1749,6 +1749,8 @@ for (reg_t i = 0; i < P.VU.vlmax && P.VU.vl != 0; ++i) { \ require_vm; \ reg_t from = P.VU.vsew / div; \ require(from >= e8 && from <= e64); \ + require_align(insn.rd(), P.VU.vflmul); \ + require_align(insn.rs2(), P.VU.vflmul / div); \ require_noover(insn.rd(), P.VU.vflmul, insn.rs2(), P.VU.vflmul / div); \ reg_t pat = (((P.VU.vsew >> 3) << 4) | from >> 3); \ VI_GENERAL_LOOP_BASE \ -- cgit v1.1