From patchwork Thu May 15 13:29:33 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wilco Dijkstra X-Patchwork-Id: 112294 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 EAADB3856088 for ; Thu, 15 May 2025 13:30:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EAADB3856088 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=OwulCLKM; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=OwulCLKM X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazlp170120003.outbound.protection.outlook.com [IPv6:2a01:111:f403:c200::3]) by sourceware.org (Postfix) with ESMTPS id 6629C385840B for ; Thu, 15 May 2025 13:30:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6629C385840B 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 6629C385840B Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:c200::3 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1747315811; cv=pass; b=uyaZRcbS/XuX47rWylCSAd8Te+qE964YajlksB/sraxEA/1qUsZS9FfVZcHgi5d2Qy5LUfl4eoD+FfUuxdDUHTbu6Sz4159DVVQHr6lFUHn4MztDvsOmWDmipMxAMGB/Hic/rEm+48NXlxFbNqYeMPY28s8UM02Q2jH2SDzKhxE= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1747315811; c=relaxed/simple; bh=Gn8420JKKmgRZJilTxBVWfkMS8PMqDapQPS1/qdtkv4=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=LnReDAcIq8xcLem8oMQijsTru4Q8v/t5fpmrNhqO/TqHZ4A4PF0t00U65p0O9oMcbjewnqAivv2pWv26n6iz1ftwtBpECZAC7nlO4+m+4v91kAKxZ2tpFimC9b6NqBuRm/PQ2H9VHeeFGAFfszr2FqLqtwJc6G3dJVJPOYGAd7A= ARC-Authentication-Results: i=3; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6629C385840B ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=ogdTp1fv7yUGQHP/OUuEbxy25lmVaSIf/IYZbCyQgcaun8YQqJUdScveSXf+BVwqvQYLjNMqCj/LxGkD2s1Lkf6GS6mzvYbhMON2emGv5LKnrPluuhYvbswAiMNi6yEBQcSUbice2vu3jI/puZWe9ZdI1o4VEEezJ6oBTMr2QZlwaGPRajtY2k2iNu8Hmyf/Qg9Qo8VzMjAkKAxgkcxK1T8J5W4tb78r5FIh5m462mDXoPUhF9nLbOaBYiBo/0lH9ak4g66QCSMi9zlOxrrZ17MzmnJzZ02tJSkzl9pBZQpz16USyv6ZSlyvI4NnyTWPI+ZI5LpNx8vpSsPqJc7SRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=qQCF+ac+TIA9EAaJtNVLwyfWIGEe/puD8Zq4Cb45N4s=; b=cauUysLUDXWdCsMzxCMcpHEwvecMPmGOoIotce/iniUg4ckHSohkp8uu5/giEdsqAzT9VqzkHnBPuJxjjFobmhQupmSjFn1pP0zl1bG58fuzRsdkw+lsBqCfFQTPQ+8HWYjt2jYozU6a2EjMyyV2t3rrKFSZYWJh7mQY23I8RYnuWIkTvOaou8qHsutcCYPfGzQrG6W6IxLKQI2pFep+JgN6jIxUByCsw3DTXkBoUuusSCyH0CyiT9o9ygHb3d7sii5Ok9OUJuj8ScLTG00TMHmxzieJYX4tQNpCzTCX5Nh0ArrR6st40qXkD6MjFVcds97AJe2NXfnUAxeDqOJM/w== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) 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] dkim=[1,1,header.d=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=qQCF+ac+TIA9EAaJtNVLwyfWIGEe/puD8Zq4Cb45N4s=; b=OwulCLKMJvOiT6oS4HG5RaPzrQnitaBq8UNrF2i8jgo6cxldVDVmy8Q5liPwzsZHZqytyUuCV1m7yy5y68sbHZkRjWwd6gih5H1dqD0+jKy0NjuLL1Hcl0+IAkIhVTphmOpTie7lWfbvv4SLOTA5GObQ+TjdnnKQ/QEf2DJrzp8= Received: from DU7P195CA0013.EURP195.PROD.OUTLOOK.COM (2603:10a6:10:54d::8) by PA4PR08MB6224.eurprd08.prod.outlook.com (2603:10a6:102:e7::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8722.30; Thu, 15 May 2025 13:30:07 +0000 Received: from DB5PEPF00014B8E.eurprd02.prod.outlook.com (2603:10a6:10:54d:cafe::a5) by DU7P195CA0013.outlook.office365.com (2603:10a6:10:54d::8) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8746.18 via Frontend Transport; Thu, 15 May 2025 13:30:07 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 4.158.2.129) 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 4.158.2.129 as permitted sender) receiver=protection.outlook.com; client-ip=4.158.2.129; helo=outbound-uk1.az.dlp.m.darktrace.com; pr=C Received: from outbound-uk1.az.dlp.m.darktrace.com (4.158.2.129) by DB5PEPF00014B8E.mail.protection.outlook.com (10.167.8.202) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8722.18 via Frontend Transport; Thu, 15 May 2025 13:30:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GCsySwE1QNsE9bvPw7PGNvMzucaWLwJhGN2RIz11082K+NoNQfvLqBczx03pRmWqm4vtTw7e0eG0QqxdZdZLYzNgSm35Zjob8muYFbI7fSbH6LF+d38X3bf+bqWb1jbG+nGUKPKAc5ShLrYj0aepRQCYBsN0OGgCs6jXMYC8VaAOu7hSTgmY9DTYjV4dTovhkRPDYtzYikdQWIL6SXiGmpQxgD/p56Q4EB4djYGyuZOhM20Es1DH9sDWkwDwyGDZDcb7uqkd28ocOYE00vUSxzivNXmSBl+Z0F/VO9Alt3hv+AlkS2C+x0nXW3nIlpDrngjhd8/nKGPGDZ2/ApIWWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=qQCF+ac+TIA9EAaJtNVLwyfWIGEe/puD8Zq4Cb45N4s=; b=EtGdeuyziMoWL3NY59H4m9WTl6VLeiRj6rJbv8l3yIh4FDL4lXJix7e1k2EuFgq1GIcQULbEpPlVXkVdsdxSkcdIn82hanwuQFZ0HOMFebsFv51QTRdruhF4HUw7AFdrwUPjM6mIiOV/Rok5n/UpCtu1LzczTjtLkjKdLAHH79JIbaiOYB5otjHUEtl7i4BcUm1T39MREHFBmGqzk52lU+lyPDlLaF8myGBK3XYCECg3z2H5lwyktuJXHYvQaDZQR3WVp0QIEWifaRragMpKtq9cfoH5Oqhfech+GW72gFQyGYs5sNe8zdw5lswhQhQhegkCM8oyaJGzeb3M0PWUDw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none 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=qQCF+ac+TIA9EAaJtNVLwyfWIGEe/puD8Zq4Cb45N4s=; b=OwulCLKMJvOiT6oS4HG5RaPzrQnitaBq8UNrF2i8jgo6cxldVDVmy8Q5liPwzsZHZqytyUuCV1m7yy5y68sbHZkRjWwd6gih5H1dqD0+jKy0NjuLL1Hcl0+IAkIhVTphmOpTie7lWfbvv4SLOTA5GObQ+TjdnnKQ/QEf2DJrzp8= Received: from PAWPR08MB8982.eurprd08.prod.outlook.com (2603:10a6:102:33f::20) by DU0PR08MB8398.eurprd08.prod.outlook.com (2603:10a6:10:406::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8722.29; Thu, 15 May 2025 13:29:33 +0000 Received: from PAWPR08MB8982.eurprd08.prod.outlook.com ([fe80::b366:6358:236e:352d]) by PAWPR08MB8982.eurprd08.prod.outlook.com ([fe80::b366:6358:236e:352d%4]) with mapi id 15.20.8722.027; Thu, 15 May 2025 13:29:33 +0000 From: Wilco Dijkstra To: Libc Alpha CC: Yury Khrustalev , Matthieu Longo Subject: [PATCH v2] AArch64: Cleanup SVE config and defines Thread-Topic: [PATCH v2] AArch64: Cleanup SVE config and defines Thread-Index: AQHbxZxiHPAY0N5avUqE1GdU9Vr4JA== Date: Thu, 15 May 2025 13:29:33 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: PAWPR08MB8982:EE_|DU0PR08MB8398:EE_|DB5PEPF00014B8E:EE_|PA4PR08MB6224:EE_ X-MS-Office365-Filtering-Correlation-Id: f0eec56f-82c5-46e6-3cfb-08dd93b49b6f x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|1800799024|376014|366016|38070700018; X-Microsoft-Antispam-Message-Info-Original: =?iso-8859-1?q?/Vy7MSqRnooOVrfYb?= =?iso-8859-1?q?Fcl2ywlLMicqu1rdfIFkE7K8i1j9KpSsehhejo5ft/AkiYTzz+ew5hkYoaHp?= =?iso-8859-1?q?7kWz6h2m+aDQZ+W7qCNRrdL1Hz5LGyz3limsNGOvSPUAaA+Nw9l/Ix2s7Ahx?= =?iso-8859-1?q?psUN0VAj0/VFvuT4nFDnxQtSFZmxfXLwSLNKHsCB41hajgYC8sikvs9rwPIo?= =?iso-8859-1?q?R+VCTKYYARKFjT+Oa7SK8aZTaYDAiMdggFe4X5LD1Uo3Q6AxFRjJefcKgTN1?= =?iso-8859-1?q?ZklXI2wXRQeH49Gyw9p2nhxBsU4xHwIwBDnP3uRm2Ow8He8oBgF3yP18wz5Q?= =?iso-8859-1?q?2xzm7QUTIGSeNpjC41FYklm3yGLe4GdRpk/6WqvZFjYFYh7GrJY1JCk5oEiM?= =?iso-8859-1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Il33t4KyR9u6QbhfJ51U9gAZeEmmhui7LaKZ3CL?= =?iso-8859-1?q?VLDcoxtfrhAB67aeDJ499VSYRq2nrRIDsen9S2YUZ9KzmUXpmn3tm9nfVoHr?= =?iso-8859-1?q?abQVQVNXDU+2HiRpuJdIw4gSzXigWmgV6Gk0ngoTfJ7a2vZTZ4ElqaXy0UzD?= =?iso-8859-1?q?RhpuUNU4NhGfXTxNlz0h2y6sORQHAKsQCGGX7/wdw1roo8L3caITWHEcnKMR?= =?iso-8859-1?q?6kAtcrjCFDttDGgmjgxzkulBCe2JXylXgsGt4SxOppl6gD3dS0A7llEqY8?= =?iso-8859-1?q?=3D?= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAWPR08MB8982.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016)(38070700018); DIR:OUT; SFP:1101; MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8398 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5PEPF00014B8E.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 1a3d7987-d741-4fbd-fe2b-08dd93b48787 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|14060799003|35042699022|36860700013|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?iso-8859-1?q?Hwngo0l9kzlOpsjt+XCXO4zuQZ?= =?iso-8859-1?q?Awm23CarEkSghMCX/CTochiZrmf6JcVEEm2tBcEEAQyhCNYBW2FrDDU0fg9H?= =?iso-8859-1?q?ifc/xe+0bbWleEAaF7VDfeFM7YXIM77NCUuYK3EZthtInJcO5Fx+88VXmMey?= =?iso-8859-1?q?4bAMAPFhOMFQQtC2M3DlYNwHeKPmPnTOwEZAsrNkMxLlYQfgVApXXX+1eLeH?= =?iso-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cJ0QSLkYTTaCccdFKt4XpzzkrJjKkvGwsF3Ks2LxMY8Us4ITUGnw?= =?iso-8859-1?q?VCgr0Vvit2y/DfTkajEEXBE66XNOtJSHeCbqFfsHSBJtq5Cw0AAEYevQjaz6?= =?iso-8859-1?q?kzFKRppm6RvnLZJVLe354o+2TdC0ByltrRjTIvaWZHqsEnIUa6xsgMZ0YHK1?= =?iso-8859-1?q?SZ3sDqmdFvb48Wh4e5q2EFAUI21YLCz7Kf5kWrXJisjV7NBkfJaOnbcyf6wc?= =?iso-8859-1?q?Nw6uMSUHnS+aY6qW8/I9B8fjXsjzoPudOccIPQ6VooNSi9dog+U3Xqs2RKjx?= =?iso-8859-1?q?uuJehwBiQ/M3ZQ3x6jX7RBfukuCmTo4ACHMyLvKOPqt8K7a/laRx9FzfkoZo?= =?iso-8859-1?q?ea2rQBhpPGsZISoarhJGj0eZEaiRfx6BZzwm/8fMOUAoze8n4TRnbBRDX0m6?= =?iso-8859-1?q?GEiWhDKp7grdufDSCR1/zya8RSviU3MCyK6YNNg1y7Lvbv0cuknyxhYZHaTj?= =?iso-8859-1?q?jbxTagpNoz?= X-Forefront-Antispam-Report: CIP:4.158.2.129; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:outbound-uk1.az.dlp.m.darktrace.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(82310400026)(14060799003)(35042699022)(36860700013)(1800799024)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2025 13:30:06.7102 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f0eec56f-82c5-46e6-3cfb-08dd93b49b6f X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[4.158.2.129]; Helo=[outbound-uk1.az.dlp.m.darktrace.com] X-MS-Exchange-CrossTenant-AuthSource: DB5PEPF00014B8E.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6224 X-Spam-Status: No, score=-10.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, KAM_LOTSOFHASH, SPF_HELO_PASS, SPF_NONE, TXREP 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: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org v2: fix $build_mathvec check Remove HAVE_AARCH64_SVE_ASM define and conditional compilation. Remove SVE configure checks for SVE, ACLE and variant-PCS support. Passes regress, OK for commit? diff --git a/config.h.in b/config.h.in index f8e7d1780d0b5ca356bfd8461a80115b8f62cd9f..29126ea933d8bafea88a30d9e066095a3c7bcc84 100644 --- a/config.h.in +++ b/config.h.in @@ -113,11 +113,6 @@ /* AArch64 big endian ABI */ #undef HAVE_AARCH64_BE -/* Assembler support ARMv8.2-A SVE. - This macro becomes obsolete when glibc increased the minimum - required version of GNU 'binutils' to 2.28 or later. */ -#define HAVE_AARCH64_SVE_ASM 0 - /* C-SKY ABI version. */ #undef CSKYABI diff --git a/sysdeps/aarch64/Makefile b/sysdeps/aarch64/Makefile index 4b7f8a5c07d8e9b32648aac340347acc6dae0da8..becccc35e1abcafbea7789a6f6fc1d97143bb2b9 100644 --- a/sysdeps/aarch64/Makefile +++ b/sysdeps/aarch64/Makefile @@ -43,13 +43,11 @@ gen-as-const-headers += \ tests-internal += tst-ifunc-arg-1 tst-ifunc-arg-2 -ifeq (yes,$(aarch64-variant-pcs)) tests += tst-vpcs modules-names += tst-vpcs-mod LDFLAGS-tst-vpcs-mod.so = -Wl,-z,lazy $(objpfx)tst-vpcs: $(objpfx)tst-vpcs-mod.so endif -endif ifeq ($(subdir),csu) gen-as-const-headers += \ diff --git a/sysdeps/aarch64/configure b/sysdeps/aarch64/configure index 7bddc99d7f72cc887776e696bf2db5a5cd9efe1a..26a0989a33087135f9d044b8e3661f7d8d74b15d 100755 --- a/sysdeps/aarch64/configure +++ b/sysdeps/aarch64/configure @@ -185,131 +185,11 @@ else default-abi = lp64" fi -# Check if binutils supports variant PCS symbols. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variant PCS support" >&5 -printf %s "checking for variant PCS support... " >&6; } -if test ${libc_cv_aarch64_variant_pcs+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat > conftest.S <&5 - (eval $ac_try) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; } \ - && { ac_try='$READELF -dW conftest.so | grep -q AARCH64_VARIANT_PCS' - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 - (eval $ac_try) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; } - then - libc_cv_aarch64_variant_pcs=yes - fi - rm -rf conftest.* ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_variant_pcs" >&5 -printf "%s\n" "$libc_cv_aarch64_variant_pcs" >&6; } -config_vars="$config_vars -aarch64-variant-pcs = $libc_cv_aarch64_variant_pcs" - -# Check if asm support armv8.2-a+sve -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SVE support in assembler" >&5 -printf %s "checking for SVE support in assembler... " >&6; } -if test ${libc_cv_aarch64_sve_asm+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat > conftest.s <<\EOF - .arch armv8.2-a+sve - ptrue p0.b -EOF -if { ac_try='${CC-cc} -c conftest.s 1>&5' - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 - (eval $ac_try) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then - libc_cv_aarch64_sve_asm=yes -else - libc_cv_aarch64_sve_asm=no -fi -rm -f conftest* ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_sve_asm" >&5 -printf "%s\n" "$libc_cv_aarch64_sve_asm" >&6; } -if test $libc_cv_aarch64_sve_asm = yes; then - printf "%s\n" "#define HAVE_AARCH64_SVE_ASM 1" >>confdefs.h - -fi - if test x"$build_mathvec" = xnotset; then build_mathvec=yes fi -# Check if compiler supports SVE ACLE. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for availability of SVE ACLE" >&5 -printf %s "checking for availability of SVE ACLE... " >&6; } -if test ${libc_cv_aarch64_sve_acle+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat > conftest.c < -EOF - if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fsyntax-only -ffreestanding conftest.c' - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 - (eval $ac_try) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then - libc_cv_aarch64_sve_acle=yes - else - libc_cv_aarch64_sve_acle=no - fi - rm conftest.c ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_sve_acle" >&5 -printf "%s\n" "$libc_cv_aarch64_sve_acle" >&6; } - -# Check if compiler is sufficient to build mathvec -if test $build_mathvec = yes; then - fail=no - if test $libc_cv_aarch64_variant_pcs = no; then - fail=yes - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mathvec is enabled but linker does not support variant PCS." >&5 -printf "%s\n" "$as_me: WARNING: mathvec is enabled but linker does not support variant PCS." >&2;} - fi - if test $libc_cv_aarch64_sve_asm = no; then - fail=yes - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mathvec is enabled but assembler does not support SVE." >&5 -printf "%s\n" "$as_me: WARNING: mathvec is enabled but assembler does not support SVE." >&2;} - fi - if test $libc_cv_aarch64_sve_acle = no; then - fail=yes - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mathvec is enabled but compiler does not have SVE ACLE." >&5 -printf "%s\n" "$as_me: WARNING: mathvec is enabled but compiler does not have SVE ACLE." >&2;} - fi - if test $fail = yes; then - as_fn_error $? "use a compatible toolchain or configure with --disable-mathvec (this results in incomplete ABI)." "$LINENO" 5 - fi -else +if test $build_mathvec = no; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mathvec is disabled, this results in incomplete ABI." >&5 printf "%s\n" "$as_me: WARNING: mathvec is disabled, this results in incomplete ABI." >&2;} fi diff --git a/sysdeps/aarch64/configure.ac b/sysdeps/aarch64/configure.ac index 633513374aabcbcf5df161f6578917d0f5ddced2..22fca8b565077382a7d6618b5e34c606036d8a7a 100644 --- a/sysdeps/aarch64/configure.ac +++ b/sysdeps/aarch64/configure.ac @@ -24,78 +24,10 @@ else LIBC_CONFIG_VAR([default-abi], [lp64]) fi -# Check if binutils supports variant PCS symbols. -AC_CACHE_CHECK([for variant PCS support], [libc_cv_aarch64_variant_pcs], [dnl - cat > conftest.S < conftest.s <<\EOF - .arch armv8.2-a+sve - ptrue p0.b -EOF -if AC_TRY_COMMAND(${CC-cc} -c conftest.s 1>&AS_MESSAGE_LOG_FD); then - libc_cv_aarch64_sve_asm=yes -else - libc_cv_aarch64_sve_asm=no -fi -rm -f conftest*]) -if test $libc_cv_aarch64_sve_asm = yes; then - AC_DEFINE(HAVE_AARCH64_SVE_ASM) -fi - if test x"$build_mathvec" = xnotset; then build_mathvec=yes fi -# Check if compiler supports SVE ACLE. -AC_CACHE_CHECK(for availability of SVE ACLE, libc_cv_aarch64_sve_acle, [dnl - cat > conftest.c < -EOF - if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -fsyntax-only -ffreestanding conftest.c]); then - libc_cv_aarch64_sve_acle=yes - else - libc_cv_aarch64_sve_acle=no - fi - rm conftest.c]) - -# Check if compiler is sufficient to build mathvec -if test $build_mathvec = yes; then - fail=no - if test $libc_cv_aarch64_variant_pcs = no; then - fail=yes - AC_MSG_WARN([mathvec is enabled but linker does not support variant PCS.]) - fi - if test $libc_cv_aarch64_sve_asm = no; then - fail=yes - AC_MSG_WARN([mathvec is enabled but assembler does not support SVE.]) - fi - if test $libc_cv_aarch64_sve_acle = no; then - fail=yes - AC_MSG_WARN([mathvec is enabled but compiler does not have SVE ACLE.]) - fi - if test $fail = yes; then - AC_MSG_ERROR([use a compatible toolchain or configure with --disable-mathvec (this results in incomplete ABI).]) - fi -else +if test $build_mathvec = no; then AC_MSG_WARN([mathvec is disabled, this results in incomplete ABI.]) fi diff --git a/sysdeps/aarch64/multiarch/ifunc-impl-list.c b/sysdeps/aarch64/multiarch/ifunc-impl-list.c index 66b5cc02c47df2a658e40de4fbda7e1015d2bf12..0e2617192933f744e1ab6f3d4b01ca3edd685427 100644 --- a/sysdeps/aarch64/multiarch/ifunc-impl-list.c +++ b/sysdeps/aarch64/multiarch/ifunc-impl-list.c @@ -36,18 +36,14 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array, /* Support sysdeps/aarch64/multiarch/memcpy.c, memmove.c and memset.c. */ IFUNC_IMPL (i, name, memcpy, IFUNC_IMPL_ADD (array, i, memcpy, 1, __memcpy_oryon1) -#if HAVE_AARCH64_SVE_ASM IFUNC_IMPL_ADD (array, i, memcpy, sve, __memcpy_a64fx) IFUNC_IMPL_ADD (array, i, memcpy, sve, __memcpy_sve) -#endif IFUNC_IMPL_ADD (array, i, memcpy, mops, __memcpy_mops) IFUNC_IMPL_ADD (array, i, memcpy, 1, __memcpy_generic)) IFUNC_IMPL (i, name, memmove, IFUNC_IMPL_ADD (array, i, memmove, 1, __memmove_oryon1) -#if HAVE_AARCH64_SVE_ASM IFUNC_IMPL_ADD (array, i, memmove, sve, __memmove_a64fx) IFUNC_IMPL_ADD (array, i, memmove, sve, __memmove_sve) -#endif IFUNC_IMPL_ADD (array, i, memmove, mops, __memmove_mops) IFUNC_IMPL_ADD (array, i, memmove, 1, __memmove_generic)) IFUNC_IMPL (i, name, memset, @@ -55,10 +51,8 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array, IFUNC_IMPL_ADD (array, i, memset, (zva_size == 64), __memset_oryon1) IFUNC_IMPL_ADD (array, i, memset, 1, __memset_emag) IFUNC_IMPL_ADD (array, i, memset, 1, __memset_kunpeng) -#if HAVE_AARCH64_SVE_ASM IFUNC_IMPL_ADD (array, i, memset, sve && zva_size == 256, __memset_a64fx) IFUNC_IMPL_ADD (array, i, memset, sve && zva_size == 64, __memset_sve_zva64) -#endif IFUNC_IMPL_ADD (array, i, memset, mops, __memset_mops) IFUNC_IMPL_ADD (array, i, memset, 1, __memset_generic)) IFUNC_IMPL (i, name, memchr, diff --git a/sysdeps/aarch64/multiarch/memcpy.c b/sysdeps/aarch64/multiarch/memcpy.c index 0e33d192f6dc2a6d018a8a0e20f49e4e1ca58c41..894dabe2efe15e68a00213ce6d2b4f47d665b2b6 100644 --- a/sysdeps/aarch64/multiarch/memcpy.c +++ b/sysdeps/aarch64/multiarch/memcpy.c @@ -43,7 +43,7 @@ select_memcpy_ifunc (void) if (mops) return __memcpy_mops; - if (sve && HAVE_AARCH64_SVE_ASM) + if (sve) { if (IS_A64FX (midr)) return __memcpy_a64fx; diff --git a/sysdeps/aarch64/multiarch/memcpy_a64fx.S b/sysdeps/aarch64/multiarch/memcpy_a64fx.S index bfadcd03179906727acb3e80e739d5fd2e5f9c77..acad6e86d364d836f28fdf8128f2ef386df95fae 100644 --- a/sysdeps/aarch64/multiarch/memcpy_a64fx.S +++ b/sysdeps/aarch64/multiarch/memcpy_a64fx.S @@ -35,8 +35,6 @@ #define vlen x7 #define vlen8 x8 -#if HAVE_AARCH64_SVE_ASM - .arch armv8.2-a+sve .macro ld1b_unroll8 @@ -290,4 +288,3 @@ L(full_overlap): b L(last_bytes) END (__memmove_a64fx) -#endif /* HAVE_AARCH64_SVE_ASM */ diff --git a/sysdeps/aarch64/multiarch/memcpy_sve.S b/sysdeps/aarch64/multiarch/memcpy_sve.S index 26d4890d2cd31f060e072050051545a3371e9b6e..0ba6358bbd23ab42a9e33d43aabc8d0218dc0c34 100644 --- a/sysdeps/aarch64/multiarch/memcpy_sve.S +++ b/sysdeps/aarch64/multiarch/memcpy_sve.S @@ -56,8 +56,6 @@ The loop tail is handled by always copying 64 bytes from the end. */ -#if HAVE_AARCH64_SVE_ASM - .arch armv8.2-a+sve ENTRY (__memcpy_sve) @@ -199,4 +197,3 @@ L(return): ret END (__memmove_sve) -#endif diff --git a/sysdeps/aarch64/multiarch/memmove.c b/sysdeps/aarch64/multiarch/memmove.c index 47b726838747b49c8ecf896d5458056239aaba03..6b0d0ce4e34c05dd726e4ce602f68bf14ef611e1 100644 --- a/sysdeps/aarch64/multiarch/memmove.c +++ b/sysdeps/aarch64/multiarch/memmove.c @@ -41,7 +41,7 @@ select_memmove_ifunc (void) if (mops) return __memmove_mops; - if (sve && HAVE_AARCH64_SVE_ASM) + if (sve) { if (IS_A64FX (midr)) return __memmove_a64fx; diff --git a/sysdeps/aarch64/multiarch/memset.c b/sysdeps/aarch64/multiarch/memset.c index 872f39f00fb7b6fbcf8628b4b01f83db8cf8baac..2b0a58b8fad607fe33f43013f7bf16a6f2eceee0 100644 --- a/sysdeps/aarch64/multiarch/memset.c +++ b/sysdeps/aarch64/multiarch/memset.c @@ -46,7 +46,7 @@ select_memset_ifunc (void) if (mops) return __memset_mops; - if (sve && HAVE_AARCH64_SVE_ASM) + if (sve) { if (IS_A64FX (midr) && zva_size == 256) return __memset_a64fx; diff --git a/sysdeps/aarch64/multiarch/memset_a64fx.S b/sysdeps/aarch64/multiarch/memset_a64fx.S index bebc1913099a6cd77fd68bf6ef51419ceca62cd1..e921240ff82fbbb67a52783c9f24369fa2f35646 100644 --- a/sysdeps/aarch64/multiarch/memset_a64fx.S +++ b/sysdeps/aarch64/multiarch/memset_a64fx.S @@ -31,8 +31,6 @@ #define PF_DIST_L1 (CACHE_LINE_SIZE * 16) // Prefetch distance L1 #define vector_length x9 -#if HAVE_AARCH64_SVE_ASM - .arch armv8.2-a+sve #define dstin x0 @@ -166,5 +164,3 @@ L(L2): b L(last) END (__memset_a64fx) - -#endif /* HAVE_AARCH64_SVE_ASM */ diff --git a/sysdeps/aarch64/multiarch/memset_sve_zva64.S b/sysdeps/aarch64/multiarch/memset_sve_zva64.S index 7fb40fdd9e927bb3e1cfae42cd3cac3c178ac1dd..c385e1a2c5eca4985ac26a64533eea002d2b136f 100644 --- a/sysdeps/aarch64/multiarch/memset_sve_zva64.S +++ b/sysdeps/aarch64/multiarch/memset_sve_zva64.S @@ -25,8 +25,6 @@ * ZVA size is 64. */ -#if HAVE_AARCH64_SVE_ASM - .arch armv8.2-a+sve #define dstin x0 @@ -120,4 +118,3 @@ L(no_zva_loop): ret END (__memset_sve_zva64) -#endif