From patchwork Mon Aug 14 14:15:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Ball X-Patchwork-Id: 135465 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp2775534vqi; Mon, 14 Aug 2023 07:17:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG6HDNaPejuMKNWN+PpNHQYkN+b/ul6uYEsf4tANAZggOG790+uXSQikNG8/P498FiA4P3e X-Received: by 2002:a17:907:774e:b0:992:ef60:aadd with SMTP id kx14-20020a170907774e00b00992ef60aaddmr10662408ejc.13.1692022648367; Mon, 14 Aug 2023 07:17:28 -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 v8-20020a1709060b4800b00993686e193csi8128505ejg.53.2023.08.14.07.17.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 07:17:28 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=hovODgxU; arc=fail (signature failed); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 46080385703A for ; Mon, 14 Aug 2023 14:17:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 46080385703A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692022639; bh=gzWbCLxFdh+ip8wgnyPBSaqzxxjJOOPX6jV9Qw2oGdU=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=hovODgxU3VunoY2tl5NL4xDtdA21eQN32td+O4Z6vo9UVNEfMNZ8cr8v41R1kZol3 Uu1EElC8YivwHYwFvf0S6m7Qp/DIA2zks1LfuwOow1j22r/34IS54gS6M8sQzUP9pU ReSXeOQ1bxxJycpu3EeaBfL2lf6wFdosCx1JLFzg= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2049.outbound.protection.outlook.com [40.107.14.49]) by sourceware.org (Postfix) with ESMTPS id 34ADA3858C1F for ; Mon, 14 Aug 2023 14:16:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 34ADA3858C1F Received: from DUZPR01CA0113.eurprd01.prod.exchangelabs.com (2603:10a6:10:4bb::6) by AM9PR08MB5987.eurprd08.prod.outlook.com (2603:10a6:20b:2da::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.24; Mon, 14 Aug 2023 14:16:31 +0000 Received: from DBAEUR03FT057.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:4bb:cafe::6e) by DUZPR01CA0113.outlook.office365.com (2603:10a6:10:4bb::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.33 via Frontend Transport; Mon, 14 Aug 2023 14:16:31 +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 DBAEUR03FT057.mail.protection.outlook.com (100.127.142.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.13 via Frontend Transport; Mon, 14 Aug 2023 14:16:31 +0000 Received: ("Tessian outbound b5a0f4347031:v175"); Mon, 14 Aug 2023 14:16:30 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: ded89d89b5f73376 X-CR-MTA-TID: 64aa7808 Received: from af783161465d.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 818CC32E-1C8D-4931-9C4E-DBCAFE886090.1; Mon, 14 Aug 2023 14:16:24 +0000 Received: from EUR02-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id af783161465d.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 14 Aug 2023 14:16:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R+jRYFbJqPrtYi/n9ZpqaTTrNZ+RmAepPz7E2SmA16cMXqODrDW+2fNjmsOxTgpM8ZjyaHrFKt3LI/pxsjGuOloFAwHml01iTOAZ4iHX6NrT37OvG0F71ljACFUJY1NwTx7nfy213/5G6ji0nsVRg7KABXrNYw93byfGrIQJPohWIIJb5/KSx768a7murikzO2XLRbwD9/9ymzs3eLG/ovKD73GMDOex6FLyP3P/3JA5d3+gkWVjjV0lGHI852SCQ4gfyPzOLzSmqwWieZ9XFHwJaDNKEOeybw7wHTqhuwAYS443B+7urlsoEE4qZptXZKmR9CybiGuumZvNCheoJw== 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=gzWbCLxFdh+ip8wgnyPBSaqzxxjJOOPX6jV9Qw2oGdU=; b=j7lKeR8mcuxE+9CT9IY51mHGZQ2Sgc1vk8R6SCSnopVsYPUs7uxmFaqFNyV7aveGHeC6x1owUnwpzVykf69LThpEEEB6OlFbgNQjycaRfJxG4t1JNCWrpPyH111+7eBEszbVZtLTiiEwGAetLF2BlAMSy/pkzUerdk2ZHlwCwFMLhtSnO228JCnIl8k4DSda3HBQteIC1TCvporQJwki4eDqKi7GVqrZodK2wxZ8pxv7V6+b97M4L5mFiG1FswzmjRzrJF7GWoUOT19EsCvU+zeKtMddh9ROLUjfKiS18sMwg75nAC7PXHCh9FoubjZE+bKYIw8l/bwBS6itRJo3bA== 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 AM8PR08MB5715.eurprd08.prod.outlook.com (2603:10a6:20b:1d7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.24; Mon, 14 Aug 2023 14:16:22 +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.022; Mon, 14 Aug 2023 14:16:22 +0000 Message-ID: <56284602-b0f9-7bb0-2da6-420b5a97d90b@arm.com> Date: Mon, 14 Aug 2023 15:15:52 +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: "gcc-patches@gcc.gnu.org" , Richard Sandiford , Richard Earnshaw , Kyrylo Tkachov , Marcus Shawcroft Subject: [PATCH][GCC] aarch64: Add support for Cortex-A720 CPU X-ClientProxiedBy: LO4P123CA0155.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:188::16) To DB9PR08MB6957.eurprd08.prod.outlook.com (2603:10a6:10:2bc::10) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR08MB6957:EE_|AM8PR08MB5715:EE_|DBAEUR03FT057:EE_|AM9PR08MB5987:EE_ X-MS-Office365-Filtering-Correlation-Id: ac8fbd85-1444-41ba-6b63-08db9cd10e9c 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: 9hGS0nm8uDhtq0eMFS0StsWypmKTs18t7qF1iazou+LnMBVdBHaWzjhNzic0pF5UoJI/5CgrfraEPyXtK2OB1VRgCeKsr8EJQf2/srrA1fe4ktFD9kLLEiHSpT3ETiBRunRvg7PaFk69eNB0MxVIONSMnfB+aVXjUVP8I7b+qDEdahwaS4kVYjGiIQfqZYn+2HdKOg4+RxjE/I6Lck7Ile8FVq2/gudvRD9pQpMcwF3L2A63JPRARRpc7KbpxgGRs9i5JsCP5g9/V+ZwMqfE5JY/QxpRh6tRoZeTWDbZqY5oIJneIsnxaeXZvMapMOEqncUYOPjrY7QK3WGxkC4+0ShkN7eau1+ahHIA1oNK7nwMbF9QA1/SsyXMUFt8ekhE4WsZla8MCi0uIzlXNHlqZMtJSHOacQiu+D90OkZXJUdOj2r8AaZVfRuHsJfm9IHfrsrvidg8W353qAoyxQj7A/daWz9FUpbgLQX9G0j1EHzVWZqMnbpdycZCOGYTK2qtA76JEdtT3bSPNKqgEtIDLRebntvpOHA02PEuj6nZuhmsQKkzjDdFOCoVeZXwWsYR22sYz1mshdMqqUw/Mx4dk00zTGs8KMijYv9/733AoBpLlOPfqaiy1jxv4dbnNbqlOcabwFeVn0e07SoTg6Taiw== 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)(136003)(39860400002)(396003)(366004)(376002)(346002)(451199021)(186006)(1800799006)(38100700002)(110136005)(6486002)(33964004)(6666004)(478600001)(235185007)(5660300002)(2906002)(564344004)(36756003)(86362001)(31696002)(44832011)(6636002)(66476007)(66556008)(66946007)(41300700001)(8936002)(316002)(8676002)(2616005)(26005)(6506007)(6512007)(31686004)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB5715 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: DBAEUR03FT057.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: bbd5fe28-e5e7-4afb-fe24-08db9cd108ee X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZrmcdGZZOYHdxJMNQQcqR9737qhcp8bCQunEzNMw9qgaqVc/5os2vdAzSktIT0sz/H6wMCxarShsh08dgxRXtmTx8V25vw5RJYEZDpSxp/HTXn24TOXljQ/vX5Ojg6WDAWr3CU/gNlHyzlFcy2rAZKoOjfUnPDSS9XnUoNkogDTwB3B7T5nw09v8NiH5xIZG6m5omEDDyYVQq2ylr3JTbnHEXcsvjy3cKJogb7w31vhRV3/ZbbCQEyCApnh7VxJvquDkGck5s3tzNm9jCqwOLJqHhbxzaBLOJVtblbabOzSt7+OheQeHJJRdNd2/cQ8FjXPV+RZ/0wPGsElPgm8AiQmtyGUdTHBhycWuql9Ipe5I+TiW4KpQB3Yj1JBtEWFxA6PLNUgML3NshAXhOE/BQYyU4zTNSgGIVoZ08sQij4hYjJeB0rQS1AIzpskakG74W6Os4RZ6882Y9+UtlKklM5bRo3BVIrK/btVLOkRDhs/VFFTMy1SCE1hZowfgbUpk5EA7MnvVMcsuTByw9uAtvBvmwECVGSxVRoxPRhyGlIieBtsVXyncLjfRe9RGCvWHn+eFQw7XnaslfFOa5R59nBhxfHOVKJanl28agWxei6B3w2FWR7JzegQ92ZB+ijsjvVDmTff+Thli/yjB6XWMAj7KzTHGJ91AIi/cPVfPMd4NEv0JDMDp8tnkB4CSjTv+3KASYEOgLesZnCouze6wIjwMdG2eq3DdiWP/Iem9ZZWSRqHaMIC3o5KECt2ZYTOcTwV8ZybJlpseh+LQz05RiA== 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)(346002)(39860400002)(396003)(136003)(376002)(186006)(1800799006)(82310400008)(451199021)(40470700004)(46966006)(36840700001)(31686004)(6512007)(6486002)(33964004)(6666004)(564344004)(81166007)(36756003)(31696002)(86362001)(356005)(82740400003)(47076005)(36860700001)(26005)(6506007)(2906002)(336012)(110136005)(478600001)(40480700001)(2616005)(8936002)(5660300002)(8676002)(70586007)(40460700003)(235185007)(41300700001)(316002)(44832011)(6636002)(70206006)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Aug 2023 14:16:31.0130 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ac8fbd85-1444-41ba-6b63-08db9cd10e9c 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: DBAEUR03FT057.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB5987 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Richard Ball via Gcc-patches From: Richard Ball Reply-To: Richard Ball Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774214340800760210 X-GMAIL-MSGID: 1774214340800760210 This patch adds support for the Cortex-A720 CPU to GCC. No regressions on aarch64-none-elf. Ok for master? gcc/ChangeLog: * config/aarch64/aarch64-cores.def (AARCH64_CORE): Add Cortex- A720 CPU. * config/aarch64/aarch64-tune.md: Regenerate. * doc/invoke.texi: Document Cortex-A720 CPU. diff --git a/gcc/config/aarch64/aarch64-cores.def b/gcc/config/aarch64/aarch64-cores.def index dbac497ef3aab410eb81db185b2e9532186888bb..5369dd3dd0fe695a371261547c76f034c29b9bcd 100644 --- a/gcc/config/aarch64/aarch64-cores.def +++ b/gcc/config/aarch64/aarch64-cores.def @@ -176,6 +176,8 @@ AARCH64_CORE("cortex-a710", cortexa710, cortexa57, V9A, (SVE2_BITPERM, MEMTAG, AARCH64_CORE("cortex-a715", cortexa715, cortexa57, V9A, (SVE2_BITPERM, MEMTAG, I8MM, BF16), neoversen2, 0x41, 0xd4d, -1) +AARCH64_CORE("cortex-a720", cortexa720, cortexa57, V9_2A, (SVE2_BITPERM, MEMTAG), neoversen2, 0x41, 0xd81, -1) + AARCH64_CORE("cortex-x2", cortexx2, cortexa57, V9A, (SVE2_BITPERM, MEMTAG, I8MM, BF16), neoversen2, 0x41, 0xd48, -1) AARCH64_CORE("cortex-x3", cortexx3, cortexa57, V9A, (SVE2_BITPERM, MEMTAG, I8MM, BF16), neoversen2, 0x41, 0xd4e, -1) diff --git a/gcc/config/aarch64/aarch64-tune.md b/gcc/config/aarch64/aarch64-tune.md index 2170980dddb0d5d410a49631ad26ff2e346b39dd..12d610f0f6580096eed9cf3de8ad3239efde5e4b 100644 --- a/gcc/config/aarch64/aarch64-tune.md +++ b/gcc/config/aarch64/aarch64-tune.md @@ -1,5 +1,5 @@ ;; -*- buffer-read-only: t -*- ;; Generated automatically by gentune.sh from aarch64-cores.def (define_attr "tune" - "cortexa34,cortexa35,cortexa53,cortexa57,cortexa72,cortexa73,thunderx,thunderxt88p1,thunderxt88,octeontx,octeontxt81,octeontxt83,thunderxt81,thunderxt83,ampere1,ampere1a,emag,xgene1,falkor,qdf24xx,exynosm1,phecda,thunderx2t99p1,vulcan,thunderx2t99,cortexa55,cortexa75,cortexa76,cortexa76ae,cortexa77,cortexa78,cortexa78ae,cortexa78c,cortexa65,cortexa65ae,cortexx1,cortexx1c,ares,neoversen1,neoversee1,octeontx2,octeontx2t98,octeontx2t96,octeontx2t93,octeontx2f95,octeontx2f95n,octeontx2f95mm,a64fx,tsv110,thunderx3t110,zeus,neoversev1,neoverse512tvb,saphira,cortexa57cortexa53,cortexa72cortexa53,cortexa73cortexa35,cortexa73cortexa53,cortexa75cortexa55,cortexa76cortexa55,cortexr82,cortexa510,cortexa520,cortexa710,cortexa715,cortexx2,cortexx3,neoversen2,demeter,neoversev2" + "cortexa34,cortexa35,cortexa53,cortexa57,cortexa72,cortexa73,thunderx,thunderxt88p1,thunderxt88,octeontx,octeontxt81,octeontxt83,thunderxt81,thunderxt83,ampere1,ampere1a,emag,xgene1,falkor,qdf24xx,exynosm1,phecda,thunderx2t99p1,vulcan,thunderx2t99,cortexa55,cortexa75,cortexa76,cortexa76ae,cortexa77,cortexa78,cortexa78ae,cortexa78c,cortexa65,cortexa65ae,cortexx1,cortexx1c,ares,neoversen1,neoversee1,octeontx2,octeontx2t98,octeontx2t96,octeontx2t93,octeontx2f95,octeontx2f95n,octeontx2f95mm,a64fx,tsv110,thunderx3t110,zeus,neoversev1,neoverse512tvb,saphira,cortexa57cortexa53,cortexa72cortexa53,cortexa73cortexa35,cortexa73cortexa53,cortexa75cortexa55,cortexa76cortexa55,cortexr82,cortexa510,cortexa520,cortexa710,cortexa715,cortexa720,cortexx2,cortexx3,neoversen2,demeter,neoversev2" (const (symbol_ref "((enum attr_tune) aarch64_tune)"))) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 2c870d3c34b587ffc721b1f18f99ecd66d4217be..62537d9d09e25f864c27534b7ac2ec467ea24789 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -20517,7 +20517,8 @@ performance of the code. Permissible values for this option are: @samp{cortex-a75.cortex-a55}, @samp{cortex-a76.cortex-a55}, @samp{cortex-r82}, @samp{cortex-x1}, @samp{cortex-x1c}, @samp{cortex-x2}, @samp{cortex-x3}, @samp{cortex-a510}, @samp{cortex-a520}, @samp{cortex-a710}, -@samp{cortex-a715}, @samp{ampere1}, @samp{ampere1a}, and @samp{native}. +@samp{cortex-a715}, @samp{cortex-a720}, @samp{ampere1}, @samp{ampere1a}, +and @samp{native}. The values @samp{cortex-a57.cortex-a53}, @samp{cortex-a72.cortex-a53}, @samp{cortex-a73.cortex-a35}, @samp{cortex-a73.cortex-a53},