From patchwork Mon Jun 3 11:49:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 91399 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2E7703AA843D for ; Mon, 3 Jun 2024 11:50:50 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20601.outbound.protection.outlook.com [IPv6:2a01:111:f403:2613::601]) by sourceware.org (Postfix) with ESMTPS id D1A453AA8421 for ; Mon, 3 Jun 2024 11:49:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D1A453AA8421 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D1A453AA8421 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2613::601 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1717415394; cv=pass; b=UyyZPVv074xjWCmWTlt+y3Gb78uztvsvEM1eUHFaNtIxOOUFj/N014NpNZMLtWVhuh6KCNvsCbdGz6hNQRWxfGKh33lDV363dzsNk+MpExC8D5TGqF6FR6EiEw53U6xUeywtvBoYS6JHjty2v9ngdSEy8ceuZe2bsJeJDb/p5Nw= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1717415394; c=relaxed/simple; bh=1P5dTmbuoRsL3xCS60UlGSaX9Vhi0gqp2zkB8i+DA8A=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=wF7+LGrKvVh0FYmBPC0XVxk7RV46GlrRM1j1HIaSODw/xsoEb1xaCllmVBCaxrqI2M2gcCXKnZ+ekdd/2RPmlBdWBLEB+hkO+4E9V44ivg+nLVxFM+mYj+tYq1pZeKvUAKWP7Uzmt1u6b+Vg1mQsUlLNXThQl9t9QTbsp/WnIC0= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=FqmkQTJUsIcAy/YQmMS4zCKn2b5K9ct9s7i3JKgSDVSnU/TvOZg06/m5cypmC5pDHzKnnaCQ4p88rS+wV8KavNq8UDIjepbIClDtxLIHo998gwoBK1+UPjME0C2d0Fwfs+K/6ZL1fyawbmBdCjnO2R38XrFMSIZMCTTNAeFMWrf+Zx3zBwZwdKGaUDYmT5rUpgpNYgzjRJC3w1XuvIBlRD4OntV8bBM/Y2udFrJ3vJKmIsYeQdW5Ymtoz3Q0t1/pFRKVgdrXr2cED39sBbAnZCInuHsPM75D5GnYer8inWmx227/JWK+V0OMFW91aE+Ob1VWlhFvOUEvga32GD262w== ARC-Message-Signature: i=2; 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=e9K9uKeuW59m1n4VoXxn5brBOmy0jtwjsGnL/K4wjro=; b=k5MV+hjLKSMUpEYqyGReW5fW0qHQzxsqscwvk4yYQc9+1UFOWiIS+gTrWuJjY8nrke5l4/FfGgce3fbx/ZPfNDX/ci3Ofb3MaMGjeKy4fNODtnxz91INpL3aQc+n3tSGAFZNB8+pZ+AnN5AEB3Tzkf6MdcJU6xjPYR9dDHLgyqT/x1dJHzJAnbsRyj6vChB8Vm2nhMuGd0sCDWjJfsnBYzZ1TWfyFnrEbk1C6y6C/vFQvoEmgFAao+QagcB3kFHWuGrC91VtA4ldALzXdH5mw07ThcSqOU8zsTtviEbYbx2eTR+hvMyEMh8+C7MWU743OyVbLb4lBjYekQF5rZxW4Q== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e9K9uKeuW59m1n4VoXxn5brBOmy0jtwjsGnL/K4wjro=; b=n3J6bDztaHRH2W3nfuMGoQDReUWWF5dzKzJhrEnmuOvSQBc73g8fGVJlcEWvEQ3Gy5wl5TEscaKwEtU97g/H2gEWHrqOMiBRYuv0WQRi6hqDC/YwRusorskyh/WHnZV16htB5tp+WEmNdX0zrDKdAm9rJsOQqblOaz8xgu9w7Qk= Received: from AS8PR04CA0054.eurprd04.prod.outlook.com (2603:10a6:20b:312::29) by PA4PR08MB7434.eurprd08.prod.outlook.com (2603:10a6:102:2a5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Mon, 3 Jun 2024 11:49:48 +0000 Received: from AM2PEPF0001C70D.eurprd05.prod.outlook.com (2603:10a6:20b:312:cafe::e6) by AS8PR04CA0054.outlook.office365.com (2603:10a6:20b:312::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.28 via Frontend Transport; Mon, 3 Jun 2024 11:49:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM2PEPF0001C70D.mail.protection.outlook.com (10.167.16.201) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7633.15 via Frontend Transport; Mon, 3 Jun 2024 11:49:48 +0000 Received: ("Tessian outbound 6a5ce4665eb8:v327"); Mon, 03 Jun 2024 11:49:47 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 618558ec620d2fa5 X-CR-MTA-TID: 64aa7808 Received: from d5b8fbf31d57.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 3C5250FC-E018-4D82-A82D-83782FA28381.1; Mon, 03 Jun 2024 11:49:41 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d5b8fbf31d57.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 03 Jun 2024 11:49:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lOkujVvfWeytpZMd3C1s5KLOXvesridQzoByHJPFGuf6xHQcjp1yEjdKiPTIAtw1Vn5tSxbtys9caVba+mX/Ul6yXKA0TymFAeS8uaVkEe9pKYq64i5/X++iVLObtDd8uvxt9/bMgkw+2yCJDb4ChvlCQzj1R//gXnOGQhsfJnqbb7VsXvbKow9x0bUCglRQLx1Wpfnj3+4AGTHxSZa8A9Q7yq4Dt5mxg9ne7Um8ZDkdzoYBbOMV819VGTe2AjCwU+Q8A2bWcATEXs8XL0B4dyurBRGvMeCYiNxc7ahQblwFt+BY7cBaaOKPeiU6/CP+WUBFxf1LnxcLJ08wGnEHdA== 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=e9K9uKeuW59m1n4VoXxn5brBOmy0jtwjsGnL/K4wjro=; b=V6qCQoQTiou4c1EVk6Tgy81OnKjvo1OuW5m/TRwvLzyLnzI+cjcCx77QsxCEykZLPHkI37yGvCSncujwYZNTfgc1z9ztVs5WDHcAcyF/iNk4TlZ4xMjvwcj/fkdlyb0Lwq7Zv4nOU7pCUGvSdpGKCkJOTqSEwOpc7/b66Zajrt4Tsfc28kGW1J5MFqWoAk5CDSMRNeR8BsKPKNlBzdNbJvHgAyJMq2G/1acI3B+G7ZgA8h2NDKGSDRkWO+VOEGDSe6wEoe9OwkVliT4SDJzQIxII5OgFFd5pj4vL837Z/3FoKy7VXumBkHOsQzRYSGLQh2l0rj2xCX7vwcW+6xcvBg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e9K9uKeuW59m1n4VoXxn5brBOmy0jtwjsGnL/K4wjro=; b=n3J6bDztaHRH2W3nfuMGoQDReUWWF5dzKzJhrEnmuOvSQBc73g8fGVJlcEWvEQ3Gy5wl5TEscaKwEtU97g/H2gEWHrqOMiBRYuv0WQRi6hqDC/YwRusorskyh/WHnZV16htB5tp+WEmNdX0zrDKdAm9rJsOQqblOaz8xgu9w7Qk= Received: from AM5PR1001CA0061.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:206:15::38) by DBBPR08MB6044.eurprd08.prod.outlook.com (2603:10a6:10:207::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.24; Mon, 3 Jun 2024 11:49:39 +0000 Received: from AM3PEPF0000A795.eurprd04.prod.outlook.com (2603:10a6:206:15:cafe::af) by AM5PR1001CA0061.outlook.office365.com (2603:10a6:206:15::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.22 via Frontend Transport; Mon, 3 Jun 2024 11:49:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by AM3PEPF0000A795.mail.protection.outlook.com (10.167.16.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.15 via Frontend Transport; Mon, 3 Jun 2024 11:49:39 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 3 Jun 2024 11:49:38 +0000 Received: from e120077-lin.cambridge.arm.com (10.2.78.57) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Mon, 3 Jun 2024 11:49:38 +0000 From: Richard Earnshaw To: CC: , Richard Earnshaw Subject: [PATCH 04/11] arm: adjust FPU selection logic Date: Mon, 3 Jun 2024 12:49:05 +0100 Message-ID: <20240603114912.4065598-5-rearnsha@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240603114912.4065598-1-rearnsha@arm.com> References: <20240603114912.4065598-1-rearnsha@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM3PEPF0000A795:EE_|DBBPR08MB6044:EE_|AM2PEPF0001C70D:EE_|PA4PR08MB7434:EE_ X-MS-Office365-Filtering-Correlation-Id: 5ba88e6b-9112-4169-3689-08dc83c34531 X-LD-Processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230031|36860700004|376005|1800799015|82310400017; X-Microsoft-Antispam-Message-Info-Original: UJaPp939fQZlnw/o02q9tlLm/XT8cZJJbD9yB/BCZCBLeC1kJabtn00F1RaYnZehiS6OOWw9m9kvt9y2svmR+DdDUAAnSSZg4qs+ADZskf1FhNnEVrhyIBUksGYLzrVGmBjEyES6ky9SdLDhWAt3zR1O9DugLY66WfafWYGe58Tkr7zqSgvBlCEoPql4U0AytL2uFVYqGz035bnXnt84OQ+Q2STrhyOMLX5YPZLfQHX+nab7p+Em4RXF9g0+YzJoVEL3GSbsjOO/IeYchVOh7PqeOc1fA5KJ32t1ZgoFyONk6HW9oz7ylfFoTDqNF+m0Nc9cdjqlRjBfnosvw65TZAOdgjQVDz8bAsAbDvC5RPOixY5eg1JXlN2vjVhc3MqxFkK+1FlAvPabCISOk6d/eSolSMkW4bI0Q4CXieWfC6mJTcd5fZJ5ASx/zp12JX8mg+hsCfU2wPNuaZod2lIlmyUH7kFpi42c40yrygCkaJiDS4NLg6hgN3VguozRk1eagrWGP4XcZzPC4S0S4q/Ub4rEzQ9QF5beUa2ZlU9Gx+XpQoD6gfXYm0efgph/PqQcx0jYPskNKdKso2bXLiARI01epiU9A12ybjQLPp7GbhhG1MwD77tz5oTIEWblAOJHvOXBQ9wZB5NMPqZHSSnkE2k6viS3XPYqWZCjl1Cgf9N5HKMVarR+GZdmE2LjICKAZcdFB/XIzj5RHi5YQ99G0RQFwbacpB2PbnFzoO+vb9Co1C4o0+WHlTgljucYznVNLaXGqCyhC/AshRFFSMhGMRZXN4NVbQI+EPQzdo/rJ13AV1zw6Peu5++qpyXqN52wD3TBIO2CSkX2cNIwHEyEYk6JMSV/+0ruFDaTcPy78f9NKjQqudob6s50+VgvT+NEX346l2E23z9C8rx2fDQlY7vKt2cSVyjwrIPsiIeB7CpphCf/ssPJcneJ/f2NZLnxreyhlNn+bSyDA8gkj2Sqt/3uO4g71u/TQfjSZCjgb4TUcAgUMmaDwJGgC6OuSatFtJHc2kheOJOrl+ejxj+7qmuh5o/vqZOWmm4mpkpflTAiC+13P4FZ7tw6b/3bfTqhq0JdoBltg2otNPLaElmfbisjrWQ4VhSM5j+6jdiXwYhbnDmjJmuVISvdSypCaQaCHcnCWn99v0uoMx6miqhLNtFg15RWKKiBxq3jqd8a5sVbWXte/Q+vcEtoQTttpSz9CLmqGy36km85P5e0QaPGLHxELLufbN0KBxDWER53sdX/kqoXiLGd7j+1eWgwfsaE+qkQJ39ekSJBhN+/2t4BNWi4l0J6ul0J+OkPXa5bAu3qU/J177drFY2IX4DkVjXpMiYXM2NnCLi2uHQn1wlbiVhngGwc392AgEphgJMvFdM= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(36860700004)(376005)(1800799015)(82310400017); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB6044 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM2PEPF0001C70D.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: bc8b7de8-1800-440e-c4a9-08dc83c33fcb X-Microsoft-Antispam: BCL:0; ARA:13230031|36860700004|82310400017|376005|35042699013|1800799015; X-Microsoft-Antispam-Message-Info: =?utf-8?q?GhaUhsr0hv5K2iUcdLnIM18LWbSXR9p?= =?utf-8?q?AgmKHd0O2QJBgKcvO2459B76/kq8CwZUcxDNPcViTL48UT021m3Wj3xqRRRXQC97m?= =?utf-8?q?RoIG4jBOdAPER27amtEh3+XiVlbt+fH9sFnhM7Eso9C8DA50cZV1JoLszStVhmTte?= =?utf-8?q?hyGP7Nk5SwGMwW5KcbL0M85nBEfSfCLC4iHs+pMEpebuKuSV3kEAJpHTz/gHJLUHw?= =?utf-8?q?zu6Mc3R9sFzEjMmoBrTh8xv9/yw2eQ9NyT46ypLFeQ0YJUmp62BSFmBAhqJQ9meF4?= =?utf-8?q?3RqUgaG4sUUg4rkKAb64VvW4z+57i7gVEJNMIFYa2UYjVfKiJUaCsVmvSvAp++mOy?= =?utf-8?q?SCVuj3woY5PQez4DrPvKwc7PWxSqfaReU5AwyT3L0ag/YfKFBlOQ+pKyTEEsO9eA6?= =?utf-8?q?BcVHINigkp2jn+b3GKaEtiCEnVLLCbD3L6YevS9IR1uOcfwzF8VZz15HSOcxtogVH?= =?utf-8?q?COl0nBDKSa2OVod5eGl7dGLinSFRvC1fphl/XiKPnjExTXe7nt6kpbdAhuDj9VeKf?= =?utf-8?q?pg0sHluU/m0aUsQeJNonEeSijWVTuqoDCdaJ/ggh+5eVY/1mLObsZCJ2wpfm4iMnH?= =?utf-8?q?oA9MHlJHktSfgUqORxPFx7O4lI+wRqCvD5o1DtvBVsOmuCjhVinB9BKhntBkpSu9g?= =?utf-8?q?R+G10CbFoWkvBONPc2EomV5VLulmYhkonLSrESooWiYsYvoMXWi/vC9dDOOhk2xXi?= =?utf-8?q?cMAKGCsISikk5xkNN1/dcafgB6fFfkFUObE3KMUp8WWhSeNVWHzlRLt6Pdmb07fbg?= =?utf-8?q?Omg4amAnKz9xsqaq0iGVE9bn9WN2Mr/DGzeXg66bjn1tU0eO448SR99kLpP9RsaXW?= =?utf-8?q?oK3E/fpTeINPURjifbkD/+Wb56GukyIzRGPJ0sgfIx28sE7c5nUUO4GqtCKvZJcZb?= =?utf-8?q?Ri10+9TL7OSygB5XLFdcik5jX9gL+iM7hhmk1K4dresMNmlwQ5zrxg4zCiv5lP02s?= =?utf-8?q?G8i+9CrsyWpZNgdomheTJdP93nYeGVai8YLOnVMvaWSDLpf5b1uPLd4CNnt8cbCs6?= =?utf-8?q?bOQWdmyf+ef/Mxt8SOTpphBpycLotRNr5TjOZ0YKTWSw4UD12PxaVQBD2jUPjchQ9?= =?utf-8?q?sF9zQU2NsTG6vBLYlGrWAKFK+XE1KSFathwoSCGo1rlH88i1ritUerSDEVGY90r/g?= =?utf-8?q?DoUTMQgk5bS0gWGE0g8S2l7C3bgI4o8ZaELbj0JSk2CKQALrDBfJ/ippsUWaec0MU?= =?utf-8?q?3lcxDxIu7XLLNjdHf5ycOBjUsflPRXxWroEzztgB3itseU2avjHeJJUXKql+v5TLf?= =?utf-8?q?oeZUPtlozWA1IgZ9ZR2sw77uQnTGXNa/goyFsGtW+JQM4nrRPNqJ18bA=3D?= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230031)(36860700004)(82310400017)(376005)(35042699013)(1800799015); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2024 11:49:48.1857 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5ba88e6b-9112-4169-3689-08dc83c34531 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM2PEPF0001C70D.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB7434 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+patchwork=sourceware.org@sourceware.org The logic here seems to be overly complex, so simplify it a bit. One particular problem was that using the legacy -mno-fpu option was not working properly, as this has all the feature bits set to zero causing the code to then pick a different FPU as the default. Fix this by only selecting an FPU as a fallback if the code has not otherwise selected one: there was only one route by which this could happen. This patch is really a pre-cursor to the following one where we want to make no-fpu internally a fall-back position for some legacy processors where previously we would have dropped back to the FPA. --- gas/config/tc-arm.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 8452ea17a02..9294619e1a4 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -187,7 +187,6 @@ static const arm_feature_set fpu_arch_vfp_v1 ATTRIBUTE_UNUSED = FPU_ARCH_VFP_V1; static const arm_feature_set fpu_arch_vfp_v2 = FPU_ARCH_VFP_V2; static const arm_feature_set fpu_arch_vfp_v3 ATTRIBUTE_UNUSED = FPU_ARCH_VFP_V3; static const arm_feature_set fpu_arch_neon_v1 ATTRIBUTE_UNUSED = FPU_ARCH_NEON_V1; -static const arm_feature_set fpu_arch_fpa = FPU_ARCH_FPA; static const arm_feature_set fpu_any_hard = FPU_ANY_HARD; static const arm_feature_set fpu_endian_pure = FPU_ARCH_ENDIAN_PURE; @@ -30817,19 +30816,13 @@ md_begin (void) selected_fpu = *mcpu_fpu_opt; else if (march_fpu_opt) selected_fpu = *march_fpu_opt; + else + selected_fpu = fpu_default; #else selected_fpu = fpu_default; #endif } - if (ARM_FEATURE_ZERO (selected_fpu)) - { - if (!no_cpu_selected ()) - selected_fpu = fpu_default; - else - selected_fpu = fpu_arch_fpa; - } - #ifdef CPU_DEFAULT if (ARM_FEATURE_ZERO (selected_arch)) {