From patchwork Tue Aug 15 15:58:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Ball X-Patchwork-Id: 135676 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:3f2:4152:657d with SMTP id x8csp524234vqo; Tue, 15 Aug 2023 08:59:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGIRKv3RvobfeZIVZ/uoGHaZ8vvX/R8FlSN9Rr2tWMGyCm7WCwFoALhrR/ZLvQfGemt4r0j X-Received: by 2002:a05:6512:1154:b0:4f8:5885:61e with SMTP id m20-20020a056512115400b004f85885061emr10663549lfg.40.1692115148878; Tue, 15 Aug 2023 08:59:08 -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 a26-20020aa7cf1a000000b00523a43f9b28si9140064edy.198.2023.08.15.08.59.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Aug 2023 08:59:08 -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=wBJ3XjDB; arc=fail (signature failed); 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 ACD83385694E for ; Tue, 15 Aug 2023 15:59:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ACD83385694E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692115147; bh=Q0lIvhHIoVPgUg8k0NPY9H73AFa6HSvPOBFDBzE7cGg=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=wBJ3XjDBdu0YRMdImDF5LcjUH0N+zNQ/e4yQkzLeONJF6b8BnvvEPlwnhW0Z8do5N UkofmhrhHUNPVRfEk1RGCntb9/ovp3jVNbtALE3ZmCK0R25UbDsHIyYSP7PQsNBdPO yEQdDKeexqEnod7ak1VMdIQ7T1d/2fZMHec/px1w= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2055.outbound.protection.outlook.com [40.107.13.55]) by sourceware.org (Postfix) with ESMTPS id E41803857357 for ; Tue, 15 Aug 2023 15:58:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E41803857357 Received: from DB9PR05CA0011.eurprd05.prod.outlook.com (2603:10a6:10:1da::16) by AS4PR08MB7878.eurprd08.prod.outlook.com (2603:10a6:20b:51d::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.26; Tue, 15 Aug 2023 15:58:56 +0000 Received: from DBAEUR03FT056.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:1da:cafe::23) by DB9PR05CA0011.outlook.office365.com (2603:10a6:10:1da::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.33 via Frontend Transport; Tue, 15 Aug 2023 15:58:56 +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 DBAEUR03FT056.mail.protection.outlook.com (100.127.142.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.14 via Frontend Transport; Tue, 15 Aug 2023 15:58:56 +0000 Received: ("Tessian outbound 0b7d6027328f:v175"); Tue, 15 Aug 2023 15:58:56 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 02b23f91e18335f2 X-CR-MTA-TID: 64aa7808 Received: from b57f43d61123.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 7E01F36F-858B-4D9D-AA54-1A40FB3C0258.1; Tue, 15 Aug 2023 15:58:49 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b57f43d61123.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 15 Aug 2023 15:58:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IbENXBWe/CL1xgY6MujIdoVwt6xUL+cVHtWMb18y47LaGWke+S0UYbCLn3kOvFzgCSqJTctRFgx2h3meUmFnL0ZTxv27xlUvIE4LJRpOWl1G5enzkdf92Bcm94mawPsHep8lPeRg9633kRzAbdUfkEjCfx5P3ufCij8CDG2GZ4qYMVyfC4vXEjgrPnRUydRXPf79sRT6ES0rO7/VOJ6qxYTy83GMrtVEkY4dVd2biL93ZdLvJThJhogtZd5sQBDlvPacN794UllW4Y+tila2W3WKvICYGV7hDLYv/zbNraKrSFAA0BLyOoTNt1U9uFzx/P3ssd6axVqgVe1cGEMocg== 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=Q0lIvhHIoVPgUg8k0NPY9H73AFa6HSvPOBFDBzE7cGg=; b=eZf/aAnzdXJeshn8iy/rNYcC3wgMolrWSfg0hqNyXoJcx/VzRV8uHI3PfrKwRuWXl1mKlbe7U5P6mFlYTbV0jlyOTFFFMIklW+wWzpn6A7KVdbPxH4FfKp5n/OEpPRlPr7VExRqKpflA1N6TgcVzVjVA2DyTjnSZWEh+F98Tfr1XowA9S1OpkmDdANyQOk6aPf5ER47tgUxuhbtyS6dMGp1rwLSYc40hQ0ER0x+4mLLqflurMUEecMz2WT59cD3aty8JIFjCFd+DGCWYAz8J0oFpV787R05lQRr3UTZ1i51j2Zw1J5AMYTijccVB5q670RJPB41xmOaDk4JCFkm6yg== 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 PAWPR08MB10091.eurprd08.prod.outlook.com (2603:10a6:102:366::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.24; Tue, 15 Aug 2023 15:58:47 +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.6678.025; Tue, 15 Aug 2023 15:58:46 +0000 Message-ID: Date: Tue, 15 Aug 2023 16:58:17 +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 v2][Binutils] aarch64: Enable Cortex-A720 CPU X-ClientProxiedBy: LO4P123CA0332.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18c::13) To DB9PR08MB6957.eurprd08.prod.outlook.com (2603:10a6:10:2bc::10) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR08MB6957:EE_|PAWPR08MB10091:EE_|DBAEUR03FT056:EE_|AS4PR08MB7878:EE_ X-MS-Office365-Filtering-Correlation-Id: 8910ecec-2311-4ccd-f66c-08db9da887b8 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: 735ivP33q/MowZZD7McBk7wHugDoTFaDfboCVfCqU8HGEBCDG0k8zxaw8lRkQm3oiF8IZ2jtUrdgKgrngRHB3iq2aESg0rYkQ0jRFPvHKwLuk0RButnHG5pWbdN6GvFco/E75GTN9kezpCMd3H5p4R0TdEJP1/y6zfIg8fs/Bs5T5TyTbPsqfcUvdR2QRGhLh6hP/cKBt1WX9Ds4WbpyTPpjs8PILV+7NYt6ERHKCDpY/GutTEGO/3BU4yZq14gAvl2UHlO9rlUvr8qrj8+w+Kf0zH7Sf71y4AYyNOZoGJ82JWWbnvskSjEdSyFtUNFIdgkRC8vL8JauBKpC7NMwixPfehPcEMiylxKqJDuJqVqvSDDvlVk1AVM0DwqO4CxFqjASFsyP38e4hCCtz9Q7bcP4bsRp8ltwgHClG3YDEth5CFbXAbXDhtLu7vsBBE7KyWsiHs0C8UTF5zSzoV2v7MowZf9YomMHwEBWsgdlDq1t7H+b6udF/XyOx6QCANUR+PMvfrXNIy0y3hGynQ2vLjnN40aCdDV5I3Y+Oaz82rS4ASABNjVPrPupWDEeBm3z8thtVD+giauUQjoy8ptT0Kocdc67fAX+oUUWNZQ5HrmKEfVD2ubocoE51YGVfbmy/MJsVQ6TijJmIuoikwKjhw== 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:(13230031)(136003)(366004)(396003)(346002)(376002)(39860400002)(451199024)(1800799009)(186009)(5660300002)(66476007)(6666004)(2906002)(66556008)(6506007)(38100700002)(33964004)(478600001)(41300700001)(86362001)(31696002)(31686004)(2616005)(316002)(26005)(235185007)(6512007)(8676002)(6486002)(110136005)(83380400001)(66946007)(36756003)(6636002)(8936002)(44832011)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB10091 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: DBAEUR03FT056.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: c137e5a0-6b2f-499e-4a2d-08db9da8820f X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: D19uilIzJpem77lU+UMsTsszc+PeZpJ22EBE+/9LKGLyUUmU/vcCSh5kwh/tfy1LloZZnl0qMu8IJoGrogUMkdm9cl12X4dRWNNF/JHbbprITTRb92SMQtC37U2EuHYQ05bT9ghJ2VFc70jbuPiKC7aWZwre5WVGOww0H//BEkWeGIUPXQCVA2Qjg85jEvuApkE4x7o+jf48HV3dhQ/+mE3OBP/IHwa46+sjN+fupcBW3RZf7DHzJHs71hRW0y5kOkGN9JrbJACJmJfFPjQrZzAHUzC5k7XlmrxRQhbV+0fsRgjDrJcz3CgC7fInbassArP+Oj3vSBSOzS7ylDRpN/RKaOv1hHQ+fkpdUwNzR2+CCU3I1upyXXn9oUGbyRC+ww+H+77rgQPe7utSIoXKBsmGsCkpL8Z+f8fZLomn/teJi+M7E0K3NkT8yHshcuGCcOoFiwRY6I4F6sL/ZOZrfW9EOguBdsbJQaU96q5FyYTTEOfe0jiK/LrS320Itiv+b44SdM6XrlZ2mDlQFI8wqq6w7rXXagh+TWpdj/CdkZEjxJgDqgGs2ZEuqUF/R3yz1dYGEE2rnkvkA1khXnKe9P+ynf1+gA893HK88zxQrRyf0sMT1QOp3qPCimNg+2FHUj0NM5FqyehJlssbNJcNAQEVkLzDuHb5wUOlHQdPbPnDRKhIOigxK56f2x5ODETqg013Tktdg1iKakB60X1vcatR0dZJGhrwrMOt1+HfyOlo+aM28vnAbb3SFEkThZ/2SJ3oN7xtUuJa2eiLjmx+yw== 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)(39860400002)(346002)(136003)(396003)(376002)(451199024)(1800799009)(186009)(82310400011)(36840700001)(40470700004)(46966006)(478600001)(6636002)(8936002)(316002)(82740400003)(83380400001)(356005)(6506007)(26005)(336012)(31686004)(47076005)(41300700001)(110136005)(70586007)(70206006)(2906002)(36756003)(8676002)(5660300002)(235185007)(40460700003)(2616005)(81166007)(6512007)(6486002)(86362001)(36860700001)(6666004)(33964004)(31696002)(44832011)(40480700001)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2023 15:58:56.0169 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8910ecec-2311-4ccd-f66c-08db9da887b8 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: DBAEUR03FT056.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB7878 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, 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: 1774311334795965144 v2: Add missing PROFILE feature flag. 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..19fbc7c46466ab30725e9ae16ae576aea4de5d6d 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -10237,6 +10237,11 @@ 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_PROFILE + | 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 + +#...