From patchwork Fri Aug 11 15:10:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Ball X-Patchwork-Id: 134557 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1164644vqi; Fri, 11 Aug 2023 08:12:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF2bmhUhOvc+ml/B/rCoBnLOpF7tBevclcl+voBDh48IGIX03+Duhz54HbE/rtm3foYkvS+ X-Received: by 2002:a17:906:5594:b0:992:7295:61c9 with SMTP id y20-20020a170906559400b00992729561c9mr2105833ejp.69.1691766763191; Fri, 11 Aug 2023 08:12:43 -0700 (PDT) Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id a1-20020a17090682c100b00987a947bfa1si3571707ejy.483.2023.08.11.08.12.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 08:12:43 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=Ew9nP7WB; arc=fail (signature failed); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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 3E013385696B for ; Fri, 11 Aug 2023 15:12:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3E013385696B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691766759; bh=wh9pxn9b5Bs618f0tvsMYTY61DgmQ8KTUkphVGBNuok=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Ew9nP7WB6TERzmdcJ9JBcXSrZhwJ/UhrhFL6ty1ljvF0Jt2wbxj39++V2WVv7mTyg pdDpBdBRMxPcPN+HlLisJjyBCghCfy8HhK1mejObrythgBTmfNWNwJ2WedTYmyyV+h mw/Wo/bQA47JukvpfIxf3s86xjmKDUTvQNUYNH0Y= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2046.outbound.protection.outlook.com [40.107.249.46]) by sourceware.org (Postfix) with ESMTPS id 9D6E3385773C for ; Fri, 11 Aug 2023 15:11:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9D6E3385773C Received: from AS8PR05CA0025.eurprd05.prod.outlook.com (2603:10a6:20b:311::30) by AM8PR08MB6466.eurprd08.prod.outlook.com (2603:10a6:20b:363::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.19; Fri, 11 Aug 2023 15:11:42 +0000 Received: from AM7EUR03FT028.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:311:cafe::4c) by AS8PR05CA0025.outlook.office365.com (2603:10a6:20b:311::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.31 via Frontend Transport; Fri, 11 Aug 2023 15:11:42 +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 AM7EUR03FT028.mail.protection.outlook.com (100.127.140.192) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.44 via Frontend Transport; Fri, 11 Aug 2023 15:11:41 +0000 Received: ("Tessian outbound b5a0f4347031:v175"); Fri, 11 Aug 2023 15:11:41 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 9de92d07538cfc3b X-CR-MTA-TID: 64aa7808 Received: from 8a6e97fa8757.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 2549AED6-0F54-4A68-81D7-BEC43A37EA91.1; Fri, 11 Aug 2023 15:11:31 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 8a6e97fa8757.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 11 Aug 2023 15:11:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dTrT52h3NIOw57KKDz61sAhEGdDXcPP9pJtrim04etcoICxbgoqdRk1TMXZ62burreHyxHwjZILhbWbzzpmvS7SFCvRstIbMxcV7ioYMJKp62yAdKDH6CDmAyqIh5RZrN8e+1bDI132CvVSes0W6arcWberLO5BXQShX6t8lz16I2a9MyP6JaW+0NftlTkLqOZr/iHZmHNkwvheA64mTPaUaLkYHfD2Cv4kD/EF9uMap8y4QAtyM6s+gDakL8Qf8hKO0aT9MvL7rXRyWO2T1hs/f3ePCCFO0gn4vyyZo5CxKB5c+oeFAJjEqPrx7KGihEDEjl7wRMqABrZtR6TSTyQ== 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=wh9pxn9b5Bs618f0tvsMYTY61DgmQ8KTUkphVGBNuok=; b=WFgaA/3ksj6VnI9Ca2HuHBYIMOkUMaCkfUvQkH5REAL03xNmsXJkfgYPDHmyXIZqzcGszbkZ8OICLsS5nXMvo3ODGee9XngjA4/2+6DbWVFTUWfCMa0qMz+7ZNNDLs4aYpEHVSvo3YDAhbYUoEw9u7CZWWC/c+6E0bhW3f/CM0wta2JlR/oWYNDg/GtD8FqY+YW7jdKKVYOSTRMOlC3rq9uMpnWJ2QlmbOdcjliLoz4YzhZ4aV3lWcmH7YT8BneGj8u9MqxV3aP+Wgl71Wp23vdX7VBMNKQv47gqA3G72GumrIyBa9Hbux0YdzpdGyAKc/kj3qYzYQeUKoz/zWEtgQ== 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 DB9PR08MB6957.eurprd08.prod.outlook.com (2603:10a6:10:2bc::10) by DB8PR08MB5321.eurprd08.prod.outlook.com (2603:10a6:10:11c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.30; Fri, 11 Aug 2023 15:11:26 +0000 Received: from DB9PR08MB6957.eurprd08.prod.outlook.com ([fe80::466d:46ab:e188:aead]) by DB9PR08MB6957.eurprd08.prod.outlook.com ([fe80::466d:46ab:e188:aead%3]) with mapi id 15.20.6652.029; Fri, 11 Aug 2023 15:11:26 +0000 Message-ID: <1b00c818-a0e5-033a-0299-03a75ebbd02a@arm.com> Date: Fri, 11 Aug 2023 16:10:56 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US To: binutils@sourceware.org, Richard Sandiford , Richard Earnshaw , Marcus Shawcroft Subject: [PATCH][Binutils] aarch64: Enable Cortex-A720 CPU X-ClientProxiedBy: LO4P123CA0111.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:192::8) To DB9PR08MB6957.eurprd08.prod.outlook.com (2603:10a6:10:2bc::10) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR08MB6957:EE_|DB8PR08MB5321:EE_|AM7EUR03FT028:EE_|AM8PR08MB6466:EE_ X-MS-Office365-Filtering-Correlation-Id: 8fadb59c-22b1-4b9e-791e-08db9a7d44e3 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: rT2mWOt2mrfT4/TZSXMhbLKhretamHsGMq3GZw/rcd26ZmkV8r6Heqp9eXzYloiaoicAgdJksmWqlvFMecRYJs21i2+S4cdW4VPeDxIyqR3QpTnI4PPZS2++CsztW/i8AfveG51Nmh5WG2APjtmgLUzdRVNE3rfFR6kF7mzUSkwyI2RfHK07uD+SP2QRA5tk1OaxVMEDN+11thPZ+ZYYZBlndq+CRIQGSUE1YTotcWYbCDLhQyFxdOTbWcfsTOyS5e2F4M7LeP3sXziqPI2GYuNYwrcoAILZjWZ0r5XBtZCej+4u/tY6kj2PK75rP6rYc/3Ppd68/zgWsbUXiS/Mmu7fgQHmf+IHy3ba8NsypDESrrh99QVXUnmG5Ltf3z5ZN4Tvg3rwIQH5XlNs5OzYAK7iLswpVqSHMc86k+y85dyqPAtcgNBDnWd5qFbFmwNUPvs+2WuE+13TmcgME2Md9eH782SE68yogkwgVOvxOPY8giwzPPpsw50xQIuY4591A1KgbutnixRwh+rGa0DGOsu1cunZ7da9ozh27E9OkN2m0/sV7rbnRgiya4b04GqSanT+oRGtykvNULlJ+/ExTLM5nLBCQBp2BnxqisK2XxXAqtRpjFReDN5yLI/0nz2gUkt9Vx6w1WRcS6dGZKPf3w== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR08MB6957.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(39860400002)(366004)(346002)(396003)(136003)(376002)(1800799006)(186006)(451199021)(6512007)(31686004)(6666004)(6636002)(66946007)(66556008)(66476007)(316002)(33964004)(478600001)(6486002)(235185007)(110136005)(8936002)(8676002)(26005)(5660300002)(6506007)(41300700001)(86362001)(31696002)(44832011)(36756003)(38100700002)(2616005)(83380400001)(2906002)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5321 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: AM7EUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 1608c7dd-7efa-44c3-213b-08db9a7d3b9c X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: H77zqoAP1d4uj8E0csQL/5umJ09PWTppKXMTEuR2aOve/VvGujrSqCzCF2yrz2vfREsrPghBP8RjkcOjCQeCRYTUV1sp2VXv0N8HB70eaaWnRS8OP9oJCI1lfc3Lxp+JhNncNslKxN4vl7CTkphL85klBtQEu/a/K6bgTHrxUTStOID1IMRhNUA282zXPGb0Z6x2APGbjC8aLuzOYn/lNfIz2/Vcee+MFF5y5DsqQc1FzgVq8h8o9w5mMHJLV7KUpAOF9qsAh/Pc60/k3yjB/peZq1mHQdu/WGiVVKwMbBtO/z+P4xN8jsqD7lmrf2yMsaiP57Z7xWxoA+egwFCmiy5O8dZkZ5jZQ7nOjkesYc5QiGx8dMxs/P0f3xIIjdd+dTYkhT20ko+Agf6CUeFWrzuyeoPzkG/7sc3mpgzeVDjcyDN8zGfmmbOLMvqjmKWOkhL7L3HqtZaPOoox0B3ey1i16mIeoyVqxUNZrIDbOv9v7AFChhsAwoPPYtbsDrMf4Q+rABvBQGETWmPzHRj1CPtfBYDbQU80OB/JT6qppPcaR/WHwNk2ZFwkP7lCmGHn1glxXZC6CpAwVCs4NIFgWratpm5G9OnQ6o0QA30+lV3PUORo5z3PNTCJ4w8ICADM9JdvhgUVbSNvviAcy+OGYjAzb/+pqZEowTq8b/tEGBBHnvsVae5gDp3vQV7ntpxSOQGikNp7ILiMEOoU/emlsGteKmPVjh1h79gS+Q7u9Mw9GyqPPy/p28VUz6dXEvQSLMfkMVCCsvPfCJ2fDeY4UA== 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:(13230028)(4636009)(396003)(39860400002)(376002)(346002)(136003)(82310400008)(451199021)(186006)(1800799006)(40470700004)(36840700001)(46966006)(2906002)(5660300002)(316002)(6636002)(8936002)(8676002)(44832011)(235185007)(41300700001)(36756003)(40460700003)(86362001)(31696002)(40480700001)(82740400003)(2616005)(6486002)(6666004)(33964004)(478600001)(81166007)(31686004)(356005)(336012)(26005)(6506007)(6512007)(36860700001)(70206006)(70586007)(110136005)(83380400001)(47076005)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Aug 2023 15:11:41.9780 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8fadb59c-22b1-4b9e-791e-08db9a7d44e3 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: AM7EUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB6466 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, KAM_LOTSOFHASH, 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.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Richard Ball via Binutils From: Richard Ball Reply-To: Richard Ball Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773946025654481720 X-GMAIL-MSGID: 1773946025654481720 This patch adds support for the Cortex-A720 CPU to binutils. No regressions on aarch64-none-elf. Ok for binutils-master? bfd/ChangeLog: * cpu-aarch64.c: Add Cortex-A720. gas/ChangeLog: * NEWS: Update docs. * config/tc-aarch64.c: Add Cortex-A720. * doc/c-aarch64.texi: Update docs. * testsuite/gas/aarch64/cpu-cortex-a720.d: New test. ---- diff --git a/bfd/cpu-aarch64.c b/bfd/cpu-aarch64.c index 75a0338b90cda6ec28c1aeedb5350166c58c2db0..df0d8c8c0dd0297501cc83abc1400b5ce37509e6 100644 --- a/bfd/cpu-aarch64.c +++ b/bfd/cpu-aarch64.c @@ -73,7 +73,8 @@ processors[] = { bfd_mach_aarch64, "cortex-a65" }, { bfd_mach_aarch64, "cortex-a65ae" }, { bfd_mach_aarch64, "cortex-a76ae" }, - { bfd_mach_aarch64, "cortex-a77" } + { bfd_mach_aarch64, "cortex-a77" }, + { bfd_mach_aarch64, "cortex-a720" } }; static bool diff --git a/gas/NEWS b/gas/NEWS index 07ba75661052842554a478ee612b9c7a087cec1b..41eb1ab89feb8a6b375b8ff6e619701232489f00 100644 --- a/gas/NEWS +++ b/gas/NEWS @@ -12,6 +12,8 @@ * Add support for Cortex-A520 for AArch64. +* Add support for Cortex-A720 for AArch64. + Changes in 2.41: * Add support for Intel FRED instructions. diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index e692161105a5c75fab92f707a114c20c9531f18f..2b05fc0de253c8ea7fb8e1c7de7773f1ddbfa0a5 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -10237,6 +10237,10 @@ static const struct aarch64_cpu_option_table aarch64_cpus[] = { | AARCH64_FEATURE_MEMTAG | AARCH64_FEATURE_SVE2_BITPERM), "Cortex-A710"}, + {"cortex-a720", AARCH64_FEATURE (AARCH64_ARCH_V9_2, + AARCH64_FEATURE_MEMTAG + | AARCH64_FEATURE_SVE2_BITPERM), + "Cortex-A720"}, {"ares", AARCH64_FEATURE (AARCH64_ARCH_V8_2, AARCH64_FEATURE_RCPC | AARCH64_FEATURE_F16 | AARCH64_FEATURE_DOTPROD diff --git a/gas/doc/c-aarch64.texi b/gas/doc/c-aarch64.texi index ed6b46e042290d806d98728d725b62520644e246..5e8ac0b4e7c6737e52edd6daadcd06e487572245 100644 --- a/gas/doc/c-aarch64.texi +++ b/gas/doc/c-aarch64.texi @@ -74,6 +74,7 @@ on the target processor. The following processor names are recognized: @code{cortex-a510}, @code{cortex-a520}, @code{cortex-a710}, +@code{cortex-a720}, @code{ares}, @code{exynos-m1}, @code{falkor}, diff --git a/gas/testsuite/gas/aarch64/cpu-cortex-a720.d b/gas/testsuite/gas/aarch64/cpu-cortex-a720.d new file mode 100644 index 0000000000000000000000000000000000000000..c0b1f2b33750c4a63833f5f104bcd4dced93a9d2 --- /dev/null +++ b/gas/testsuite/gas/aarch64/cpu-cortex-a720.d @@ -0,0 +1,6 @@ +# name: Assemble and dump for cortex-a720 CPU +# source: nop-asm.s +# as: -mcpu=cortex-a720 +# objdump: -d -mcortex-a720 + +#...