From patchwork Thu Oct 1 08:24:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Coplan X-Patchwork-Id: 1374924 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: 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=GonDtQqn; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C25n05GNGz9sSC for ; Thu, 1 Oct 2020 18:26:11 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 77F14398403B; Thu, 1 Oct 2020 08:26:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 77F14398403B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1601540768; bh=pMwbCtCDkoQ6rNIkbm2OxiMOdh19qo+Wj4h8Srn/lCI=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=GonDtQqnAlWOMJ5q6NZrBE2j6Ysuilp0D7O1VjXAky+6uOAtekoNJbAqcoAK3ZNQ6 QWUU2HbFG/WDTyR3VS1WNxXtjxi0NlMGdixO4OP/ZkIwUt3rP3aRNKQ7ndF3ydtB5X OLTb6DiWEjinxqJSwl5dK6YnrZsgV0xln/NgP4gM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70052.outbound.protection.outlook.com [40.107.7.52]) by sourceware.org (Postfix) with ESMTPS id 489983851C19 for ; Thu, 1 Oct 2020 08:25:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 489983851C19 Received: from AM0PR10CA0039.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:150::19) by AM6PR08MB4327.eurprd08.prod.outlook.com (2603:10a6:20b:ba::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.35; Thu, 1 Oct 2020 08:25:19 +0000 Received: from VE1EUR03FT018.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:150:cafe::fe) by AM0PR10CA0039.outlook.office365.com (2603:10a6:20b:150::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.34 via Frontend Transport; Thu, 1 Oct 2020 08:25:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; gcc.gnu.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;gcc.gnu.org; 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; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT018.mail.protection.outlook.com (10.152.18.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.34 via Frontend Transport; Thu, 1 Oct 2020 08:25:18 +0000 Received: ("Tessian outbound 7161e0c2a082:v64"); Thu, 01 Oct 2020 08:25:18 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: b13c84db42b68002 X-CR-MTA-TID: 64aa7808 Received: from c2ff2f47cc2b.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 25FDDAD1-5785-44D3-85D1-047F33ED1053.1; Thu, 01 Oct 2020 08:25:01 +0000 Received: from EUR02-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c2ff2f47cc2b.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 01 Oct 2020 08:25:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wl+GkqDjxXgsXdEAfPHjLfx8gRLWUyANQ5/ue6ewLQi7BcAZHdvdYHlQABZUsIm60kSwitWdJPUBwM0d3TfCG5QwcjaKOyeMGl/sG7V3Fv+kxaiVIu3gVjoefZpV6Tj8+SCSBpS7o2Cx1C6ZK1Waiq4/c8ih7CViy+7rQnTqAuYf9v+kwyAiVQvSJE+5X3mckTHoTwP6nlyvT0eGVNbFtiNtQJ75uFhjqUTLGz3mozXJEM6vy3l89cfRooucY7TXcDt/bmhbSdm1RvtoKfm6YVznzqLVDT5+/eBhJv0P2z+4llGCQnvwhFgxIk2XWvfWR9UdrpanTUs8ZWh0vtdkoA== 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-SenderADCheck; bh=pMwbCtCDkoQ6rNIkbm2OxiMOdh19qo+Wj4h8Srn/lCI=; b=cJlM4qJaJX0gRtksF5PigssJ25X7RT9F0FxjzwGHTHUaeAfVpIyZsf0LqJHyO4+ROhS6nCwW2Z88dvFEGGrquN9eCpfObS4S/5PPV1ZFpmsmyowsc0aoF7FqLu3rq9kKDZ6VYUftDWiH/hTS+zGuy3Nu7wQGspP050RAKZopfSjoDi3m3KwN3RKy6Ddf04jyEE+7k7BoxAeDzwmAH5ddThfkpFGgAWzlNFe9JgiO3FTRtDNk/UwD1UTOmoZ7RaY/F44y4gYP+op3C0VtHY6wIbPXr6H4spRC6BmEg4p66dXqnavgH5wZdG6AYISfOezBSqPu+C2/3aV1N4O0ANQxiQ== 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: gcc.gnu.org; dkim=none (message not signed) header.d=none;gcc.gnu.org; dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB4029.eurprd08.prod.outlook.com (2603:10a6:803:ec::14) by VI1PR08MB4464.eurprd08.prod.outlook.com (2603:10a6:803:fc::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.32; Thu, 1 Oct 2020 08:24:59 +0000 Received: from VI1PR08MB4029.eurprd08.prod.outlook.com ([fe80::c194:c7c6:f09e:6f3d]) by VI1PR08MB4029.eurprd08.prod.outlook.com ([fe80::c194:c7c6:f09e:6f3d%7]) with mapi id 15.20.3433.037; Thu, 1 Oct 2020 08:24:59 +0000 Date: Thu, 1 Oct 2020 09:24:57 +0100 To: gcc-patches@gcc.gnu.org Subject: [PATCH][GCC 9] aarch64: Add support for Neoverse N2 CPU Message-ID: <20201001082456.y73jv44sn6txqoea@arm.com> Content-Disposition: inline User-Agent: NeoMutt/20171215 X-Originating-IP: [217.140.106.52] X-ClientProxiedBy: DB6P191CA0003.EURP191.PROD.OUTLOOK.COM (2603:10a6:6:28::13) To VI1PR08MB4029.eurprd08.prod.outlook.com (2603:10a6:803:ec::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from arm.com (217.140.106.52) by DB6P191CA0003.EURP191.PROD.OUTLOOK.COM (2603:10a6:6:28::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.34 via Frontend Transport; Thu, 1 Oct 2020 08:24:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 27f36521-cbd5-4416-ce25-08d865e3883e X-MS-TrafficTypeDiagnostic: VI1PR08MB4464:|AM6PR08MB4327: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:1265;OLM:1265; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: nBKX1GdAzlIWKKmV265hSbL7+9e2uPzfEmh86H7PrvSPqW180lvm+HKCYWwcwmdiODdD5ncupiz81d22Rt26qmv5UbXpPUPOOvcraXmXd4jh0Ktms6BYv7f6CwFJe4e+r9dbehSFbh1JEAumMAkhE0fy59u9U7+U2+NDbNZCmeId1+Z/GWzZevremN4xvlLH1CHJuGoQXJgDCA7wpfZtAHmzYNkwKVpyOrjkTgspsc+UapJajkHOUw/UQNBFIRT7y5Sg5FDHw7AYQxFCc/oDAAul0airv5vxv9xo0hYtmImt32VWaOb7SPV2bYF0Ebq5bKM7YQE9EbRfTmmEmETOsYcMh06p67f3zt54PUZOKXUHt0wKJ+WzND6Mj6N2rzal X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB4029.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(376002)(366004)(346002)(396003)(39840400004)(44832011)(8886007)(186003)(54906003)(2906002)(26005)(16526019)(52116002)(7696005)(44144004)(1076003)(33964004)(316002)(2616005)(478600001)(956004)(66616009)(55016002)(21480400003)(6916009)(86362001)(235185007)(5660300002)(8936002)(66946007)(8676002)(36756003)(4326008)(66476007)(66556008)(2700100001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: XAWdef/JPFoIkbmu2itdyAmxreV4B5nlxsCXJOcvVecAfQvNrOoTMu3gU928FP8D2+ViUHvp0/5z0Er4bJ1tkGdqGU4PXqAg7K8SirVyHGwr74CY/+ZYewpxPK60tDJkk0stwuvMhYXPHtpQivPBGkmQwJL7NwFh3ZpoTbZLN1JoE13KnN7pm5SRKnIrEfTrdrYi2ul23XWzwKGk79l0Ytc7E4dH4V2IA51pqoURQgHV9XkMgqGmMgf3kv+DP7arYu94AcC+D3qXUgbTnsZbT2bwed54Uf/ab8PePnB27pm/XCA+DetvAfllWaQFyp2dWNZJkX62Dr7npjLajQc2q7ZhbcQFas+ERwwqVco75ZtpEdZnwqMTxN7OpCh5O46tgbTI0wwhlEGnYGEHCUgE6b1eG972UvIzaMCjFoScxfOXyg7wYAk74yQ1FZvNvHMQZlGWfGMmc7K43eTFwCVEtmfsm7ok8PdMxZvFpPqJCasOm6VBQN3+LK0hT/I5gFlDGJInWYiKDeBIdgW1Ne2snXDAghH3OL3y/Sae5Tl/qnouYf2fKfpfAjEF+2t5kfaRTaqNQVnozCqYmvemv8GIv/BBBtolbZ9ORjXjECU9FQRDRezfQtHVJD+6CXFnc2sCvVxl8cusBrwZwvHx04r7JA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB4464 Original-Authentication-Results: gcc.gnu.org; dkim=none (message not signed) header.d=none;gcc.gnu.org; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT018.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 9a96389f-a4d8-439d-1e30-08d865e37c73 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hebUZ59Pkp/0WdxR25iGZgmf2dC7WoM+kVr4DOTFrtWVmRyBqR4t4ukVNukLn6sIZ6WGD2b4aICvfQdqBOBvv28+mLolpS5614uSl5tWrp7mfXpxhdY7nfi7S3fN1m+rnEBL99/+hQa8hl9ps3LMnQuSFHHU9jASy/AtoUl7PJtCBAeCeclUQMKPYsFS9U0/6OQBdhuxqhrtiK3OiRMPtD6XCx/EwocBQ1Jjkss35b3LUVCShlJhtMBsGdslXTpstjZBmHlzCywojnfrmscjztHyikc9n1L7XO0YIgzv3NOnaNz/XdECk2wdmZANtijeo+f59C4EQD0QYlMTddl4g9vSDUselofBxuqJEfSD7pdAQoENn9qWr2pVvn5VcsRyk/ZM1sOJefQCA2lg9mMWx4Q4Ajn84OlnWW0A4AZ7J0k= 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:(4636009)(39840400004)(376002)(346002)(136003)(396003)(46966005)(55016002)(16526019)(47076004)(186003)(70586007)(356005)(478600001)(26005)(81166007)(44144004)(33964004)(7696005)(316002)(66616009)(1076003)(70206006)(6916009)(54906003)(36906005)(2906002)(4326008)(44832011)(21480400003)(956004)(2616005)(36756003)(86362001)(8936002)(336012)(5660300002)(8886007)(235185007)(8676002)(82310400003)(2700100001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2020 08:25:18.9644 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 27f36521-cbd5-4416-ce25-08d865e3883e 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: VE1EUR03FT018.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4327 X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Alex Coplan via Gcc-patches From: Alex Coplan Reply-To: Alex Coplan Cc: Richard Earnshaw Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" This patch backports the AArch64 support for Arm's Neoverse N2 CPU to GCC 9. Testing: * Bootstrapped and regtested on aarch64-none-linux-gnu. OK for GCC 9 branch? Thanks, Alex --- gcc/ChangeLog: * config/aarch64/aarch64-cores.def: Add Neoverse N2. * config/aarch64/aarch64-tune.md: Regenerate. * doc/invoke.texi: Document AArch64 support for Neoverse N2. diff --git a/gcc/config/aarch64/aarch64-cores.def b/gcc/config/aarch64/aarch64-cores.def index 48f1ac3ecf1..99198e1e538 100644 --- a/gcc/config/aarch64/aarch64-cores.def +++ b/gcc/config/aarch64/aarch64-cores.def @@ -120,6 +120,9 @@ AARCH64_CORE("neoverse-v1", neoversev1, cortexa57, 8_4A, AARCH64_FL_FOR_ARCH8_4 /* Qualcomm ('Q') cores. */ AARCH64_CORE("saphira", saphira, saphira, 8_4A, AARCH64_FL_FOR_ARCH8_4 | AARCH64_FL_CRYPTO | AARCH64_FL_RCPC, saphira, 0x51, 0xC01, -1) +/* Armv8.5-A Architecture Processors. */ +AARCH64_CORE("neoverse-n2", neoversen2, cortexa57, 8_5A, AARCH64_FL_FOR_ARCH8_5 | AARCH64_FL_F16 | AARCH64_FL_SVE | AARCH64_FL_RNG | AARCH64_FL_MEMTAG, neoversen1, 0x41, 0xd49, -1) + /* ARMv8-A big.LITTLE implementations. */ AARCH64_CORE("cortex-a57.cortex-a53", cortexa57cortexa53, cortexa53, 8A, AARCH64_FL_FOR_ARCH8 | AARCH64_FL_CRC, cortexa57, 0x41, AARCH64_BIG_LITTLE (0xd07, 0xd03), -1) diff --git a/gcc/config/aarch64/aarch64-tune.md b/gcc/config/aarch64/aarch64-tune.md index f5d62de5940..0a73e105e08 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" - "cortexa35,cortexa53,cortexa57,cortexa72,cortexa73,thunderx,thunderxt88p1,thunderxt88,octeontx,octeontxt81,octeontxt83,thunderxt81,thunderxt83,emag,xgene1,falkor,qdf24xx,exynosm1,phecda,thunderx2t99p1,vulcan,thunderx2t99,cortexa55,cortexa75,cortexa76,ares,neoversen1,neoversee1,a64fx,tsv110,zeus,neoversev1,saphira,cortexa57cortexa53,cortexa72cortexa53,cortexa73cortexa35,cortexa73cortexa53,cortexa75cortexa55,cortexa76cortexa55" + "cortexa35,cortexa53,cortexa57,cortexa72,cortexa73,thunderx,thunderxt88p1,thunderxt88,octeontx,octeontxt81,octeontxt83,thunderxt81,thunderxt83,emag,xgene1,falkor,qdf24xx,exynosm1,phecda,thunderx2t99p1,vulcan,thunderx2t99,cortexa55,cortexa75,cortexa76,ares,neoversen1,neoversee1,a64fx,tsv110,zeus,neoversev1,saphira,neoversen2,cortexa57cortexa53,cortexa72cortexa53,cortexa73cortexa35,cortexa73cortexa53,cortexa75cortexa55,cortexa76cortexa55" (const (symbol_ref "((enum attr_tune) aarch64_tune)"))) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index c85e31fb02c..e4cc83ba5cb 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -15851,9 +15851,9 @@ performance of the code. Permissible values for this option are: @samp{generic}, @samp{cortex-a35}, @samp{cortex-a53}, @samp{cortex-a55}, @samp{cortex-a57}, @samp{cortex-a72}, @samp{cortex-a73}, @samp{cortex-a75}, @samp{cortex-a76}, @samp{ares}, @samp{exynos-m1}, @samp{emag}, @samp{falkor}, -@samp{neoverse-e1},@samp{neoverse-n1},@samp{neoverse-v1},@samp{qdf24xx}, -@samp{saphira}, @samp{phecda}, @samp{xgene1}, @samp{vulcan}, @samp{octeontx}, -@samp{octeontx81}, @samp{octeontx83}, +@samp{neoverse-e1}, @samp{neoverse-n1}, @samp{neoverse-n2}, @samp{neoverse-v1}, +@samp{qdf24xx}, @samp{saphira}, @samp{phecda}, @samp{xgene1}, @samp{vulcan}, +@samp{octeontx}, @samp{octeontx81}, @samp{octeontx83}, @samp{a64fx}, @samp{thunderx}, @samp{thunderxt88}, @samp{thunderxt88p1}, @samp{thunderxt81}, @samp{tsv110},