From patchwork Tue Aug 15 15:55:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Ball X-Patchwork-Id: 1821431 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=UT5IbBMH; dkim-atps=neutral Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RQG8y3HnKz1yf9 for ; Wed, 16 Aug 2023 01:56:33 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3EBB8385B800 for ; Tue, 15 Aug 2023 15:56:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3EBB8385B800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692114991; bh=VLskXzr13NuelC4/lcfyPFgRWe4KEHeD9x6nWJDsG0k=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=UT5IbBMHYI+KQzeAjTsJZqF1DytgJ5PGRULlHf/SkQT7QoEh2K62QVqwF74ZUqkK3 QyFNEX6iC8zGPMSD1QBjCKusaicvwYrf8eyyxR+EYNj619BtrDG/p8LvOB3mYcUwbN KDRg8z/PmmDFQFNCevzEoILl18ZhJ8Q0j8jKqQ/I= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2056.outbound.protection.outlook.com [40.107.21.56]) by sourceware.org (Postfix) with ESMTPS id 94C973857357 for ; Tue, 15 Aug 2023 15:56:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 94C973857357 Received: from DB7PR05CA0055.eurprd05.prod.outlook.com (2603:10a6:10:2e::32) by AS8PR08MB9194.eurprd08.prod.outlook.com (2603:10a6:20b:57e::14) 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:56:03 +0000 Received: from DBAEUR03FT003.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2e:cafe::20) by DB7PR05CA0055.outlook.office365.com (2603:10a6:10:2e::32) 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:56:03 +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 DBAEUR03FT003.mail.protection.outlook.com (100.127.142.89) 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:56:03 +0000 Received: ("Tessian outbound 0b7d6027328f:v175"); Tue, 15 Aug 2023 15:56:03 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 09a25b5b4aaaa2d3 X-CR-MTA-TID: 64aa7808 Received: from f4844c195881.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E1893829-1B00-4350-AF23-91BFBEF5609D.1; Tue, 15 Aug 2023 15:55:57 +0000 Received: from EUR02-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f4844c195881.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 15 Aug 2023 15:55:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A0zC8QjwmrP7KalI5UmNPs1JUWcQ5Rm0aJSxXnswDWYkW2BxqukPIvum070C6TZjs9RBUu/dCUHn/+zwA713T02wX1ecmP0QBTickxQD+AzkfJdzeMVK66z+Ume4wxB/xJvzFyNTD3PziEnVJfZcwPe+znEKSb9qvj1w7MTjFEJZrxhzBRkbam2xHWFa3hCoeSmwGaMeYkjH47OHloDcQ++bWtGxQzaLgvPwXzABKu3YCF/P/4GLIipdjzxzK0Wwptl5q1Z/nRaQCICJCqO3hE+5dyI7Q4oRwmnPSy0KLO7M/lCDzvzLdpxvoHAU9QBrKglpVagwgDkP0gV2LznfnA== 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=VLskXzr13NuelC4/lcfyPFgRWe4KEHeD9x6nWJDsG0k=; b=PElvZWPp134uS/T+Gf6A0Apvcfya/TQBvvo/wsSzWGL6irqi859Nu4RPnKQ85YbzIaBbUFxoOJIHNhdOeig4if6DEnqa6ecVYuBXMxl86252ZVH7KnTxTACKHdwQFniVPLiOS+6MJV9DsmV4EpR5vLvDeNtG0QXkZ79VF/wTS3bDNTOvHNSctMTbs/ClQD8CmDWPv/SXDHfpXMJlwvIt4RbmpEozw6u4DfYBrSUZV6x+Kn5bxs/XM1pVqBoOWsWpgsqw6t97pEd4v9y3NxLB/kosRj/kaJ0sT1ELDAjP+FgsgtVY1DCahBjcSMkUhHaOs/bz8wOFjUKhuN8ZDHBgMA== 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 AS8PR08MB8491.eurprd08.prod.outlook.com (2603:10a6:20b:566::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.20; Tue, 15 Aug 2023 15:55:53 +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:55:52 +0000 Message-ID: Date: Tue, 15 Aug 2023 16:55:20 +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 v2][GCC] aarch64: Add support for Cortex-A720 CPU X-ClientProxiedBy: LO4P302CA0026.GBRP302.PROD.OUTLOOK.COM (2603:10a6:600:2c1::18) To DB9PR08MB6957.eurprd08.prod.outlook.com (2603:10a6:10:2bc::10) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR08MB6957:EE_|AS8PR08MB8491:EE_|DBAEUR03FT003:EE_|AS8PR08MB9194:EE_ X-MS-Office365-Filtering-Correlation-Id: 6103e345-f7d7-4dbc-2e19-08db9da82101 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: KFUPb31csYSgveGqdyNN6J2nXU+jQ6aIiuKgqke2IIrUvqcR4/wG98dKdSL/wXVeog+LhJ7cC9cb8Pf/Dn/kjH7EbbzT6zbhwbcmRg/EmUxUDS6ZLtrKoJtrO9/L0nzWqFxddo0pURjXo5UoGe5ZoIlXV8bkylDUoGv8hORCRM6qvXcR8GKOo2hYD8UBWPr7MAX7d3EtcMzNci2R4r6iNVqbTWFrhb+5mr4Qg9Z8mPgeTp5UgdWTHFH2qsODfreksSZbyiDxnKTM5K5BEBENIUaDQ5GvjPY4NqlReKc1dEeh7J+kCY0d22JaRIQgi90bDtp+XvQMeykmwOjs5cUlPliMA85UAMZhXkL4iZE/RaGQyKkXcqg79hhVI0plOtmD56oJLMqRpZ6DrOkULm9eIdUGMDGFcY1Gtf2G4RfS2WOMpbIU/AtAJzJK5OqFIuJK74b0jZVSES0jTLnU156DiNBv5X1Zo/J+YtxHcpuJH6dnV0i5r4IR+76+CpmG5UGt+SrZ17LpTYq5lgx+DUwPBW1JiaUqSVELCKNZkYSYWG+hqBMkcV+zc6lS87DvMZCITSrOLN/bP7/HBX/P3JJWHgwsJOz1PzmyE2KNESerQhoVOEefAliC+zi9pI+8Ra1P8zEBEaGaFK/GLngt0rV0Tw== 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)(396003)(346002)(39860400002)(376002)(366004)(451199024)(1800799009)(186009)(31696002)(86362001)(316002)(5660300002)(31686004)(26005)(6636002)(66476007)(478600001)(235185007)(66946007)(2616005)(6506007)(66556008)(8936002)(8676002)(41300700001)(38100700002)(110136005)(44832011)(33964004)(6512007)(6666004)(2906002)(6486002)(36756003)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB8491 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: DBAEUR03FT003.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: ccc4380c-c94f-4757-e80d-08db9da81984 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: f69/LLRB+do1LEzAvfnXWnCO6lpAbU6mmILiRy8FsiA50AWLGM0HZ8DMQqxWwRxh/GKMcLWoJxLoYKz23ida7vlpmoL5M0kPbwTHOLKSr+0bXjPzQRfSH89cWrmICle8r1s3oGLKqq3XZMobx/us/O6nEWfXdl2xGrD4/fBdbFgbi/IRUWDLVkYORLcnuFukiUng4GjZOfGtD/XNn+VKg5SapPsZ5EMxdzebgpdDglg+N/s1JlWlNmxivRXXbCLSvrOPlnY0H5v1jcVkANxl3V/TUAqi2lj+qZ+8WB2NS6GjifP+Zt2/LlH5HSMeN60m/ETRhRWnUxvG4y++oCq8veNJzgDerAtBQu+HIV1Ft8o8zfYNgl/0JjSMBX4a0oaIrILklQ913C+xy7vfxSpOgjEtX3ifxwzv2me33m7wt8xhwiMVAVHTxrTOANpst9bcn92hS47gcCjlOFzzvHz84BQbgHgRar3M/O+hY+R0LtrIYO3UdeFhDfD9zhpMM8AikiymEPHCwbN0uw6YJ2KFV/EiRfhqkzdpFp0oO6FYoh+JYiDPSvCBmQH4DjVy3eObFmgYApewNlubANB9hlliKUsLO4aZhd71U7r0WBHBS/tHZQRn4mVbm1+LMR/iXassJc4Mw6yn7Eu5otNxIylb8qpY1rV9FmjembTIxslv50TNjW575q1Cr1k76sE6+r2r4Mzu2LSpi51QA2WKWAFF7SM+sHcJeJtbAJH4nlZDJf6vHw8i7uW5x1ZZCSThJl3wx6eri342o/CnINM/rvek8w== 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)(346002)(396003)(39860400002)(136003)(376002)(451199024)(1800799009)(186009)(82310400011)(36840700001)(40470700004)(46966006)(36860700001)(31686004)(81166007)(8936002)(40460700003)(6486002)(44832011)(26005)(6506007)(2906002)(6636002)(316002)(2616005)(47076005)(82740400003)(8676002)(41300700001)(33964004)(478600001)(336012)(6666004)(6512007)(36756003)(40480700001)(110136005)(70206006)(70586007)(235185007)(5660300002)(31696002)(86362001)(356005)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2023 15:56:03.6692 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6103e345-f7d7-4dbc-2e19-08db9da82101 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: DBAEUR03FT003.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9194 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+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" v2: Add missing PROFILE feature flag. 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..73976e9a4c5e4f0b5c04bc7974e2006ddfd02fff 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, PROFILE), 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},