]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
tcg/i386: Fix encoding of OPC_VPSRAQ for INDEX_op_sars_vec
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 1 Jun 2022 23:22:19 +0000 (16:22 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 2 Jun 2022 15:09:46 +0000 (08:09 -0700)
We wanted the VPSRAQ variant with the scalar vector shift operand,
not the variant with an immediate operand.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1022
Fixes: 47b331b2a8da ("tcg/i386: Implement avx512 scalar shift")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/i386/tcg-target.c.inc

index b5c61598534154a7b172bb6b7663c8abb572a167..d52206ba4d357ecb7a88a180854e598328038fec 100644 (file)
@@ -375,7 +375,7 @@ static bool tcg_target_const_match(int64_t val, TCGType type, int ct)
 #define OPC_PSLLQ       (0xf3 | P_EXT | P_DATA16)
 #define OPC_PSRAW       (0xe1 | P_EXT | P_DATA16)
 #define OPC_PSRAD       (0xe2 | P_EXT | P_DATA16)
-#define OPC_VPSRAQ      (0x72 | P_EXT | P_DATA16 | P_VEXW | P_EVEX)
+#define OPC_VPSRAQ      (0xe2 | P_EXT | P_DATA16 | P_VEXW | P_EVEX)
 #define OPC_PSRLW       (0xd1 | P_EXT | P_DATA16)
 #define OPC_PSRLD       (0xd2 | P_EXT | P_DATA16)
 #define OPC_PSRLQ       (0xd3 | P_EXT | P_DATA16)