[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen staging] x86emul: suppress default test harness build with incapable assembler



commit 09a992a48ab62602ed6154197fd722dd2ca4a932
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Mon Nov 26 17:53:51 2018 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Mon Nov 26 17:53:51 2018 +0100

    x86emul: suppress default test harness build with incapable assembler
    
    A top level "make build", as used e.g. by osstest, wants to build all
    "all" targets in enabled tools subdirectories, which by default also
    includes the emulator test harness. The use of, in particular, {evex}
    insn pseudo-prefixes in, again in particular, test_x86_emulator.c causes
    this build to fail though when the assembler is not new enough. Take
    another big hammer and suppress the default harness build altogether
    also when this and other pseudo-prefixes are not supported by the
    specified (or defaulted to) assembler.
    
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 tools/tests/x86_emulator/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/tests/x86_emulator/Makefile 
b/tools/tests/x86_emulator/Makefile
index d30639c800..e4852e3da7 100644
--- a/tools/tests/x86_emulator/Makefile
+++ b/tools/tests/x86_emulator/Makefile
@@ -80,6 +80,10 @@ endef
 
 $(foreach flavor,$(SIMD) $(FMA),$(eval $(call simd-check-cc,$(flavor))))
 
+# Also explicitly check for {evex} pseudo-prefix support, which got introduced
+# only after AVX512F and some of its extensions.
+TARGET-$(shell echo 'asm("{evex} vzeroall");' | $(CC) -x c -c -o /dev/null - 
|| echo y) :=
+
 ifeq ($(TARGET-y),)
 $(warning Test harness not built, use newer compiler than "$(CC)")
 endif
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.