From patchwork Fri Mar 15 11:14:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Victor Do Nascimento X-Patchwork-Id: 1912459 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=ObcTn2+N; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=ObcTn2+N; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Tx1sC0rBGz1yX0 for ; Fri, 15 Mar 2024 22:16:13 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EF7D63857BAF for ; Fri, 15 Mar 2024 11:16:10 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2085.outbound.protection.outlook.com [40.107.247.85]) by sourceware.org (Postfix) with ESMTPS id 84B963858D28 for ; Fri, 15 Mar 2024 11:15:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 84B963858D28 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 84B963858D28 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.247.85 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1710501349; cv=pass; b=c9W0QnmOu3410FB/gsfcwqtL8tw256XYqmbwBdUgxd9gT8E64v6hl68tvFgcG/slcsuEGWq7u+92aNboIMyEplyAAkiXJc4lq+PcGOovHjGHDhC7CVYgnxWEWGTeBCqO2Bpil7KrJ2o5tGxcLagC0vx5G+R1wtlZM2hRbeUK68w= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1710501349; c=relaxed/simple; bh=X1gXqtcGHOe6cxetRtkGxbmFLn8QWzMt45HwdoBUcUw=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=oCRj6ejYFtinyebk5ybHuQ/euSbmSiATU/ebm20m0UlcmxZ1oHXuO6yDD0gpMC0PYTf/b6dl0WZ4Q+rguIr9oJZ7T++HUjEH58N9OMu5OdYUqy3/WcXOUf7bdU9VjfauIBBTk4l+x5akC5JPBgfUUcIKo0SaI/2/esiClNKtgJQ= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=cg6M6P8Q/+rlpckFeQoicSQ001YOeNgNoUA4QJkanBsxSJ+gFuMnhRoOe2ijy33B/ND1ydjeJIcHFj9Bso2hnYVbnc++Ns13W//KvgMIqqDj8DAtB7XtkU5TUg24LmVT+AmwMrtuQ84SHySTxKlTpJXg1B/HWGEBlTqKWXRV4atbV1YY04wJMEN2ysBSs7+mGYUoA1vcbDBg0KkwdZzJB6lLbI1HWSC7OYur0TmPW4dwwoiXHcz6Gtx4pKjMmQ4C7WarGn+Vc/qMVC8cRtyP3siIpIyF0nbZfqtMfnLCIoPASmckGaND6FoWhicaNPRyEc/gEOgTuI5mEtzUTJIyEw== 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=Zoi8s5cACbM+DMx6AWOnlqsltsoOf01UfxpMJamc/ko=; b=eJlU2anmtF3YAgmOZyXfnNm2ocoxH4w/CIwGYN5QluBO675Is9vJ/WsLBAjevtc0IG5Yb6sNpFvtfN23c3qw3oPSyJklJHyoX+lDty5xMp2rteeTy/dmpV48zG4HNwZzOhYGft5gbzE7PV0TzB7lwh3t1FiGYWisaMyHVQREfm+EZdwyBql+WPbyFPvkoaahrBgYu/azx0yLE62bNAtImS6A/eaKHinefAcT4G/IUMzRZLhsxO3vNa4P9IN4kDYOdJw+r3eqR5jFh3Hv6ImHjyydWGk98GoQyk6xcKegXQyUspMCucHqZWQ1uQ8VHoDrjy9ZqeABGO9Nj0QvfRAd+g== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.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=armh.onmicrosoft.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=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Zoi8s5cACbM+DMx6AWOnlqsltsoOf01UfxpMJamc/ko=; b=ObcTn2+N4KuzSbJJRbSUbrtlspMv9h8A+im1qokspQo0Yrk3q8xUZi1YqzOxxg1m8tCQPbvBsh9UeXNU0kz+oJle5Lobb9L9aH8BvAdKQBb4sjzC87OJxQg3zcdwlO2viympbGLseT9wrYxdNkIG42AySaCgqgzFh7ckAVjxCQE= Received: from DUZPR01CA0116.eurprd01.prod.exchangelabs.com (2603:10a6:10:4bc::15) by DU5PR08MB10776.eurprd08.prod.outlook.com (2603:10a6:10:526::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.19; Fri, 15 Mar 2024 11:15:35 +0000 Received: from DB5PEPF00014B96.eurprd02.prod.outlook.com (2603:10a6:10:4bc:cafe::7c) by DUZPR01CA0116.outlook.office365.com (2603:10a6:10:4bc::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.39 via Frontend Transport; Fri, 15 Mar 2024 11:15:35 +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=armh.onmicrosoft.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 DB5PEPF00014B96.mail.protection.outlook.com (10.167.8.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.12 via Frontend Transport; Fri, 15 Mar 2024 11:15:35 +0000 Received: ("Tessian outbound 598157ceef91:v276"); Fri, 15 Mar 2024 11:15:35 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 0e22e2bcbbfc7eca X-CR-MTA-TID: 64aa7808 Received: from e53176a035ce.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 7B209BB7-4B9B-4222-AB46-ED2DCCFF4AC2.1; Fri, 15 Mar 2024 11:15:29 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e53176a035ce.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 15 Mar 2024 11:15:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QJjdVCIFa0yGF7rpKTJx+Qk8z9YQNnq+N7hV2+LeeZvxEx1fZo8PHPvxh3mUZoUZVLC7NVvvvE42Va3YadXtP2OGjBK4hSWemUWc3AMV5/F+IGFqh66D2KYYozl0nhKMwrzakf/zxYyayzPLaT2JsK5IrQkJlAnBeToRKJVCRw5497SswGMZZnQGoB9ri2zwSWADpq1MMqRbhPOHRnJT8Fy05NqUuPBULyudnlnOVGPyef0TuyX+ziJLqgmu4nxJds4zYukHWt9f/blzHa4oKr8vSm5SuCt1PPZdbm05DEFwvvx1cvD8XNFRntbNMlhFj+QNcPpav6QbCBZaEKOVaQ== 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=Zoi8s5cACbM+DMx6AWOnlqsltsoOf01UfxpMJamc/ko=; b=YXJLdaFMltb10zK8uG6Sj+jIPM6U/CdDfNU4PT9pHT8chHASj0vmdbN59AbsXk2PxrLXCPG46hyExyYauYcT7UKguAAFxPHbA5GS0ZKBq3EXahp1cOxUlB7zisQSFR+qRVp5wqZRQfu80v7PWJQ6KVNJDvguBbuNGob4VZfdDhKYifaHwOFByRyXSm5e7ChWl4fbQ8QxOI3/kdmJf3J+N7IoUcrsP5HTjFYYrl4Zju147JQj9GWkxK9qIfa7y+eEHG5MEADJnKOink8kKYZCLfn50nxoLT4uXPNbLK7scQQ3SQoWP9KI0plDdFGxtZbdal4lHVeuakVxmTfslMvTbQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=gcc.gnu.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=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Zoi8s5cACbM+DMx6AWOnlqsltsoOf01UfxpMJamc/ko=; b=ObcTn2+N4KuzSbJJRbSUbrtlspMv9h8A+im1qokspQo0Yrk3q8xUZi1YqzOxxg1m8tCQPbvBsh9UeXNU0kz+oJle5Lobb9L9aH8BvAdKQBb4sjzC87OJxQg3zcdwlO2viympbGLseT9wrYxdNkIG42AySaCgqgzFh7ckAVjxCQE= Received: from AM0PR10CA0105.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:e6::22) by AS8PR08MB6135.eurprd08.prod.outlook.com (2603:10a6:20b:29f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.21; Fri, 15 Mar 2024 11:15:23 +0000 Received: from AM2PEPF0001C70E.eurprd05.prod.outlook.com (2603:10a6:208:e6:cafe::e1) by AM0PR10CA0105.outlook.office365.com (2603:10a6:208:e6::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.19 via Frontend Transport; Fri, 15 Mar 2024 11:15:23 +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 AM2PEPF0001C70E.mail.protection.outlook.com (10.167.16.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7386.12 via Frontend Transport; Fri, 15 Mar 2024 11:15:23 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) 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; Fri, 15 Mar 2024 11:15:06 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 15 Mar 2024 11:15:06 +0000 Received: from e133397.arm.com (10.57.68.55) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Fri, 15 Mar 2024 11:15:05 +0000 From: Victor Do Nascimento To: CC: , , , Victor Do Nascimento Subject: [PATCH] aarch64: Add +lse128 architectural extension command-line flag Date: Fri, 15 Mar 2024 11:14:52 +0000 Message-ID: <20240315111452.1741691-1-victor.donascimento@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM2PEPF0001C70E:EE_|AS8PR08MB6135:EE_|DB5PEPF00014B96:EE_|DU5PR08MB10776:EE_ X-MS-Office365-Filtering-Correlation-Id: 8c34fe61-cfd4-4e3f-8c02-08dc44e13c89 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: r0A4TwDD59l6RfNLJ7ZTo2lRJaWnp+Pp8pApRqWocAoqWXVTPCF+ZvRcAELPnk/StTf3Bp1pnx6DRgkyAW4ON9INSWcx4rMBWuNpfz3quJTJMbrAXgmpQ60PPMoTnKVBMezA2zTxacLjno4nNkhkYit2dF9BwBpesuoQ1Pk8Hzq/RxiZULPhoBbEEEh2wvlRgqk92ubHznvQL1ez7T3vucT+WsLowwWrg+HhXL9uLu8Uk6oh6I8JrMjrjVqgNtTr190/SUhPO0Gbs1rgtwd2vmiBKunxHv6KWjJ8uuhDzq1pdTA1f6d4XCH6+zEyl3GTuRmnHupVWlCo5v6aOgmOzoyPQSMC101LvB1gZ7Qgv5mG5Hkt2wLEB4q1ovkWf8R/0tNLcZaw5DFEnIqB4FKRIo4hXAyeC3odJxQorXKBRQZAZ0cpqw2Yq+C1PMd34oIJLPvVgV9pEmfRizDIl63EXbS7LTmZp4nMkDf6ZCLSUb5ADk2mIEnmf8eRx6zCEpY0XkGuxIlPQR7zUV6PWxyT+wuDz6gxMviju0p4R8dMm23Xneuu9/AOiv0Pakq/nmDXmOHzGoT+G2J4qNLB/Bm7gFFxyo2BWmQXsAzVBAMKCuuPuSB1nbbytmE3uUsr6NaLp7VQW18OluRzNwPAHbMGdNBerg6yJREWLSWR2YGn0jDMPNc48ZtjB02t2CIMd0NT/yFhiEVkdPY+BD+Rkivhzw== 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)(82310400014)(1800799015)(376005); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6135 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5PEPF00014B96.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 8811ed68-bec8-49da-ddcd-08dc44e1358d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ehA6s4AG3j3EJNZ1Ou3nCv9PTfnHXsJYVhEO2mzKwolrFh5+bv0BsgQOsKM+ebNT0CnuVwpG1TmMSM/Nkx9nrH8gsavv3cLXp4aav9DzU8qPQj4qhdrC0wcblHN3FFDXxRJW9wTV5qYKJVtDdqxwT/vpiqpbARUqOJzjvv6XjnOYR6OVhGrJ2TZ97zGthF9a92IHemqcFUtdPS+24nXjS/Ej77h7wM0qi6RMSI7AZQQwSzVVXmT/5CrH8divrn4hQJd4d0i4uPE9LjLvw/jNWgAj9QCL68c2Q0W+pv6O6PKP6Egab6iwrPfNxlMcWDRZXMMMrRbJVasVwlVV1lOWpaSH+bSckOmEFoPlDibDShmii5C4/aOwvB1Lycm4nTppFRbxBAz4arLC1KMfoEyDOFbgCPb0vHu1L5g3z6SfYoGSyVBtSb0OyBlgNWGcegZmQyZMpZhRHrKatcjiglstVUkmJQjTZUst/RSXFhUrsm85uuwh5IBkm6pYIOKyLXCLYgsw/jBK1MtBg3zVyUFbd067HLEzhZglBhHuKNrttJEnvwfGsbOkoPfXZYpPutd5p42qxTZYHqyVzR258QqZHSG6PezJE5KShiVLrl8tLc//2vNBN02N7sUQePx5d5i2AelzoJ6ovbuMw8aGWTRlJ3mz3e6vEgiigdqIPb80BSYrIEkiokn3P1Zz+U71HXdjKfK2J8uZGk4X8ZgR6kjW1w== 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)(1800799015)(376005)(82310400014); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2024 11:15:35.3745 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8c34fe61-cfd4-4e3f-8c02-08dc44e13c89 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: DB5PEPF00014B96.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU5PR08MB10776 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Given how, at present, the choice of using LSE128 atomic instructions by the toolchain is delegated to run-time selection in the form of Libatomic ifuncs, responsible for querying target support, the `+lse128' target architecture compile-time flag is absent from GCC. This, however, contrasts with the Binutils implementation, which gates LSE128 instructions behind the `+lse128' flag. This can lead to problems in GCC for certain use-cases. One such example is in the use of inline assembly, whereby the inability of enabling the feature in the command-line prevents the compiler from automatically issuing the necessary LSE128 `.arch' directive. This patch therefore brings GCC into alignment with LLVM and Binutils in adding support for the `+lse128' architectural extension flag. gcc/ChangeLog: * config/aarch64/aarch64-option-extensions.def: Add LSE128 AARCH64_OPT_EXTENSION, adding it as a dependency for the D128 feature. gcc/testsuite/ChangeLog: * gcc.target/aarch64/lse128-flag.c: New. * gcc.target/aarch64/cpunative/info_23: Likewise. * gcc.target/aarch64/cpunative/native_cpu_23.c: Likewise. --- gcc/config/aarch64/aarch64-option-extensions.def | 4 +++- gcc/testsuite/gcc.target/aarch64/cpunative/info_23 | 8 ++++++++ .../gcc.target/aarch64/cpunative/native_cpu_23.c | 11 +++++++++++ gcc/testsuite/gcc.target/aarch64/lse128-flag.c | 10 ++++++++++ 4 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 gcc/testsuite/gcc.target/aarch64/cpunative/info_23 create mode 100644 gcc/testsuite/gcc.target/aarch64/cpunative/native_cpu_23.c create mode 100644 gcc/testsuite/gcc.target/aarch64/lse128-flag.c diff --git a/gcc/config/aarch64/aarch64-option-extensions.def b/gcc/config/aarch64/aarch64-option-extensions.def index 1a3b91c68cf..ac54b899a06 100644 --- a/gcc/config/aarch64/aarch64-option-extensions.def +++ b/gcc/config/aarch64/aarch64-option-extensions.def @@ -275,7 +275,9 @@ AARCH64_OPT_EXTENSION("mops", MOPS, (), (), (), "") AARCH64_OPT_EXTENSION("cssc", CSSC, (), (), (), "cssc") -AARCH64_OPT_EXTENSION("d128", D128, (), (), (), "d128") +AARCH64_OPT_EXTENSION("lse128", LSE128, (LSE), (), (), "lse128") + +AARCH64_OPT_EXTENSION("d128", D128, (LSE128), (), (), "d128") AARCH64_OPT_EXTENSION("the", THE, (), (), (), "the") diff --git a/gcc/testsuite/gcc.target/aarch64/cpunative/info_23 b/gcc/testsuite/gcc.target/aarch64/cpunative/info_23 new file mode 100644 index 00000000000..d77c25d2f61 --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/cpunative/info_23 @@ -0,0 +1,8 @@ +processor : 0 +BogoMIPS : 100.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 asimddp atomics lse128 +CPU implementer : 0xfe +CPU architecture: 8 +CPU variant : 0x0 +CPU part : 0xd08 +CPU revision : 2 \ No newline at end of file diff --git a/gcc/testsuite/gcc.target/aarch64/cpunative/native_cpu_23.c b/gcc/testsuite/gcc.target/aarch64/cpunative/native_cpu_23.c new file mode 100644 index 00000000000..8a1e235d8ab --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/cpunative/native_cpu_23.c @@ -0,0 +1,11 @@ +/* { dg-do compile { target { { aarch64*-*-linux*} && native } } } */ +/* { dg-set-compiler-env-var GCC_CPUINFO "$srcdir/gcc.target/aarch64/cpunative/info_23" } */ +/* { dg-additional-options "-mcpu=native" } */ + +int main() +{ + return 0; +} + +/* { dg-final { scan-assembler {\.arch armv8-a\+dotprod\+crc\+crypto\+lse128} } } */ +/* Test one where lse128 is available and so should be emitted. */ diff --git a/gcc/testsuite/gcc.target/aarch64/lse128-flag.c b/gcc/testsuite/gcc.target/aarch64/lse128-flag.c new file mode 100644 index 00000000000..71339c3af6d --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/lse128-flag.c @@ -0,0 +1,10 @@ +/* { dg-do compile { target { aarch64*-*-*} } } */ +/* { dg-additional-options "-march=armv9.4-a+lse128" } */ + +int main() +{ + return 0; +} + +/* { dg-final { scan-assembler {\.arch armv9\.4-a\+crc\+lse128} } } */ +/* Test a normal looking procinfo. */