Skip to content

Commit

Permalink
tcg/s390x: Fix tcg_out_dup_vec vs general registers
Browse files Browse the repository at this point in the history
We copied the data from the general register input to the
vector register output, but have not yet replicated it.
We intended to fall through into the vector-vector case,
but failed to redirect the input register.

This is caught by an assertion failure in tcg_out_insn_VRIc,
which diagnosed the incorrect register class.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed Mar 14, 2022
1 parent 6e5f9fb commit 6e591a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tcg/s390x/tcg-target.c.inc
Expand Up @@ -2675,6 +2675,7 @@ static bool tcg_out_dup_vec(TCGContext *s, TCGType type, unsigned vece,
if (vece == MO_64) {
return true;
}
src = dst;
}

/*
Expand Down

0 comments on commit 6e591a8

Please sign in to comment.