Skip to content

Commit faaeaa9

Browse files
rnaxantonblanchard
authored andcommitted
target/riscv: rvv: Apply vext_check_input_eew to vector integer extension instructions(OPMVV)
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 411eefd) Signed-off-by: Michael Tokarev <[email protected]>
1 parent 19d1074 commit faaeaa9

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
@@ -3659,7 +3659,9 @@ static bool int_ext_check(DisasContext *s, arg_rmr *a, uint8_t div)
36593659
require_align(a->rd, s->lmul) &&
36603660
require_align(a->rs2, s->lmul - div) &&
36613661
require_vm(a->vm, a->rd) &&
3662-
require_noover(a->rd, s->lmul, a->rs2, s->lmul - div);
3662+
require_noover(a->rd, s->lmul, a->rs2, s->lmul - div) &&
3663+
vext_check_input_eew(s, -1, 0, a->rs2, s->sew, a->vm);
3664+
36633665
return ret;
36643666
}
36653667

0 commit comments

Comments
 (0)