Skip to content

Commit 2a0eb3c

Browse files
rnaxantonblanchard
authored andcommitted
target/riscv: rvv: Apply vext_check_input_eew to OPIVV/OPFVV(vext_check_sss) instructions
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 fda68ac) Signed-off-by: Michael Tokarev <[email protected]>
1 parent 0bfd8dd commit 2a0eb3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

target/riscv/insn_trans/trans_rvv.c.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ static bool vext_check_ss(DisasContext *s, int vd, int vs, int vm)
432432
static bool vext_check_sss(DisasContext *s, int vd, int vs1, int vs2, int vm)
433433
{
434434
return vext_check_ss(s, vd, vs2, vm) &&
435+
vext_check_input_eew(s, vs1, s->sew, vs2, s->sew, vm) &&
435436
require_align(vs1, s->lmul);
436437
}
437438

0 commit comments

Comments
 (0)