]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tcg/i386: Fix dupi for avx2 32-bit hosts
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 7 Sep 2020 00:38:32 +0000 (17:38 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 8 Oct 2020 10:57:32 +0000 (05:57 -0500)
The previous change wrongly stated that 32-bit avx2 should have
used VPBROADCASTW.  But that's a 16-bit broadcast and we want a
32-bit broadcast.

Fixes: 7b60ef3264e
Cc: qemu-stable@nongnu.org
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/i386/tcg-target.c.inc

index 2f696074ab34b7af61a90ccfa8700bc5f6163028..d8797ed3987dde73baf62bca4c401364dda81d07 100644 (file)
@@ -958,7 +958,7 @@ static void tcg_out_dupi_vec(TCGContext *s, TCGType type,
         new_pool_label(s, arg, R_386_PC32, s->code_ptr - 4, -4);
     } else {
         if (have_avx2) {
-            tcg_out_vex_modrm_pool(s, OPC_VPBROADCASTW + vex_l, ret);
+            tcg_out_vex_modrm_pool(s, OPC_VPBROADCASTD + vex_l, ret);
         } else {
             tcg_out_vex_modrm_pool(s, OPC_VBROADCASTSS, ret);
         }