From: Jan Beulich Date: Mon, 14 Feb 2022 09:09:15 +0000 (+0100) Subject: x86emul: fix SIMD test overriding of VBROADCASTS{S,D} X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~1039 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=94334d854bd358bd1d9c61d5e3306e4d903b120b;p=xen.git 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 --- 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);