Skip to content

Commit 19d1074

Browse files
rnaxantonblanchard
authored andcommitted
target/riscv: rvv: Apply vext_check_input_eew to vector slide instructions(OPIVI/OPIVX)
Handle the overlap of source registers with different EEWs. Co-authored-by: Anton Blanchard <[email protected]> Reviewed-by: Daniel Henrique Barboza <[email protected]> Signed-off-by: Max Chou <[email protected]> Message-ID: <[email protected]> Signed-off-by: Alistair Francis <[email protected]> Cc: [email protected] (cherry picked from commit b5480a6) Signed-off-by: Michael Tokarev <[email protected]>
1 parent 2a0eb3c commit 19d1074

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

target/riscv/insn_trans/trans_rvv.c.inc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,9 @@ static bool vext_check_slide(DisasContext *s, int vd, int vs2,
638638
{
639639
bool ret = require_align(vs2, s->lmul) &&
640640
require_align(vd, s->lmul) &&
641-
require_vm(vm, vd);
641+
require_vm(vm, vd) &&
642+
vext_check_input_eew(s, -1, 0, vs2, s->sew, vm);
643+
642644
if (is_over) {
643645
ret &= (vd != vs2);
644646
}

0 commit comments

Comments
 (0)