From 7b1291e2debde18c48cf30815fe4777ef3cce4f1 Mon Sep 17 00:00:00 2001 From: Chih-Min Chao Date: Thu, 21 May 2020 01:17:22 -0700 Subject: rvv: src can't overlap dst for ext Signed-off-by: Chih-Min Chao --- riscv/decode.h | 1 + 1 file changed, 1 insertion(+) diff --git a/riscv/decode.h b/riscv/decode.h index 942c17c..76b9382 100644 --- a/riscv/decode.h +++ b/riscv/decode.h @@ -1759,6 +1759,7 @@ 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_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 \ VI_LOOP_ELEMENT_SKIP(); \ -- cgit v1.1