From patchwork Wed Oct 4 13:48:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Saurabh Jha X-Patchwork-Id: 77119 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 81EB43858025 for ; Wed, 4 Oct 2023 13:49:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 81EB43858025 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1696427367; bh=uLrIgHrHVdKwi2UreXo26CEdjML4hF/lufcDufINIb4=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Ue+zCDigHSSjnbF9fzEPLzLJtYdDeIruBgg9UPd5lr9K6KnIH5HQ7L71AHNx+ikAO I4tYRhZ/TJ8ZkZstI5rb+ZAjPLCjdbNzTHTjVnrq/sVc8ZXjpG52LO8lmAN+GjaWH8 wRyBLiUTUlO/a/zHw0RYYXkyAlwsmPYggCspbsKA= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2078.outbound.protection.outlook.com [40.107.105.78]) by sourceware.org (Postfix) with ESMTPS id B72773857BB3 for ; Wed, 4 Oct 2023 13:48:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B72773857BB3 Received: from AM6PR10CA0006.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:89::19) by DB4PR08MB9287.eurprd08.prod.outlook.com (2603:10a6:10:3f5::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.35; Wed, 4 Oct 2023 13:48:54 +0000 Received: from AM7EUR03FT024.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:89:cafe::7f) by AM6PR10CA0006.outlook.office365.com (2603:10a6:209:89::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.26 via Frontend Transport; Wed, 4 Oct 2023 13:48:54 +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 AM7EUR03FT024.mail.protection.outlook.com (100.127.140.238) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.24 via Frontend Transport; Wed, 4 Oct 2023 13:48:54 +0000 Received: ("Tessian outbound ab4fc72d2cd4:v211"); Wed, 04 Oct 2023 13:48:54 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 8ec94c5f81bc3c85 X-CR-MTA-TID: 64aa7808 Received: from 10ff051a92d8.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id CDF02EAC-0C4A-4989-8D9C-44F14751502A.1; Wed, 04 Oct 2023 13:48:48 +0000 Received: from EUR02-AM0-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 10ff051a92d8.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 04 Oct 2023 13:48:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XUEYwM7aPghzRKDInQihxMnx7vmNamGcJs7d+ZD6t4Hn+Km4q9trUfURZIl0szUA6HUFgjZEFNyFfkwHMbLH6lF2p3d1pq/2HEGivX12y+8WURyA2Cc3b5V+Avii8Hk1xMnveRkvZlFjlBiKT+1GcYUseSXVrM+24cpb4Qou+z0WEC0eYXOhHFNszZFeYSrTC89LRJ2wI5EBRMdT7VRTHzwTj8iJf+cRFVvVtXjakliImQ+9DImf4y8reIYb327haeu2L/WzlJa+6v3EIrhKRtBuLcaGXDqTplaJaa9DEZ5g5yZijBs7qDEFjtbdjOQ1L4tHhNwmrIpNn3fOTOF2Vw== 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=uLrIgHrHVdKwi2UreXo26CEdjML4hF/lufcDufINIb4=; b=BnO+kcSZfMur81yEhgz/PJYArx6cfdP0o0Y7IFcYHWOaJOikxbYqsl36ppsQBCrynt1uF2S0uY/I7eTtI4DKu41QSbbOS6385kDSJLJChxGWxGtHsqbtIJq1SoLTSisVqrXfcN7ho5CGiEMKFrJhNxL/UD38tVyYw3kylDwAWvPB9Z/ykFjNbasrdLIht2NJdE3Leo1H92e5V4zNfWaF1swFvzmLvF7LQgSotjl48S0K8T4bdy6NAWiTM/JIoU22qpYN/FR06PPa5pk+QvP9pT3zfZhKxbNiTIcdHTRIE3dFQgTK2rq3fyRaXSFqiTq49O5tQMfJAZO7ponBbF38Ng== 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 Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from DBBPR08MB6091.eurprd08.prod.outlook.com (2603:10a6:10:1f4::5) by PAWPR08MB9829.eurprd08.prod.outlook.com (2603:10a6:102:2e6::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.29; Wed, 4 Oct 2023 13:48:45 +0000 Received: from DBBPR08MB6091.eurprd08.prod.outlook.com ([fe80::8932:dfc1:fe1c:9c9e]) by DBBPR08MB6091.eurprd08.prod.outlook.com ([fe80::8932:dfc1:fe1c:9c9e%6]) with mapi id 15.20.6838.028; Wed, 4 Oct 2023 13:48:45 +0000 Message-ID: <637e7fac-b40e-4741-95a8-ef310f4d3812@arm.com> Date: Wed, 4 Oct 2023 14:48:41 +0100 User-Agent: Mozilla Thunderbird Content-Language: en-US To: binutils@sourceware.org, richard.earnshaw@arm.com, richard.sandiford@arm.com Subject: [PATCH v2][BINUTILS] aarch64: Enable Cortex-X4 CPU X-ClientProxiedBy: SA1P222CA0185.NAMP222.PROD.OUTLOOK.COM (2603:10b6:806:3c4::11) To DBBPR08MB6091.eurprd08.prod.outlook.com (2603:10a6:10:1f4::5) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DBBPR08MB6091:EE_|PAWPR08MB9829:EE_|AM7EUR03FT024:EE_|DB4PR08MB9287:EE_ X-MS-Office365-Filtering-Correlation-Id: f601a26a-a0ee-40d6-0cac-08dbc4e0a669 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: fV1HzADe6ObFmL5QIupu2PiQQd+0OFvw2fUw5UvLElqYaK0QQlRPvsDctSctdfXQp8ckT2ik9iogwI3QETMVI9h7zjuaiScPiMr/xtdtRaKWp/GKpr+b4FLGmHnkDqIrdJb9aqm4bq9+FQ/xVChMYS6gle0CPNIDNpmx5DiCJpWQft9wxbWx2zjheTCTcsOPzINIevaM/Od3rguL84/nHgqBmV5ErAbIFyVxaODvy9nn0y6rlBQa/C3bKmg2nXLom3P9eywZAVURkEznKudZ1Kyg+suZtxl8woNAJ8ATAD4RIyBhLwiZqXLLu9WXbg2ie6uts1L6BGaUvhZJn7GFogADSKv9YGTlj+hErK0+KTaTopdWp9E1zwbNwqmBUzkknEaqW7SscxYhWVagt/w6Q5z03IdoABAQP2WQooC4Sc0qeQVYcXDVCKY507sfdhv0D7Nre+soh+Vz73KrgJP0EzKK/gcYdjd1G3xBLIHUYrh6CvfcW1G/jLjcnlraIa8z+djMA6ZFgIukhrMKCTVmZt2/cPZxjaOtOs3cTXJoiKw3iatDNqMCll0FJYkn8pMco257ffhVDOQ3SC6bBSmGVW0UiExNwpXZ59jMsr7MG1rQ3zNy90qMX0zm1gGcR4tcZZaYsnJrH5DOASCSb1gffg== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR08MB6091.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(396003)(376002)(366004)(39860400002)(346002)(230922051799003)(451199024)(64100799003)(1800799009)(186009)(26005)(38100700002)(8936002)(8676002)(31696002)(33964004)(36756003)(235185007)(6666004)(2906002)(6512007)(6486002)(44832011)(2616005)(86362001)(5660300002)(41300700001)(316002)(478600001)(6636002)(66946007)(66476007)(66556008)(6506007)(31686004)(83380400001)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB9829 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT024.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 457a9d58-34c8-431c-26cf-08dbc4e0a0b7 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sU018gn4FKdqQTbL7FJ4dKCEAttde7Y5yDcNj/H4rj39B5nLI9YI+J1ifZG/DDNOT3DkqnT4j/TTxT9j5OY6Kphv11x66lo/FrkhcktQOvxkQCRCsC7lSTSZuAEnUmpIBqCUtDBzdBmIxrX2kZxiz7oNMvX6NC/CWwRTB1DKXpXRNBlubKz1pimDE075l03JauYOgB59fOeV3xRuXwC1YA0KbLO8nf9RBUTZnTIMNzrDdUReHwtfL8/jPc4CZXKAb0QuVkISvRpXdr5fKCHJEZ4o8ar3igOQb6dv2AMqK0zDDrW1mr1c7AZxnJns/oUw4SE+vhsaFyp1XS+jQy1g3XO4OIBNxPtpNt7EPxIVnYSjIcYZJ50JBaYuMh8e2T3TJSdj5OVB1zGTeZG999Zh9Utuar+ybzUYMtaG6f2qf3ED69/p2rthAqd6v/8ZC5qsQm9TydjgVHrlCQJfdPvRcAOOeiBP9KDNjxYYIRP+1ORq8+sNd5O+xAwn75Tmhy0R/MiONWoDRUh8r74xPUIPYEs8iUddAOyVYGe+RIcsxQ/XkVUFVtYaU11MMyj7SESp8ifj2z/0lcqnomg7QksKeEWKioamZYKwj2mbPkFeo+bDUiRl108+wH4r7n7h7DekY9eCRcKqsFJWsE88MYtvKlgZyGcpYfOz4QVxutICYYIavfwyXNomRiy+5QsNFYQgyQD1/qRSt3+gRDLUI+5NPgLEQcc5HumKfoIWiVm/hVbnDFjbSP4dXwtEDTV6nnPP 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)(4636009)(396003)(39850400004)(346002)(136003)(376002)(230922051799003)(1800799009)(186009)(451199024)(82310400011)(64100799003)(46966006)(36840700001)(31686004)(40480700001)(6506007)(33964004)(6666004)(6486002)(478600001)(47076005)(31696002)(86362001)(81166007)(36860700001)(82740400003)(356005)(235185007)(41300700001)(2616005)(336012)(83380400001)(6512007)(26005)(2906002)(36756003)(44832011)(5660300002)(70586007)(70206006)(316002)(6636002)(8936002)(8676002)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2023 13:48:54.5271 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f601a26a-a0ee-40d6-0cac-08dbc4e0a669 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: AM7EUR03FT024.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR08MB9287 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, 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: , X-Patchwork-Original-From: Saurabh Jha via Binutils From: Saurabh Jha Reply-To: Saurabh Jha Errors-To: binutils-bounces+patchwork=sourceware.org@sourceware.org Sender: "Binutils" Hey, Updated the previous patch by rebasing with latest master and also adding the missing "testsuite/gas/aarch64/cpu-cortex-x4.d" file. Thanks, Saurabh --- Hey, This patch adds support for the Cortex-X4 CPU to binutils. Regression testing for aarch64-none-elf target and found no regressions. Okay for binutils-master? I don't have commit access so if it looks okay, could someone please help me commit this? Thanks, Saurabh bfd/ChangeLog   * cpu-aarch64.c (processors): Add cortex-x4 core in processors array. gas/ChangeLog   * NEWS (Changes in current release): Add documentation for Cortex-X4.   * config/tc-aarch64.c (aarch64_cpus): Add features of Cortex-X4.   * doc/c-aarch64.texi (Options): Add mention of Cortex-X4.   * testsuite/gas/aarch64/cpu-cortex-x4.d: New test for Cortex-X4. diff --git a/bfd/cpu-aarch64.c b/bfd/cpu-aarch64.c index df0d8c8c0dd..269177821bb 100644 --- a/bfd/cpu-aarch64.c +++ b/bfd/cpu-aarch64.c @@ -74,7 +74,8 @@ processors[] = { bfd_mach_aarch64, "cortex-a65ae" }, { bfd_mach_aarch64, "cortex-a76ae" }, { bfd_mach_aarch64, "cortex-a77" }, - { bfd_mach_aarch64, "cortex-a720" } + { bfd_mach_aarch64, "cortex-a720" }, + { bfd_mach_aarch64, "cortex-x4" }, }; static bool diff --git a/gas/NEWS b/gas/NEWS index 730ffad9bc9..71a1269b893 100644 --- a/gas/NEWS +++ b/gas/NEWS @@ -16,6 +16,8 @@ * Add support for Cortex-A720 for AArch64. +* Add support for Cortex-X4 for AArch64. + Changes in 2.41: * Add support for the KVX instruction set. diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index 5f5ec1b3dbc..14788ce180f 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -10215,6 +10215,8 @@ static const struct aarch64_cpu_option_table aarch64_cpus[] = { SSBS, PROFILE), "Cortex-X1"}, {"cortex-x2", AARCH64_CPU_FEATURES (V9A, 4, BFLOAT16, I8MM, MEMTAG, SVE2_BITPERM), "Cortex-X2"}, + {"cortex-x4", AARCH64_CPU_FEATURES (V9_2A, 3, MEMTAG, PROFILE, + SVE2_BITPERM), "Cortex-X4"}, {"generic", AARCH64_ARCH_FEATURES (V8A), NULL}, {NULL, AARCH64_NO_FEATURES, NULL} diff --git a/gas/doc/c-aarch64.texi b/gas/doc/c-aarch64.texi index 5e8ac0b4e7c..fd67c77bbf8 100644 --- a/gas/doc/c-aarch64.texi +++ b/gas/doc/c-aarch64.texi @@ -90,8 +90,9 @@ on the target processor. The following processor names are recognized: @code{xgene2}, @code{cortex-r82}, @code{cortex-x1}, +@code{cortex-x2}, and -@code{cortex-x2}. +@code{cortex-x4}. The special name @code{all} may be used to allow the assembler to accept instructions valid for any supported processor, including all optional extensions. diff --git a/gas/testsuite/gas/aarch64/cpu-cortex-x4.d b/gas/testsuite/gas/aarch64/cpu-cortex-x4.d new file mode 100644 index 00000000000..eab7fab3709 --- /dev/null +++ b/gas/testsuite/gas/aarch64/cpu-cortex-x4.d @@ -0,0 +1,6 @@ +# name: Assemble and dump for cortex-x4 CPU +# source: nop-asm.s +# as: -mcpu=cortex-x4 +# objdump: -d -mcortex-x4 + +#... \ No newline at end of file