]> xenbits.xensource.com Git - xen.git/commitdiff
x86emul: fix SIMD test overriding of VBROADCASTS{S,D}
authorJan Beulich <jbeulich@suse.com>
Mon, 14 Feb 2022 09:09:15 +0000 (10:09 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 14 Feb 2022 09:09:15 +0000 (10:09 +0100)
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 <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/tests/x86_emulator/simd.h

index 5b3b852a076ebe26111a05d8eea5aba09da23919..685d78d84bfda5a6c388bf3d136a2921e8458dcd 100644 (file)
@@ -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);