From 94334d854bd358bd1d9c61d5e3306e4d903b120b Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 14 Feb 2022 10:09:15 +0100 Subject: [PATCH] x86emul: fix SIMD test overriding of VBROADCASTS{S,D} Despite their suffixes these aren't scalar instructions, and hence the 128- and 256-bit EVEX forms may not be used without AVX512VL. Gcc11 ends up generating such instances for simd-sg.c. Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- tools/tests/x86_emulator/simd.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/tests/x86_emulator/simd.h b/tools/tests/x86_emulator/simd.h index 5b3b852a07..685d78d84b 100644 --- a/tools/tests/x86_emulator/simd.h +++ b/tools/tests/x86_emulator/simd.h @@ -250,7 +250,9 @@ asm ( ".macro override insn \n\t" # define OVR_INT(n) OVR_BW(n); OVR_DQ(n) OVR_INT(broadcast); +# ifdef __AVX512VL__ OVR_SFP(broadcast); +# endif OVR_SFP(comi); OVR_VFP(cvtdq2); OVR_INT(abs); -- 2.30.2