Skip to content

Commit

Permalink
tcg/s390x: Fix INDEX_op_bitsel_vec vs VSEL
Browse files Browse the repository at this point in the history
The operands are output in the wrong order: the tcg selector
argument is first, whereas the s390x selector argument is last.

Tested-by: Thomas Huth <thuth@redhat.com>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/898
Fixes: 9bca986 ("tcg/s390x: Implement TCG_TARGET_HAS_bitsel_vec")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed Mar 14, 2022
1 parent a66669c commit 6e5f9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcg/s390x/tcg-target.c.inc
Expand Up @@ -2868,7 +2868,7 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc,
break;

case INDEX_op_bitsel_vec:
tcg_out_insn(s, VRRe, VSEL, a0, a1, a2, args[3]);
tcg_out_insn(s, VRRe, VSEL, a0, a2, args[3], a1);
break;

case INDEX_op_cmp_vec:
Expand Down

0 comments on commit 6e5f9fb

Please sign in to comment.