From patchwork Tue Oct 3 09:35:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saurabh Jha X-Patchwork-Id: 147794 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp1962302vqb; Tue, 3 Oct 2023 02:35:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERFb2mRB15LxR363OK9o1YZ2itAHt+hEAjq50HaWrlCedQylJxDyWPHVMjujRO1Sn/9Jfb X-Received: by 2002:a17:906:24d:b0:9ae:5db5:149 with SMTP id 13-20020a170906024d00b009ae5db50149mr14171983ejl.35.1696325733072; Tue, 03 Oct 2023 02:35:33 -0700 (PDT) Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id t24-20020a1709066bd800b009b29952970asi516247ejs.538.2023.10.03.02.35.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 02:35:33 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=UCPaxagT; arc=fail (body hash mismatch); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E0A863858C30 for ; Tue, 3 Oct 2023 09:35:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E0A863858C30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1696325729; bh=+6Vk45z0tY9MXg0/ugCApkvlJ1s71KxZmjQumvL4ZTU=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=UCPaxagTAHrVPAb0BoR9vz6WHYp9wFVTGxRMpFP2hs//fKAaV/enyry9ghIozFDT9 q0qStDJu1ml+xTrVnRdDnk+kdfakcwHUBijojch/KHOwwCeNcFr3GctXfLktc1p1Zb 67I7kLpks9OjohIGGlx0909zgpQTkuyFaYuV3F6s= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2079.outbound.protection.outlook.com [40.107.20.79]) by sourceware.org (Postfix) with ESMTPS id 73EA33858C74 for ; Tue, 3 Oct 2023 09:35:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 73EA33858C74 Received: from AS9PR06CA0110.eurprd06.prod.outlook.com (2603:10a6:20b:465::29) by DU0PR08MB9227.eurprd08.prod.outlook.com (2603:10a6:10:41a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.33; Tue, 3 Oct 2023 09:35:16 +0000 Received: from AM7EUR03FT063.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:465:cafe::5b) by AS9PR06CA0110.outlook.office365.com (2603:10a6:20b:465::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.30 via Frontend Transport; Tue, 3 Oct 2023 09:35:16 +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 AM7EUR03FT063.mail.protection.outlook.com (100.127.140.221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.21 via Frontend Transport; Tue, 3 Oct 2023 09:35:16 +0000 Received: ("Tessian outbound ee9c7f88acf7:v211"); Tue, 03 Oct 2023 09:35:15 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: ed9ee05b30a9a3e8 X-CR-MTA-TID: 64aa7808 Received: from a23b0135c7a0.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id DDB82C25-F091-405F-ACE1-B3A875E28F38.1; Tue, 03 Oct 2023 09:35:09 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id a23b0135c7a0.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 03 Oct 2023 09:35:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gWlsr0cKSkCiwvY5DUrM5plToVX9ghejUGQlHb2SVJxCCeIVb8M0K15og1qrhgRhSBSsfHeAHuW6XhNRc5Fy1mQEkglgguOh12Go3P0cIW1T4ZZVYfRNYwc/hIb2Ym6c2UHN3U1A6kbmRqEFGf57WsrPIiuarIxrABMWi8rQKmf8QZ/iMrpWcqgAcvJqn3Gz6FDxW19IF0XkD9lu1nvlAvgcVfsV4NM1CHVDvANd237Wg+7bbAkCN38dpPC+ZGbiDgQepWPIs11UexQk1zUe/G1QZf112Y1olK/bRatMM/1uYzl1CNgk9UcZT0PeW96CspkroXhDFo+06QEbcPs8cg== 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=cUhAjVN7ARyDbUzD7thMej0nn5c4ZcUGn8rp8EXci1g=; b=CW/sVk2J5utcvK+FLPSp5XYqWMpxdBb+ugG6/g89cD3YZa5AFmGHwseDJOPz/fuIgEj7FYgQvx6L/HA/JANwaA+ImvgQNCnO0De0QMGPMb9KiN3avZj9aUKaG/2+JOMy7G7wCer5DSN+dkc9L/x/92vapyiiMEyvodnuCf04OZDj+lYzI8W6wdJK9i8r6phWX/GZ7qvdU7D5jvdWQzYWrUa8225KJaV9uLarRkfOqRiQVJPxvKMg2/xd5Aa7OEt8tiOXNoDkL4EZiiMfvPrTQgFYXDD3IiM2NGDucn93c98Dmmki0e4yWW0FFSMbv/3KQTB8A9Fn2q3PKbKWo3I/eQ== 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 AS4PR08MB7532.eurprd08.prod.outlook.com (2603:10a6:20b:4fb::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.28; Tue, 3 Oct 2023 09:35:06 +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; Tue, 3 Oct 2023 09:35:06 +0000 Message-ID: <0fd3707c-65e9-4c39-b588-1e9ff678605d@arm.com> Date: Tue, 3 Oct 2023 10:35:04 +0100 User-Agent: Mozilla Thunderbird Content-Language: en-US Subject: [PATCH][BINUTILS] aarch64: Enable Cortex-X4 CPU To: binutils@sourceware.org, richard.earnshaw@arm.com, richard.sandiford@arm.com X-ClientProxiedBy: LO4P123CA0507.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:272::17) To DBBPR08MB6091.eurprd08.prod.outlook.com (2603:10a6:10:1f4::5) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DBBPR08MB6091:EE_|AS4PR08MB7532:EE_|AM7EUR03FT063:EE_|DU0PR08MB9227:EE_ X-MS-Office365-Filtering-Correlation-Id: caccbf17-f287-4a23-3afe-08dbc3f40d13 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: OfrnZ4pPPvW3vsOW/wcAcyOgvGa/qzb8sWr41+DKIuOao4FN32tc4uel11Zqa63DRPDV2hCEPmgyvpglRnQvdCP5fXV4b2xEtBK19TJCrnkfwvJO6xS3TvsAnqtZ7GadcAQYdWYXKDE+ZrUSFhvi6vwbegFFdliw+1DPdBTKDYTHYxt/ZzUbGdex9mtC0h6Ntf8vRdO7vJxmdbKi9DZK5MgfkTvYsiX9vuJOwBUts8K95/TrstwxiwjhorBIr19iRklGEm794WaBoOVh801uL4lLCrG7eamblwHa+6ifgPhl98dGeFTAwmONffGijJZ0QyoicoGEr0S4zSF1631jLlTNvv7I6nLRe92bw1LMU8DPEb2LtCYxLd6/XuHklEVZvy+h+i24N+YG83va+f/RTGdNxKzAMj2LaCcDvmD5edyKP4TiqmJNQP3luTm+KEKs2RV+j//ibtoo1N1sKMkYzJsV2o7qy0PdOTgRRcjKyYJqnYcDHgHExCKN8zyZDwjI9xn6oOAA766PdoWlfl+2NTHtZWjeqWX4+AhYcu+Jc9vpySggf0ec/w0we7kQnyjMZZctuKaU9VzUWY8dpDHJmu7GnDjHYf/S4X38E4IHySv4ROufEs7wr3KRy5MKbicYWKSlS5K/4GTQ6UznmTXtXg== 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)(39860400002)(396003)(136003)(366004)(376002)(346002)(230922051799003)(64100799003)(1800799009)(451199024)(186009)(31686004)(31696002)(36756003)(86362001)(33964004)(26005)(2616005)(2906002)(83380400001)(6512007)(478600001)(6506007)(6486002)(8676002)(8936002)(44832011)(38100700002)(235185007)(316002)(6636002)(66946007)(66476007)(41300700001)(66556008)(5660300002)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB7532 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: AM7EUR03FT063.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: d2d57c72-7113-48e3-23a5-08dbc3f40703 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9J2/kimjjf/MIHvzVZaXLAL4ldnWf7psskR1kALlq9LJylDNmehlz4bI4uXm4iZwYoHa317npSwktHpkriXXMbG8bS8qUHiHu3OfCsQbOBl25dNxhfRRPMi5bXJwloFK9WgJAzlTBO9QlYyoFNgTrZrccDqkomHZweJVjSnO1POR2tD+Q02wBKFi4nFtkhteT2E//uZgi7lmI15+1ZDyukVOOkrokfwWAINvmp0dIy0GCyM+I327vRsHFuiW8d6pEdezuOgKhlLgbw4LroVvSC/6kYLgeTDIdju8b9csJ2C/6lj7fhctWu4dFpIgfoD20ibpR+FdX9wvwGO5F7RWVdveJ2O05mbn/MX18M8mQBUhWgBiJs2FYY6kpae28ErqMd2WpO6qq8EkUFcT3HPvNVekCUTAu1V3HuxClgZyw/8ycVBtIHAu+AFgDaU95QGMXwvnErxrsXikdyIr4RDG5ODINqv2Zlt/l3hnf2rI3pmPxxEEm+oPsT14UJulC4dIif3cSUJfEIwUPxoymb91iXdv+N8YYSuQtUZd9YcFLeUnBBKxA+P2BRtoPIviPEiLEGJHuivVwaNxWh/ZfSNmT91kyUDWgkltNDRhlzN7F24aNzr9gcnd1Z3KFCnCNQkJK+HKWw51EgHXJ2+JBAPkhHMmct6hwA21FZHmMWR8VbfIKZbDid0ygLpqYKV0fXN/QnDFOGXA7vzHI60ROP+cP36NirY3OObbHSguqPuEp6pKQeiUB5ggpWR8S/sm/75/O1ak0W+bawotm46WLTAeKw== 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)(136003)(346002)(396003)(39860400002)(376002)(230922051799003)(451199024)(64100799003)(82310400011)(1800799009)(186009)(46966006)(36840700001)(40470700004)(41300700001)(6512007)(33964004)(6486002)(2616005)(6506007)(316002)(6636002)(70206006)(70586007)(44832011)(8676002)(8936002)(26005)(5660300002)(478600001)(336012)(31686004)(40460700003)(235185007)(2906002)(83380400001)(47076005)(82740400003)(36756003)(81166007)(356005)(40480700001)(36860700001)(31696002)(86362001)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2023 09:35:16.1076 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: caccbf17-f287-4a23-3afe-08dbc3f40d13 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: AM7EUR03FT063.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9227 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, HTML_MESSAGE, 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-Content-Filtered-By: Mailman/MimeDel 2.1.30 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+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778726452134908532 X-GMAIL-MSGID: 1778726452134908532 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 4458f6dd663..5469a2acba1 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -10310,6 +10310,11 @@ static const struct aarch64_cpu_option_table aarch64_cpus[] = { | AARCH64_FEATURE_MEMTAG | AARCH64_FEATURE_SVE2_BITPERM), "Cortex-X2"}, + {"cortex-x4", AARCH64_FEATURE (AARCH64_ARCH_V9_2A, + AARCH64_FEATURE_MEMTAG + | AARCH64_FEATURE_PROFILE + | AARCH64_FEATURE_SVE2_BITPERM), + "Cortex-X4"}, {"generic", AARCH64_ARCH_V8A, NULL}, {NULL, AARCH64_ARCH_NONE, 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.