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

[PATCH] x86emul: fix SIMD test overriding of VBROADCASTS{S,D}


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 11 Feb 2022 12:11:26 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mntgJm/vlrefY5oDYBfkQrVxSgDdqW81Pnz5MPk/d8A=; b=m6yXb9ymppQMLiYrVKOYvq/47a2nfB6MKUoQuS1rCf9YHpeb/ZF1rojHERqVYy9L5YGgOfio/cvAnWvSGRRA6mJnSAR8uarEZSZeE+6UbpsbFC9fgZcig+KapR3gsTdQsyL4JOEwZ0lAd1MhzZUOXFqL9RCh1Q/TIsPFglSrvf7XMtuev4HQszSwhDEEsPKCjPvUqVHRuSSm29PRdPrv5SPilxc2UmfUsxh9hz/J2jusq5yl3OD+cT2CFuPSY7tNorAQTKfnhSmmlwHDxJfH8Vs6jnUzD9YNu4MGWTKZTN27aFj7JIfgrHo62qcO/K9VQYdeq8PjsRri9Ocamt3w8A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jGfAJIr4jeMi0+fXtHKgfI+krca68BVh7V1U6FFnn82cnGihLTgFHLTDOCB+CvB/QNWNbMQOUvBuI2cwQP1mzLPsD3b5ZAb3J+Xt+e3bJ1opyK1i1mwHJzOE+IyMyfof5U5VX37n5mwoURhymaJn4BM/NeQvQMBUdCqDYm6/xc91uUjwDq8CqgHGhp+Il8quExhBVa5duzsI2sGrU3DcSizpzi1sAdtviqPosqYvkk6fPP/FETNz3kDnGVmpomk5T4eHX1pWNFMWpo6/54HJTdrhNZpg04alR70mMASL1xCtTjxoi9t4uUMYywfLOdkY4oVUE7eMqQy6qWp3HdYymA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Fri, 11 Feb 2022 11:11:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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@xxxxxxxx>

--- 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);




 


Rackspace

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