[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] x86: also suppress use of MMX insns
- To: Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <amc96@xxxxxxxx>
- From: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
- Date: Wed, 20 Jul 2022 13:39:19 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.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=K8pypOpu9hgaR5vnUwx2r0HrjGvMH+W17ooc+AAQInY=; b=gAAJSVjiCRym2eCrignkHUD/GOv/NE33LIjK7y+V+a9VtY1h+tOBnH2tWd8ne+4iGoGpEkvIh0GxorncADEKQXKiOfKrucf/f0TiWM4pvE6IFMSGJFDhtRzEfgG7F/ONIN3oL5fXTli5+UleyQreTW2e/OiO5JrtTzdyQEmR0Z3xYw6uzRMmmVXRmpFwpWZwnrvXYugVMlkOby95i4d4nRx2JYQ7WFUvkxScXYGwy6uePLEFSjNGspDoFsgzEN3A6BCxdMrLugPCHFw3Rs5OKnQya/sBqxZ5k4uhbHVLNVc1zWovxJ5eHpBr4gbgFCeExm5BUB8yRsJQUZTOuqBwCg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EQx8f0MFGlg5fwJaN7p5tmlyc44qXANekAzNkBu1B5kkGoeUIYcz7tQsfLwbQ3Ug+KKAVf1ozNfSSVLYNCajmdU3SLFK1NA6CIPMtOkSlbzNtjbMLQV7cW8PmKil2cwEmKW/3lC5eWBCxEqLPhArgJIBrQn6TfkgzR5ukKl8Mv4feZT9KpDYOvuB4j641RQoF3exB1C8uKgKMZEcl3mL/qS+ElQNf+USgscANJ+mG1Ptu0MBq9vsvVBegBz9waOLmvwZhjWoIXUEi8qLXELk5hSf0aNbnAQrYp2khogekbJxhmco7mPFHeZj5jaqsfmWVWpGNB+Ci/BPIbYFInISVA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Wei Liu <wl@xxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>, ChrisD <chris@xxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Wed, 20 Jul 2022 13:39:28 +0000
- Ironport-data: A9a23:gG6Ng63iQHWqScn6ZvbD5RZwkn2cJEfYwER7XKvMYLTBsI5bpzQCy mNKCmGHOPuCNzTxfth+bInipBsEusPSx4QxQVBvpC1hF35El5HIVI+TRqvS04J+DSFhoGZPt Zh2hgzodZhsJpPkjk7xdOKn9RGQ7InQLpLkEunIJyttcgFtTSYlmHpLlvUwx4VlmrBVOSvU0 T/Ji5CZaQXNNwJcaDpOsfrc8ks35ZwehRtD1rAATaET1LPhvyF94KI3fcmZM3b+S49IKe+2L 86rIGaRpz6xE78FU7tJo56jGqE4aue60Tum0xK6b5OKkBlazhHe545gXBYqheW7vB3S9zx54 I0lWZVd0m7FNIWU8AgWe0Ew/y2TocSqUVIISJSymZX78qHIT5fj69RCFmwoFo0ew+Z6PFNX+ 8YINwEsSB/W0opawJrjIgVtruIKCZCyea865DRnxzyfCus6S5feRamM/cVfwDo7msFJG7DZe tYdbj1sKh/HZnWjOH9OUM54wLju2ya5KmIFwL6WjfNfD2z75Qp9yrXydvHSfcSHX559lUeEv GPWuW/+B3n2MfTAl2TYoi/y2IcjmwvCao4eBbu+88cwp3e64j0tLEQucGaS9KzRZkmWHog3x 1Yv0igkoLU29UerZsLgRBD+q3mB1jYVXtEBTcUh8gqDjKzZ/26xGWwsXjNHLts8u6ceTjww1 0Shk9rtCCd0sbrTTmiSnp+EoDX3NSULIGsqYS4fURBD89TluJs0jB/EUpBkCqHdszHuMTT5w jTPoC1ggbwW1JcPz//iog2BhC+wrJ/USAJz/h/QQm+u8gJ+YsiiepCs7l/Yq/1HKe51U2W8g ZTNoODGhMhmMH1HvHblrDkldF1x28u4DQ==
- Ironport-hdrordr: A9a23:jwY9uq+OMTAeTklLZktuk+F7db1zdoMgy1knxilNoENuH/Bwxv rFoB1E73TJYW4qKQodcdDpAtjifZtFnaQFrLX5To3SJjUO31HYYL2KjLGSiQEIfheTygcz79 YGT0ETMrzN5B1B/L7HCWqDYpkdKbu8gcaVbI7lph8DIz2CKZsQljuRYTzrcHGeMTM2YabRY6 Dsg/avyQDBRV0nKuCAQlUVVenKoNPG0Lj8ZwQdOhIh4A6SyRu19b/TCXGjr1YjegIK5Y1n3X nOkgT/6Knmmeq80AXg22ja6IkTsMf9y+FEGNeHhqEuW3XRY0eTFcdcso+5zXUISdKUmRIXeR 730lAd1vFImjHsl6eO0F3QMkfboW8TAjTZuCKlaDPY0LDErXQBeoR8bMtiA2XkAwBLhqAC7I tbm22erJZZFhXGgWD04MXJTQhjkg6urWMlivN7tQ0XbWIyUs4nkWUkxjIiLL4QWCbhrIw3Gu hnC8/RoP5QbFOBdnjc+m1i2salUHg/FgqPBhFqgL3f7xFG2HRii0cIzs0WmXkNsJo7Vplf/u zBdqBljqtHQMMaZb90QO0BXcy0AGrQRg+kChPbHX33UKUcf37doZ/+57s4oOmsZZwT1ZM33I /MVVtJ3FRCD34Gyff+qaGj3iq9MFlVBw6du/22z6IJyYHUVf7sLTCJTkwono+pv+gfa/erKc qOBA==
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHYnDziwacZadvwmE2/HDJeAtmcAK2HQiYAgAAA5wCAAACxAA==
- Thread-topic: [PATCH] x86: also suppress use of MMX insns
On 20/07/2022 14:36, Jan Beulich wrote:
> 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.
Ok. Sounds plausible.
~Andrew
|