From patchwork Wed Sep 13 14:19:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wilco Dijkstra X-Patchwork-Id: 75876 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 679CC3858D39 for ; Wed, 13 Sep 2023 14:20:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 679CC3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694614809; bh=cH2YmEESBFcgMJzBpCTJeCMmdV1LbIZb41v8E3gi4b0=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=ZmisK5kysEMh1bQQ1M7sE23EdcCFBKbEL7D5i+5PnH3gqO8lCrIdB7TKoWvYkM+qF suv2dUF09liMJo6oPyOvmp6ZOH2+U7b3SJ3oVHfiWxHenSJbrL5yIXnyDS8M4U1lPp CHKfq3l58vGVb1GVU2+13uplNlu2Ve0XGETcOf1E= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2057.outbound.protection.outlook.com [40.107.104.57]) by sourceware.org (Postfix) with ESMTPS id D41AF385842C for ; Wed, 13 Sep 2023 14:19:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D41AF385842C Received: from DUZPR01CA0090.eurprd01.prod.exchangelabs.com (2603:10a6:10:46a::8) by VE1PR08MB5744.eurprd08.prod.outlook.com (2603:10a6:800:1af::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.19; Wed, 13 Sep 2023 14:19:32 +0000 Received: from DBAEUR03FT019.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:46a:cafe::9b) by DUZPR01CA0090.outlook.office365.com (2603:10a6:10:46a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.19 via Frontend Transport; Wed, 13 Sep 2023 14:19:32 +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 DBAEUR03FT019.mail.protection.outlook.com (100.127.142.129) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.19 via Frontend Transport; Wed, 13 Sep 2023 14:19:32 +0000 Received: ("Tessian outbound 30c9f5e988c5:v175"); Wed, 13 Sep 2023 14:19:32 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 0ac208cc0f6fd1aa X-CR-MTA-TID: 64aa7808 Received: from 8ab2e8e823af.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 44D4CD01-A9D4-4BA3-A733-9F57B9C7612F.1; Wed, 13 Sep 2023 14:19:20 +0000 Received: from EUR02-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 8ab2e8e823af.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 13 Sep 2023 14:19:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iHNYiUANmpFcboVUbrW1utfi0qr08Kx0OBuCNreuFREWNm2GOWCvezceBil/ybSB/OcqbIeVb7BT1JHczESSBemAppnjHgOhl0TYhIVEO7VnFbviTCW4j/dVfe10XyHB1wC50G2fRN9cCDnsVhnMp4dQDanhny5t0lK3bGmrg7tr41e00UD/r9laCZ33nRPkAu3rzQY50ewhBExxnnjhjnjd3qX8e3UpWwU4kRegs+Sqx/mdPW/aKl64/rVRdH7WBeNpsm6bVuDTHKaLAOgjt15S3L70g2LvOZAEhhwkvWMRE/QgBNUEOLyl5MbDL8CQyuPATGI9LKQAjC8CiY+xcg== 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=cH2YmEESBFcgMJzBpCTJeCMmdV1LbIZb41v8E3gi4b0=; b=Yhu/fFjCfnpvCMU3stzz8hGfvkwGElZ5049u6OaMKyQ0YJZerKBstC4CASddfy4goLb8AN7EnKu60vG8wDf7MAcg3NrIAoq7peHLu9Bc/erm56W8I3vW4gkwwgOupWJMeuAMzbxrq7TKXq2NRQGteMKF4t+gUEyus8AknMkc4p6g6wjFAXWrjyYfBxJyLDYAapoBxM9GFtFhonlUg6YJzYG1nx8kn12QY8OeJHvvT5t+uUuTQYcmYHBoHXP3k868H7WWfA8aycN9WcebidCaM1wUxlHIllg6OSCyAyXrZJ0OyMicI9HFP5+n+FoZJQB0Zgnj9GJJsGcR1WFhSUXfdQ== 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 Received: from PAWPR08MB8982.eurprd08.prod.outlook.com (2603:10a6:102:33f::20) by DU0PR08MB7415.eurprd08.prod.outlook.com (2603:10a6:10:353::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.30; Wed, 13 Sep 2023 14:19:18 +0000 Received: from PAWPR08MB8982.eurprd08.prod.outlook.com ([fe80::ff3d:6e95:9971:a7e]) by PAWPR08MB8982.eurprd08.prod.outlook.com ([fe80::ff3d:6e95:9971:a7e%5]) with mapi id 15.20.6745.034; Wed, 13 Sep 2023 14:19:18 +0000 To: GCC Patches CC: Richard Sandiford , Kyrylo Tkachov Subject: [PATCH] AArch64: List official cores before codenames Thread-Topic: [PATCH] AArch64: List official cores before codenames Thread-Index: AQHZ5k0DXrR5BsAFYUWg21IPvZK4XA== Date: Wed, 13 Sep 2023 14:19:18 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: PAWPR08MB8982:EE_|DU0PR08MB7415:EE_|DBAEUR03FT019:EE_|VE1PR08MB5744:EE_ X-MS-Office365-Filtering-Correlation-Id: e866fb22-57c6-4ae8-d1d1-08dbb464731c 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: s3qlE5EdvIuPlNXaImQ6heDX7ON/Sx2HwwyQC1GS0//vhSDRXLIuKEzKgvd27eTQiuqLc+/8nJrHs1r9+5cvLO9b4TJfWNk7DdxTArBO3aTzmnotkKzpmPB45swVPqrKxppQ1ZjUENl+WwA8XKIAjrZaOLRLWPfLhZnj0HGNr9BuuLIfTzio5hIRGXQgx8Gifb5wLbTtxrRQBHfWA7e0ljHWAGMxDXYfdMu+N0EH5xtg3SO12aFXps+ngE/BPvt1dJXpBbSXXTnTOYjJYZmHthTRYZUg2w4qYwr8U2FSu9WDah5lGhpPxJTPQ9AzREgGiaPJbgVA/VdwqhY/ggUML6OFCcfgKXMM7VAleZFiPCcLjic7rsvjGoV+im5AGNo5BQB/dqHGGy3LKM+PJMR6URUdXGdEcgv9HB1krffy0C/c+0i0AyR5AcpR+L90RrtyWBdBmHIQmBqXWNfxz9LN3HpwXfQRcTVv+S5uuCHASGKAaEIDpV99Zj46cdEMUvsf9tSSDAOVUT7Muf9TxWnAMpLOmeUxLi9F//CVwquqRU5NYlK749keSmFzST1R6UTXNhOpr5TAhQ5WZidvDAKeJLTWAyu/WP7rhCFVTdJbjdJ/V+oZ5P1By7lpKhAiNVZs X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAWPR08MB8982.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(346002)(396003)(366004)(39860400002)(136003)(451199024)(186009)(1800799009)(5660300002)(122000001)(6506007)(7696005)(71200400001)(2906002)(86362001)(38070700005)(33656002)(55016003)(38100700002)(76116006)(9686003)(26005)(478600001)(83380400001)(66476007)(66946007)(91956017)(4326008)(66446008)(8676002)(8936002)(66556008)(64756008)(41300700001)(52536014)(6916009)(54906003)(316002); DIR:OUT; SFP:1101; MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB7415 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: DBAEUR03FT019.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: d7f1ce96-b128-4893-7dfd-08dbb4646b0c X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pKfPyRCS/wDKmECDgd3JN3GRXE+FWRB76I5TnMzuc5LCmjut8aXpN6K+WlU5mha+keMqQwc3GHEwSuFPzdYk6Jx1wf8QiqtiOMzWbEEK3eoeAji8opmC0YGIoUHXw7EgxpnonYJbR9JiLb2Fe7r/HMtmjIJwA8UYD5bIY+BPGIEQOeYwo3X9r6eLeuFwf4sNP8aVITW3NMoT44c6kVu2+RsakchR0jcscckAs4gnsS2Wbn/8wAxB7+96iZ6LfSoKVTMCimeBBQNskheSgPdVDGtbK18CypWA7c5fCP5zGeK/QVStbarF1LgZFarsgMchUA2y9ULnzM/JI82hmAtfEV00e2K5ULmyZ5wKsQF5HLKBH/4qdS6zF3Y4tJ9Ud/kKM5aTNPbYcVOsQGxR4haS6n+gC8GLsNZga4XWEPIo6qlCb9VQ3doBHVe2W2AivQBB7s1Ipk28bFvM511yG4lNYpm3thI8g8MW0erGmZgzbvxC8T7hzzz2B9pUpY9kyfoql+JRvJCrSi97EYWj8oJrRHnfe/sj4Wedhl9F57lb2SCs03vI2XdrxVUXdBc2rIge8ZtyszGGJOOzLiwm1YjovUxyKah6pe7RoPxFUSqvnaqF+CDF/xJCot4bxcUYXS+6rK9jvLzmP2ZcHe38htIoI3DeBbzkWMbjMK/9gn2WEuo7ufVI5WbP6kBLOox69tbJHLWqnaZijjIgs8sdw9ugAciN/nrJ7MZjesAhtk9qWP1ecDg/wSM3KDbbp05Ze7yP 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)(396003)(346002)(136003)(376002)(39860400002)(186009)(1800799009)(82310400011)(451199024)(40470700004)(36840700001)(46966006)(316002)(70206006)(70586007)(6916009)(54906003)(26005)(83380400001)(9686003)(7696005)(6506007)(82740400003)(81166007)(33656002)(55016003)(86362001)(36860700001)(47076005)(40480700001)(356005)(40460700003)(478600001)(336012)(2906002)(4326008)(8676002)(52536014)(41300700001)(8936002)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2023 14:19:32.4054 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e866fb22-57c6-4ae8-d1d1-08dbb464731c 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: DBAEUR03FT019.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5744 X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Wilco Dijkstra via Gcc-patches From: Wilco Dijkstra Reply-To: Wilco Dijkstra Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" List official cores first so that -cpu=native does not show a codename with -v or in errors/warnings. Passes regress, OK for commit? gcc/ChangeLog: * config/aarch64/aarch64-cores.def (neoverse-n1): Place before ares. (neoverse-v1): Place before zeus. (neoverse-v2): Place before demeter. * config/aarch64/aarch64-tune.md: Regenerate. diff --git a/gcc/config/aarch64/aarch64-cores.def b/gcc/config/aarch64/aarch64-cores.def index dbac497ef3aab410eb81db185b2e9532186888bb..3894f2afc27e71523e5a413fa45c144222082934 100644 --- a/gcc/config/aarch64/aarch64-cores.def +++ b/gcc/config/aarch64/aarch64-cores.def @@ -115,8 +115,8 @@ AARCH64_CORE("cortex-a65", cortexa65, cortexa53, V8_2A, (F16, RCPC, DOTPROD, S AARCH64_CORE("cortex-a65ae", cortexa65ae, cortexa53, V8_2A, (F16, RCPC, DOTPROD, SSBS), cortexa73, 0x41, 0xd43, -1) AARCH64_CORE("cortex-x1", cortexx1, cortexa57, V8_2A, (F16, RCPC, DOTPROD, SSBS, PROFILE), neoversen1, 0x41, 0xd44, -1) AARCH64_CORE("cortex-x1c", cortexx1c, cortexa57, V8_2A, (F16, RCPC, DOTPROD, SSBS, PROFILE, PAUTH), neoversen1, 0x41, 0xd4c, -1) -AARCH64_CORE("ares", ares, cortexa57, V8_2A, (F16, RCPC, DOTPROD, PROFILE), neoversen1, 0x41, 0xd0c, -1) AARCH64_CORE("neoverse-n1", neoversen1, cortexa57, V8_2A, (F16, RCPC, DOTPROD, PROFILE), neoversen1, 0x41, 0xd0c, -1) +AARCH64_CORE("ares", ares, cortexa57, V8_2A, (F16, RCPC, DOTPROD, PROFILE), neoversen1, 0x41, 0xd0c, -1) AARCH64_CORE("neoverse-e1", neoversee1, cortexa53, V8_2A, (F16, RCPC, DOTPROD, SSBS), cortexa73, 0x41, 0xd4a, -1) /* Cavium ('C') cores. */ @@ -143,8 +143,8 @@ AARCH64_CORE("thunderx3t110", thunderx3t110, thunderx3t110, V8_3A, (CRYPTO, S /* ARMv8.4-A Architecture Processors. */ /* Arm ('A') cores. */ -AARCH64_CORE("zeus", zeus, cortexa57, V8_4A, (SVE, I8MM, BF16, PROFILE, SSBS, RNG), neoversev1, 0x41, 0xd40, -1) AARCH64_CORE("neoverse-v1", neoversev1, cortexa57, V8_4A, (SVE, I8MM, BF16, PROFILE, SSBS, RNG), neoversev1, 0x41, 0xd40, -1) +AARCH64_CORE("zeus", zeus, cortexa57, V8_4A, (SVE, I8MM, BF16, PROFILE, SSBS, RNG), neoversev1, 0x41, 0xd40, -1) AARCH64_CORE("neoverse-512tvb", neoverse512tvb, cortexa57, V8_4A, (SVE, I8MM, BF16, PROFILE, SSBS, RNG), neoverse512tvb, INVALID_IMP, INVALID_CORE, -1) /* Qualcomm ('Q') cores. */ @@ -182,7 +182,7 @@ AARCH64_CORE("cortex-x3", cortexx3, cortexa57, V9A, (SVE2_BITPERM, MEMTAG, I8M AARCH64_CORE("neoverse-n2", neoversen2, cortexa57, V9A, (I8MM, BF16, SVE2_BITPERM, RNG, MEMTAG, PROFILE), neoversen2, 0x41, 0xd49, -1) -AARCH64_CORE("demeter", demeter, cortexa57, V9A, (I8MM, BF16, SVE2_BITPERM, RNG, MEMTAG, PROFILE), neoversev2, 0x41, 0xd4f, -1) AARCH64_CORE("neoverse-v2", neoversev2, cortexa57, V9A, (I8MM, BF16, SVE2_BITPERM, RNG, MEMTAG, PROFILE), neoversev2, 0x41, 0xd4f, -1) +AARCH64_CORE("demeter", demeter, cortexa57, V9A, (I8MM, BF16, SVE2_BITPERM, RNG, MEMTAG, PROFILE), neoversev2, 0x41, 0xd4f, -1) #undef AARCH64_CORE diff --git a/gcc/config/aarch64/aarch64-tune.md b/gcc/config/aarch64/aarch64-tune.md index 2170980dddb0d5d410a49631ad26ff2e346b39dd..69e53222257fa814e4733b05f7164bfa11e4aa04 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,neoversen1,ares,neoversee1,octeontx2,octeontx2t98,octeontx2t96,octeontx2t93,octeontx2f95,octeontx2f95n,octeontx2f95mm,a64fx,tsv110,thunderx3t110,neoversev1,zeus,neoverse512tvb,saphira,cortexa57cortexa53,cortexa72cortexa53,cortexa73cortexa35,cortexa73cortexa53,cortexa75cortexa55,cortexa76cortexa55,cortexr82,cortexa510,cortexa520,cortexa710,cortexa715,cortexx2,cortexx3,neoversen2,neoversev2,demeter" (const (symbol_ref "((enum attr_tune) aarch64_tune)")))