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

Re: [PATCH] x86: also suppress use of MMX insns


  • To: Andrew Cooper <amc96@xxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 20 Jul 2022 15:36:50 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; 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=02Xp6Q0Kl5AIhlobm5XcZDgjJAMUIe8aGwPMEGe9YWc=; b=AyWDaqHRjvUDdOaL9Q83r12wsF5uwCwUHkG2erwRIMM8yBcBVT78apbNoP9m0cRr5mNnIxBsKacJr8r17LlMDyjBFHXa4Y/F4fZo480l97UIylfzhPeVn+94mpF3qztw0dEEdOJnmWWRemsd60Gw+jeLm6XYfe75RNvwX5M2h4x7qjqY3CjluvAiy+EcFX04+k3J1Wg9M3JeIjYTzi649MEp7HGWgnVxnSKxnRAXOvtr/2pql6AcSlI6M2pEoxLVzIQK70ErquNoXZULp7akiuoUzySUT0VnhQpMnMdwaN0LmMXbULnJzo//N7A/jcVm7nHOfjAziKOR3OxorqARyQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OjX+Jh8umV3vkbksm+MnCV/ge8xQGEbMYjASCPoNX71fKDJYn28ws9513ONW9yz/+R1S3Zu9vwJSl7lV6xM/Eb1GZjysSe7guMdE2gyJwrTRttaaF7Pq9d8sReM1xQUeg2DbsYimld76VAeDnjqvAHOAozQBa7JASyZs2/uJZTUDyYuP9eLILZDZ7Twd9dTHRvq2D7fPAzhHN2GI2ZmfX723W4IdW5brldUZxXH2xepEwg1lhvl294j2lzZF01Zo+MnmZcfzfP7HOZC4B+8Uzm4tLZ5c7qPj83tcZREWGPaSP+/Sfa+oaq/XnY08EWVCF1+6db45Qh3AfPCP77LcsA==
  • 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>, ChrisD <chris@xxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 20 Jul 2022 13:37:01 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 20.07.2022 15:33, Andrew Cooper wrote:
> On 20/07/2022 14:30, Jan Beulich wrote:
>> Passing -mno-sse alone is not enough: The compiler may still find
>> (questionable) reasons to use MMX insns. In particular with gcc12 use
>> of MOVD+PUNPCKLDQ+MOVQ was observed in an apparent attempt to auto-
>> vectorize the storing of two adjacent zeroes, 32 bits each.
>>
>> Reported-by: ChrisD <chris@xxxxxxxxxxxx>
>> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
> 
> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

Thanks.

> But while we're at it, what else might we have to clobber to stop
> nonsense like this?  x87 and avx come to mind.

AVX is taking SSE as a prereq (with -mno-sse %xmm etc registers simply
are unavailable). And with -msoft-float I would very much hope we have
clearly indicated to the compiler that we want no x87 insns whatsoever.

Jan



 


Rackspace

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