From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60061.outbound.protection.outlook.com [40.107.6.61]) by sourceware.org (Postfix) with ESMTPS id 38AF93858D1E for ; Tue, 13 Sep 2022 14:20:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 38AF93858D1E Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MC1xuUeWLKzQHDgRpuDidlHjZsod67vJi6Z6m5XhqdmNQvViMpXW7grHmMn8CrK3FLwjR3Dxy5YuyJzTub2ZQ6+aoJjjkMNb5tsn7NWTSKkT0fAOvf5phpzGi969OgkyYpqIpow5Ks2GgmryBsESev7JpyY6l0ck4psoNHfFpFB6a9FKWFvD2Hfun7cO6v4bt+SiMxqRrAKeZwOVkAv9q8YJcIUOt656Lo47aUZGQNFFxLkmN8mW/ucy3HH7f28lhEMuxLvzBRBrjnwrGktOk45OGCaPDPrawWqCa0r7upubYQHqFay3q3olq8eX6vSMRFXhSaO1SeL+tYjYycYaMw== 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=MUjdyvog6h+bzAx66jUnrGIhHdfjZ6UD5LEn+s9PIdE=; b=gpvNk+EDo/mbdRHFWyk3E2Dd8x6IslyAymvNLoLxxI8EJWxPZtHmL1MSaI9AHJo3iTfNDb2BLYgWusqDU5izMsHgnnkvQcK0NvyW52wMgELoL9eAETd9/PWhw2wy57XGobQOC4ljHFRVJiplnNan5UQfl/DdwKJJKmNcQM4AWnAo5qac+4W+DcyTUW0rKXzioYYi76tCyAOcNeXORyf9P/DXqwkn1o6Y0AKyutgTeGCrZSGOQevTcDhIKyjixZxBzo5spUaHqucdt8khkyZ4055cbxkd1SW0wj35DXtSXLp4eRIDGVRyS3pqnuvHodaXIOxA1VaveOdUXMfhjIfNbg== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MUjdyvog6h+bzAx66jUnrGIhHdfjZ6UD5LEn+s9PIdE=; b=IFXC0jnBQSfuDMJN5oMb7OQj/5dfFQw+G+T/H1eqEbbeTdpdNM7gZBurcX8i529an/jLAuYRv9fTpThuHqg9I/4Qq1D9niZZSiX/Dmw84Whhyqjte9iDVnfKd62vwVAuMclXkGOVgvJqLirofii36yes7KZ7rZs77S1whjITirV7nibO5iwI2l6f+066oAJVR5hsAddw5gX7KTijrKy7dlaRdLvvPhKAvK3Ew7a4y1EPwLJYO+QiUraN79dMWKcJcCwosG2boIEr1NBnV9jeoVreDx672il48FAoAZStAaNTavfyUpu7+ux/97Xaq44eUEbEWxrhNJxCsmDfbjf/aQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) by PAXPR04MB9219.eurprd04.prod.outlook.com (2603:10a6:102:222::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Tue, 13 Sep 2022 14:20:30 +0000 Received: from VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::59bc:901a:98a7:76d4]) by VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::59bc:901a:98a7:76d4%5]) with mapi id 15.20.5612.022; Tue, 13 Sep 2022 14:20:30 +0000 Message-ID: <23e9e3ce-69e0-504c-9724-c58b58832e3b@suse.com> Date: Tue, 13 Sep 2022 16:20:28 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Ping: [PATCH v2 1/7] x86/Intel: restrict suffix derivation Content-Language: en-US To: "H.J. Lu" References: <4a27fbde-d2b2-e293-d09e-9709bc5b9792@suse.com> <623ba30c-4615-a658-fa59-2941e2892de4@suse.com> Cc: Binutils From: Jan Beulich In-Reply-To: <623ba30c-4615-a658-fa59-2941e2892de4@suse.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR3P281CA0033.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1c::12) To VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6560:EE_|PAXPR04MB9219:EE_ X-MS-Office365-Filtering-Correlation-Id: daa2f9c0-b139-495a-f538-08da95931cc5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: e+PAf/qCQ4Ejss+iPRw4mC3AfLPGdCmyqdhK1rla69Pkh/ixoiNZYM7oSIrecIFAZntoIE/eegXSjVzEpezu9r54os4jpJ0xbxp9iNHZeWZKeKK8LLfb+1Mx01oWTedF1YyeIihG5mKr0laM1LEc6Lonrn+GUnXp8v+mOLp4XO1LTkSLCaIFIRgL53VE3cgxBL4bFJLJhP+bawbAnMw/I/zo6PH02+3S7g4xUWbLpWbQAx1+WUjvjqSOoadgkP9/WZWb6KU7PIjOJayw4U9H5Pxn2uYuRmZMHTJg1tL18WMhUDPP1Swpt/zgJhxFvNtIxPLfVIyVpUQ53zvaVDzpBCeo2WHlbjyjbuZUwuY1ou1Hi/77KcwwSmB4Rvvj/zpB8G3dKsO70k5V+xLO6Xh8zr5VDW3Aq8qKPPOahDVOSCY5ZEMPpAJKajJEQxCy3E2VaNnsPjBY6MM0lqRal7QefyITcP9OpZ6/QrxjI3zDhYzIY7MAuYBlOK5JUIRADpHt4wApKpgRsMZDwTexhdME7phKFc24Sg9UYJCE7Ltg8h15w1Ox86MLi0zeaou3Ncuqvq8SRt+EOVGmuZAsFEoJzojGAo2cG4pbiDLj7c9jwtQFuXvgqpi0Tx8I0adqDrezfM0qN1AAnCof2t5LYScYeZ+alLYY+wiJI3bzOrmQR8z1yX3hxxzZGQVNdFrQP5tSwZpoFGaF2UUctEJ32gHUGYwgU1+jjrRC1l4nNVSrLIhVUqdQsqwhldfkndfJLs0T68uvlX23AgOkJ5D/MksbK/SnLC0hTpXZMq7caTZ4arY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6560.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(346002)(39860400002)(396003)(376002)(366004)(136003)(451199015)(316002)(66556008)(6506007)(66476007)(66946007)(41300700001)(6486002)(478600001)(31696002)(6916009)(8936002)(5660300002)(6512007)(31686004)(86362001)(8676002)(4326008)(38100700002)(186003)(36756003)(2906002)(2616005)(53546011)(83380400001)(26005)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OWJIWjNKdjJFN0RHd24xZFhFU2VkOFVEV0pjZGlaT2Zubzk5MnZjS3BKNWJp?= =?utf-8?B?YnhnM09tOG5pNXB3U3RvVkJKY05ORjQvdk1KRDloYkhJTlhoWFpoektvY1J5?= =?utf-8?B?OEVpdHJFb0FoMG51WFhxd0lQWUNWN3VYc0lCaGZHQWU5aXpvdFVBaFJUY29u?= =?utf-8?B?SVcyektFUDFaTllXRUUxK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VKS2pk?= =?utf-8?B?WHVnM1ZWQm9Zdy9hM0FFWUwyNU1VK1RtK1NsMDkxK2NiSWJuVS9tY0c2SkVH?= =?utf-8?B?aVM0VjdIS0NRUlFkMjZjOTh3L2lKcEdabGlKa3U2cXdhZTEycGNMOGRZVUg3?= =?utf-8?Q?L8hWscXcpSojsKMbXqZyOrcak?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: daa2f9c0-b139-495a-f538-08da95931cc5 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6560.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2022 14:20:30.3062 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: k1/HAewv93hEFPINgXjJw4K0/A8oIkiHWu++n1xEiMfMghRjrUxxBZBbYKlE9+6utRMHzNqqQ2oQY6AxswuzOw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9219 X-Spam-Status: No, score=-3030.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 26.08.2022 12:30, Jan Beulich via Binutils wrote: > While in some cases deriving an AT&T-style suffix from an Intel syntax > memory operand size specifier is necessary, in many cases this is not > only pointless, but has led to the introduction of various workarounds: > Excessive use of IgnoreSize and NoRex64 as well as the ToDword and > ToQword attributes. Suppress suffix derivation when we can clearly tell > that the memory operand's size isn't going to be needed to infer the > possible need for the low byte/word opcode bit or an operand size prefix > (0x66 or REX.W). > > As a result ToDword and ToQword can be dropped entirely, plus a fair > number of IgnoreSize and NoRex64 can also be got rid of. Note that > IgnoreSize needs to remain on legacy encoded SIMD insns with GPR > operand, to avoid emitting an operand size prefix in 16-bit mode. (Since > 16-bit code using SIMD insns isn't well tested, clone an existing > testcase just enough to cover a few insns which are potentially > problematic but are being touched here.) > > Note that while folding the VCVT{,T}S{S,D}2SI templates, VCVT{,T}SH2SI > isn't included there. This is to fulfill the request of not allowing L > and Q suffixes there, despite the inconsistency with VCVT{,T}S{S,D}2SI. > --- > Long term suffix derivation should be dropped altogether, not the least > such that bogus error messages like "incorrect register `...' used with > `...' suffix" don't misguid people anymore when no suffix was used at > all. > --- > v2: Don't cover VCVT{,T}SH2SI with the templatization. Since you didn't like the respective aspect of v1, may I ask for explicit feedback on v2? If I don't hear back by the end of next week, I guess I'll commit this change. Jan