]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tcg/s390x: Fix INDEX_op_bitsel_vec vs VSEL
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 3 Mar 2022 00:09:35 +0000 (19:09 -0500)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 14 Mar 2022 17:31:51 +0000 (10:31 -0700)
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: 9bca986df88 ("tcg/s390x: Implement TCG_TARGET_HAS_bitsel_vec")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/s390x/tcg-target.c.inc

index 508f1bccc72e2d0364168c3c0e9b029c0c185534..3b185b3c96d4dfaff57f75b5768562d96cb9a955 100644 (file)
@@ -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: