From patchwork Tue Sep 29 10:18:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Coplan X-Patchwork-Id: 1373263 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=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=RvJs5Blx; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=RvJs5Blx; dkim-atps=neutral Received: from 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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C0wMM4Gppz9s1t for ; Tue, 29 Sep 2020 20:18:23 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C4F573987428; Tue, 29 Sep 2020 10:18:21 +0000 (GMT) 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 C39EB3858C27 for ; Tue, 29 Sep 2020 10:18:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C39EB3858C27 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Alex.Coplan@arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NJyrE4svvqS2vdRrrxZtJTkPC4Y86LGTKVPZxOWf2s0=; b=RvJs5BlxaMTsS+d7XGYGLFPSbyrW/g/+y0XTrSchZXtK0asyS/vPgzAuP8mlTT3419OLqlXb/7X8xNypLMNK33//Sdodi5bBITkm2qw1lr2vrOIRZBAehVL0xpcgVYmtzK0rKX4kIsz6C4nZtXtk9hRBukZf1wPl6ys6CS8wKaQ= Received: from DB6PR0201CA0010.eurprd02.prod.outlook.com (2603:10a6:4:3f::20) by DB7PR08MB3596.eurprd08.prod.outlook.com (2603:10a6:10:4a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.20; Tue, 29 Sep 2020 10:18:16 +0000 Received: from DB5EUR03FT008.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:3f:cafe::10) by DB6PR0201CA0010.outlook.office365.com (2603:10a6:4:3f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.20 via Frontend Transport; Tue, 29 Sep 2020 10:18:16 +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=bestguesspass 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 DB5EUR03FT008.mail.protection.outlook.com (10.152.20.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.21 via Frontend Transport; Tue, 29 Sep 2020 10:18:16 +0000 Received: ("Tessian outbound 7fc8f57bdedc:v64"); Tue, 29 Sep 2020 10:18:16 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: c62d79ce11e04b96 X-CR-MTA-TID: 64aa7808 Received: from 5b9bd491a59d.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 2DF91E79-C17E-44BD-A8F4-96E79DC7F4AA.1; Tue, 29 Sep 2020 10:18:10 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 5b9bd491a59d.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 29 Sep 2020 10:18:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nkfed6M4C/SJbq1Qf0nUth4Z5zdLemdOSHCXrjjo410OZSZwZQOe1zcbf5ev0AxSuVhJjLwtSLoogbY69fezpj0ZcqZMCHP9atz1KtMMiDV4I1eK9KGE6ccAKlHzM1MZp7Vp4n/CSnlAPv/AKeQaPUYuHJQ1KmIAnjzNaL5tJnnjUwwOJQ/k+bJJKBkIDaikHCAm3nO/ZcdgQEJq2Xxue9UV4f66zXDu+mOBP1386786lW86psQpslA4hmDKSbxu/rVebvhsGkcgR406WVrb3QuLRbho61jmIKIbLh2qNUhxa0telWq3hG7BUd+U+0XsTN/A2L07BVykl+INP+fLGQ== 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=NJyrE4svvqS2vdRrrxZtJTkPC4Y86LGTKVPZxOWf2s0=; b=hp5D14XZoSPlvvsFuIwrxqeHGTkhAYn6Q4iq+cGyhNNMoApgyKZ23oT0YKJmUlyir9i5xoUdCsqEX61ScqJMfuf8heZeyvyMvAU/htUMC14Wm+l7XXqH4PpNL+1A9vn8Dm8pJsiQLOaJUURxyDEUwm7t8zlBX0auu5cA/d1TGG4roEnkCo+FLkl0tqODtrLAWV83HOpBv35QXaLzGzCa8/5L2ubA4vpoWn/o9kpxhBZbrEx6ccynPLGbB0Q8RO27QrsRYhJ3Lhnz3eunsoEkFZam8UsgXjwbtoQBq1lLnJpRhf+254gW8YY2LHl8fZrlB/L4HASPD0DkjLx5VOg3Sg== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NJyrE4svvqS2vdRrrxZtJTkPC4Y86LGTKVPZxOWf2s0=; b=RvJs5BlxaMTsS+d7XGYGLFPSbyrW/g/+y0XTrSchZXtK0asyS/vPgzAuP8mlTT3419OLqlXb/7X8xNypLMNK33//Sdodi5bBITkm2qw1lr2vrOIRZBAehVL0xpcgVYmtzK0rKX4kIsz6C4nZtXtk9hRBukZf1wPl6ys6CS8wKaQ= 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 VI1PR08MB4607.eurprd08.prod.outlook.com (2603:10a6:803:bf::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.25; Tue, 29 Sep 2020 10:18:08 +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.3412.029; Tue, 29 Sep 2020 10:18:08 +0000 Date: Tue, 29 Sep 2020 11:18:05 +0100 From: Alex Coplan To: gcc-patches@gcc.gnu.org Subject: [PATCH][GCC 9] arm: Add support for Neoverse V1 CPU Message-ID: <20200929101805.uvymhzvmodopic7o@arm.com> Content-Disposition: inline User-Agent: NeoMutt/20171215 X-ClientProxiedBy: LO2P123CA0107.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:139::22) 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 LO2P123CA0107.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:139::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.26 via Frontend Transport; Tue, 29 Sep 2020 10:18:07 +0000 X-Originating-IP: [217.140.106.52] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3c494f82-9767-4916-1ef4-08d86460fb12 X-MS-TrafficTypeDiagnostic: VI1PR08MB4607:|DB7PR08MB3596: X-LD-Processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:4303;OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: OuFgRsDEeryhcsn10faNVIyma+IpInDX4FBFyuOGkeA+xSlEQJ+CQMrV/wOat94AEZxyBmI0qix9M3slnaqLycXrJK5l8vhg065DyKSJC97LP6Hzf3EXFBKGdaft1RsZH3HbKsZR6uXHqbJTIQvquYyptLARdrNwKuCGs03Ycj1yrRqdFSlaPzUvYg+FJIa0byAU3IP0TwDMQDcwMRGaOX4pwR8TDkoAutXlCnSORnYVtJ9X0C5JflNMGN9uJZjmwPFbsbYV7TKsl78RtrTkC0IT7mhQ5D1mW/LYHmpTTJWzXYsbcLN3MQjZM/ltTW62i9qzqZmOe7C5ExZXZTYaTxYXX0KHpltomngWWUf4oNT5LzW6wM62n3MTHBFF0J1qxreY0ws2JBu72lBkimGY2GV+ZF/kWA2dtfer/ufTCIg= 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)(396003)(366004)(376002)(136003)(39860400002)(346002)(316002)(478600001)(54906003)(44832011)(86362001)(5660300002)(66616009)(66476007)(66556008)(235185007)(66946007)(2906002)(8886007)(1076003)(6916009)(8676002)(4326008)(8936002)(2616005)(956004)(26005)(44144004)(36756003)(186003)(16526019)(52116002)(7696005)(33964004)(55016002)(21480400003)(2700100001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: cb8qPQ+mvEfgSa+V0AsAvA2uacHv7NM0WWprdVigeP0zmE/tZazcJgZnsuoLhsX0GsTp2BVSkOSymGJHgCFVQ5gGG8V2pS+49rxU+j0EDcN92mh4iQxFlo7FMz6F6s389XScluq2yGzQCWhuOjR7Xb+M1Ds308C6AnPe+KCJNCmuwAS+GbGFZP2YL+DflZexzUVX8y7XWkiUErKepf9eCrsLIB2/rKcqLE3kIEBs4gE99wkcvJumDskHGtdIwrjQcoSTK6fsTu5/vbMAyeZ5DGiNkZeNNPHSVLP1nv55zKGfDWRUhNZsXsGnqpKdPO9WpgAicfUtE51bUcgEKf70Yv/ibJ4MmHSVKAd4ENtlRLycFbqgvmYOue0/JZ6pa4zLTTRU2rywdupKnmqkePtCc33dXicJfYDW+2hRihrNyCdfqVI8zKoyoUfZy10uQt28lYDmJTDj49arynwKj9owky0UXY3ibnhJ+q+uB8EURJSyXwqScPndDyyhS/pjknbnzCI3xbP1NoaAekUV3cXlpejVCQ2gfFgi/yqSGX4SPK89T0VZSkMtSn6yr9pNjU+gHAhirKcdvPkBuY5Zap2Z6/4HC1fHlD5EShGQ28feCc/0gwrJyK3Cob/oKKOQR9/VgQANGPcc5XZonqru0MXX6Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB4607 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: DB5EUR03FT008.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 4d649f77-012f-4de3-602c-08d86460f5e9 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mlw9lgYulDvKyaItm1rB1Ui4CAp6XJ3IUcX47RATN8eMV+PxjVgxEIwBtfUjPpWzXpVy38+c8FKUjJQU6+irtcrlRQlhyDH575uljjri/S+vMBEEgVNo7TbLGuZsIiUl3pSbp72KQkKSfChvymLVVoUVZ7phjtmkBKysb4nW07ocSVcQPudHDGleskgu/XpdLSC0c3fFfCDGI7owxWuu4DPufT9ozlIz9gLqJA2Qr16s9HY8QZfjo/uysMjxFPrX6nGo4bCjeMzo61GWaOLyavnRbZAHZ+MhPsD+dSG7IodPeBpAkkowvS6HPekw8iD7tz3ORE9cXD6oXS09WT9go5LJFq2hAmjp4la68EnhUP2/HPpoGREvv5Rj9ngeACORk4WseoD2WUZjEIBdv3XK8HBLqStzRIroDmQSIAu/LW/v9SsMTNda6NFzq3awlkQUWnGTf+QONt68RJkYIrPZGJPkMBL//Ux3rdUerEllWNU= 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)(346002)(39860400002)(376002)(396003)(136003)(46966005)(4326008)(356005)(316002)(16526019)(186003)(5660300002)(55016002)(26005)(82310400003)(235185007)(1076003)(33964004)(70206006)(70586007)(36756003)(44144004)(66616009)(86362001)(8676002)(8936002)(54906003)(81166007)(7696005)(336012)(2906002)(478600001)(956004)(82740400003)(8886007)(2616005)(44832011)(47076004)(6916009)(21480400003)(2700100001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2020 10:18:16.4752 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3c494f82-9767-4916-1ef4-08d86460fb12 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: DB5EUR03FT008.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3596 X-Spam-Status: No, score=-14.5 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: , Cc: Richard Earnshaw , Ramana Radhakrishnan Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Hello, This patch backports the AArch32 support for Arm's Neoverse V1 CPU to GCC 9. Testing: * Bootstrapped and regtested on arm-none-linux-gnueabihf. OK for GCC 9 branch? Thanks, Alex --- gcc/ChangeLog: * config/arm/arm-cpus.in (neoverse-v1): New. * config/arm/arm-tables.opt: Regenerate. * config/arm/arm-tune.md: Regenerate. * doc/invoke.texi: Document AArch32 support for Neoverse V1. diff --git a/gcc/config/arm/arm-cpus.in b/gcc/config/arm/arm-cpus.in index 3a55f6ac6d2..747767ab386 100644 --- a/gcc/config/arm/arm-cpus.in +++ b/gcc/config/arm/arm-cpus.in @@ -1362,6 +1362,16 @@ begin cpu cortex-a76.cortex-a55 costs cortex_a57 end cpu cortex-a76.cortex-a55 +# Armv8.4 A-profile Architecture Processors +begin cpu neoverse-v1 + cname neoversev1 + tune for cortex-a57 + tune flags LDSCHED + architecture armv8.4-a+fp16 + option crypto add FP_ARMv8 CRYPTO + costs cortex_a57 +end cpu neoverse-v1 + # V8 M-profile implementations. begin cpu cortex-m23 cname cortexm23 diff --git a/gcc/config/arm/arm-tables.opt b/gcc/config/arm/arm-tables.opt index bba54aea3d6..5384284b53a 100644 --- a/gcc/config/arm/arm-tables.opt +++ b/gcc/config/arm/arm-tables.opt @@ -243,6 +243,9 @@ Enum(processor_type) String(cortex-a75.cortex-a55) Value( TARGET_CPU_cortexa75co EnumValue Enum(processor_type) String(cortex-a76.cortex-a55) Value( TARGET_CPU_cortexa76cortexa55) +EnumValue +Enum(processor_type) String(neoverse-v1) Value( TARGET_CPU_neoversev1) + EnumValue Enum(processor_type) String(cortex-m23) Value( TARGET_CPU_cortexm23) diff --git a/gcc/config/arm/arm-tune.md b/gcc/config/arm/arm-tune.md index b9dfb66ec84..1257daff074 100644 --- a/gcc/config/arm/arm-tune.md +++ b/gcc/config/arm/arm-tune.md @@ -45,6 +45,6 @@ cortexa57cortexa53,cortexa72cortexa53,cortexa73cortexa35, cortexa73cortexa53,cortexa55,cortexa75, cortexa76,neoversen1,cortexa75cortexa55, - cortexa76cortexa55,cortexm23,cortexm33, - cortexr52" + cortexa76cortexa55,neoversev1,cortexm23, + cortexm33,cortexr52" (const (symbol_ref "((enum attr_tune) arm_tune)"))) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 67cebf59fb7..c85e31fb02c 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -17570,9 +17570,9 @@ Permissible names are: @samp{arm7tdmi}, @samp{arm7tdmi-s}, @samp{arm710t}, @samp{cortex-m4}, @samp{cortex-m7}, @samp{cortex-m23}, @samp{cortex-m33}, @samp{cortex-m1.small-multiply}, @samp{cortex-m0.small-multiply}, @samp{cortex-m0plus.small-multiply}, @samp{exynos-m1}, @samp{marvell-pj4}, -@samp{neoverse-n1}, @samp{xscale}, @samp{iwmmxt}, @samp{iwmmxt2}, -@samp{ep9312}, @samp{fa526}, @samp{fa626}, @samp{fa606te}, @samp{fa626te}, -@samp{fmp626}, @samp{fa726te}, @samp{xgene1}. +@samp{neoverse-n1}, @samp{neoverse-v1}, @samp{xscale}, @samp{iwmmxt}, +@samp{iwmmxt2}, @samp{ep9312}, @samp{fa526}, @samp{fa626}, @samp{fa606te}, +@samp{fa626te}, @samp{fmp626}, @samp{fa726te}, @samp{xgene1}. Additionally, this option can specify that GCC should tune the performance of the code for a big.LITTLE system. Permissible names are: