From patchwork Tue Sep 29 08:58:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Coplan X-Patchwork-Id: 1373158 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=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=UMj93ZhJ; 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=UMj93ZhJ; 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 4C0tbz5lqjz9s0b for ; Tue, 29 Sep 2020 18:59:10 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8DD8F3844015; Tue, 29 Sep 2020 08:59:07 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40068.outbound.protection.outlook.com [40.107.4.68]) by sourceware.org (Postfix) with ESMTPS id 8D8DB3860C3E for ; Tue, 29 Sep 2020 08:59:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8D8DB3860C3E 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=ZICPzQzso5os0gzXVAC1mawm2sPd16N3eIrrDaF5bLw=; b=UMj93ZhJZaC4ApxZCVhLOirHq5ftaRK7b2NGI2wU28eUXU+QAeXQFtmD+dn3sYBq0x4c/zH3/Y6mb09DMj7LSH/HCRGRowSIpQ4gGeRnrrfUEfxmzAQuZ5iZsmkMv1JPciCyaAY84o6oGE+IKK4CsYwwyO4SVeNJl51RqcMyV/M= Received: from AM5PR0101CA0034.eurprd01.prod.exchangelabs.com (2603:10a6:206:16::47) by DB8PR08MB5002.eurprd08.prod.outlook.com (2603:10a6:10:e4::21) 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 08:58:56 +0000 Received: from AM5EUR03FT008.eop-EUR03.prod.protection.outlook.com (2603:10a6:206:16:cafe::33) by AM5PR0101CA0034.outlook.office365.com (2603:10a6:206:16::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.22 via Frontend Transport; Tue, 29 Sep 2020 08:58:56 +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 AM5EUR03FT008.mail.protection.outlook.com (10.152.16.123) 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 08:58:56 +0000 Received: ("Tessian outbound 34b830c8a0ef:v64"); Tue, 29 Sep 2020 08:58:56 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 42669d7c1df24e88 X-CR-MTA-TID: 64aa7808 Received: from 128e9f3380dc.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 7C4FCE01-93F1-4EFB-9527-02B34CD6D86F.1; Tue, 29 Sep 2020 08:58:49 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 128e9f3380dc.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 29 Sep 2020 08:58:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AB1lrA9uUgYGd7/+tfGoyGRvGJEqYHpofYFpuwbzZ1E/xCvECoSMs2c5dU7oe+ukeJRe8dHkypoh6hZpnlTMyPVxHhGFIvU/53U0/SPpFcpwlkLZ3z5aVkkinOm6UXIj3e7h9SV38NsaT1pCzPYyTL7PU+mW6sHIh36ftBGu1WAhk+N270e7N4NZ0lk3ZfEpXMVFuK0PC6GuEPIhx510vtvu0sG6HVLn+vgNrwlVG/JDQlmul6ggHjAU6BU6QouRlEOhMYpncRAjPRzqw5lHSTftP80xHojNNA8R7T6Mqc/kMPCyT4BhFoo72umcRfnA0kjdq51OfSjn3qO1lqwbaw== 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=ZICPzQzso5os0gzXVAC1mawm2sPd16N3eIrrDaF5bLw=; b=nE0JLv2tVzqqpoyAVKIdU0l4j1NtN8qxavjBhOqUqjtlM1abcCXb0yKGj9ytpUHFqaaXg5IT8QrG8LX0UQ8pp+jSjQ2RlJhGXAyUBGFZiXosqsTh0nuvFmwcb2jhjvHwi/5g2fRu8G600L0K9lubveTZZazNHWuhiUSUfSIAukPqa1wTlplpEY+/nLXZcHoyv2r+BbibPOXAqaVACE2H/jMlsqsRF9OmiAvKnrIVRoow+RJJgn0FpgO2YtzXAOON3N2+jQwH2IpT+/85zN3pO+GH9rdbRUHPD8fmZrf9qqBOcta+aVvYU0QJ0kDQIwGnqlakWN1nqPq2a0oM2ZaowQ== 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=ZICPzQzso5os0gzXVAC1mawm2sPd16N3eIrrDaF5bLw=; b=UMj93ZhJZaC4ApxZCVhLOirHq5ftaRK7b2NGI2wU28eUXU+QAeXQFtmD+dn3sYBq0x4c/zH3/Y6mb09DMj7LSH/HCRGRowSIpQ4gGeRnrrfUEfxmzAQuZ5iZsmkMv1JPciCyaAY84o6oGE+IKK4CsYwwyO4SVeNJl51RqcMyV/M= 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 VE1PR08MB5854.eurprd08.prod.outlook.com (2603:10a6:800:1b0::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.24; Tue, 29 Sep 2020 08:58:47 +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 08:58:47 +0000 Date: Tue, 29 Sep 2020 09:58:38 +0100 From: Alex Coplan To: gcc-patches@gcc.gnu.org Subject: [PATCH][GCC 10] arm: Add support for Neoverse V1 CPU Message-ID: <20200929085837.gci6gfnlgwiualzx@arm.com> Content-Disposition: inline User-Agent: NeoMutt/20171215 X-ClientProxiedBy: SN6PR05CA0014.namprd05.prod.outlook.com (2603:10b6:805:de::27) 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 SN6PR05CA0014.namprd05.prod.outlook.com (2603:10b6:805:de::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.18 via Frontend Transport; Tue, 29 Sep 2020 08:58:44 +0000 X-Originating-IP: [217.140.106.52] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 104e8a2a-850b-4d6d-c656-08d86455e5b8 X-MS-TrafficTypeDiagnostic: VE1PR08MB5854:|DB8PR08MB5002: 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: KXIrt3GuFwn7ws69+r8urDigzL0YNTgf29Uxr+vVaqlIiRZXHmbmntjNbrQY2VQqWgg5vZPgLikM9qsBaFugwfSq0A/ojeeYsGonzHS2EWYM0L6l2i6IKQoHeqz2gNGJXz6xEnAFZ6+9TJ9JiBeQqQyCozEm2QxzVqOSYl6Bula1VOODTcsMagnuCwn6EAsQ359Tmil3LRVeeVrdRmo5doaZHqGhkpEOswQZWEGjy+rLnX8bx7HJWx+b57zhMcQQYVotnlNTnmRfuUHpgf/Yp2SsDXiGvcnMcHaI+PE4izPv6bVrBO/rW1yIjhCs0M2Y3+H2kDxNImK68GAUS2ROT/hHuQVxSLGyj64yUDlBfHHvlrGP4SUTUdHdHgdO+URds9q7hQZ+CCf97q+HajGnnJqyP7FvsKCIIWNhFBo7DUM= 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)(346002)(39860400002)(366004)(136003)(396003)(376002)(2906002)(316002)(55016002)(6916009)(6666004)(235185007)(36756003)(4326008)(5660300002)(478600001)(8886007)(66556008)(86362001)(66476007)(21480400003)(66946007)(66616009)(44832011)(8676002)(54906003)(16526019)(33964004)(44144004)(186003)(8936002)(52116002)(7696005)(1076003)(2616005)(956004)(26005)(2700100001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: UISP00xAKUtQ1pI9Z5r7Fv1oVbZfk+L4aadlxFKvQ6jpHXDUcQRmU/9U9PSorHyY08P6qt3pA9i3ntCoCf+TwL2R+TyQjNF6yUf2yBkC3jAQJKpoF7XcKoRNgKT3pWT0Ce76evnSRwtswqatKooxNQSb8Wuj5Fwi7G/fd39b12xGt//5AGg6rRg1q4KVWSd6NhjVKqy55tbX8D7yBNvrLDvcR2KcXVfBQvEiRQ4GxY3GIpH2v8shisD84ZO//qHrWAoUrmOv1MHK4HDRme2s6l1zkNZkbGzQNu3kN66pHcE5GqdHqzah7uVQShXzqwbKt0tZ10512C3nAMtoN7cvxaAvzmliIXR+xSb4PQ1MB373433TxJ3VQz4HM3bYMU8s+iS2UJtLqvLPBbW5K7rlYI81bWNLLZEGglUh/IlnqdbieI6nbNi5BeD9yOUZbdn+MkakHoyXR09PeKhJaIrIoh38QO7SrY40eGBhJBk0Fv08keqCKcOpkQP1bCBQEbebG3QCa8rQK6jIp35R3CylGHN92Bkab4XXKMNGujRJYs+jcNea37Z3c8nJ+krxTKfr72sv/CNSFRHWADICl1boLuTMQwwfhFtvpwopNXhL96ogmVnhP2dBrHmWAj+FpT/EHoYARkXgrGszls47n9plSw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5854 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: AM5EUR03FT008.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: ccb05d52-4311-4a53-71bd-08d86455dff3 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6JTy2YSQnN0wajZYIym8pWyY4ib667N1VwkMnHEV5g8K2ShvPUJsFjFZmgni0FJ/kxk6Slu0q4Txov2csDdTqBl8LDI8zjS/FJJQRnX663COILlQB3G/5S29iHuNT05VlyYbqtln4fr/7V/ySBZSGqAR9ZGXG8+bapM5tsqzJX479f4t8ua730CUQCqhBk49J7eX9Kc/D1QyFFxgSNXPs7doKH3y5TQsfjsTbcqj+inZWPZPVPP+FjLioo7n2jA965EmT46AYGuVV2Wx3x8xrO+d1/VwZ4BWJ//79ZmwfTfMCE1urvHEscRM7a6JQY1tQ1jG1SK1W4DmPcJQbK6hTkLMmb7FGUe4xi1Fl7wqyTcsOn2RGLWyAWX9kJQL+RcRmOz2sJywCQgG/r0gHIiQFWK7lTzpnJlZPlF+Q6Ex/U9g1kbHiGY5KcWgpcwB0aMXDJ6BT70QK8FrLDXtQCMKDmHJy8SzBHsffVpxDWiGq+w= 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)(376002)(39860400002)(396003)(136003)(346002)(46966005)(316002)(36906005)(36756003)(336012)(186003)(26005)(33964004)(44832011)(7696005)(956004)(2616005)(54906003)(44144004)(4326008)(55016002)(82740400003)(47076004)(478600001)(6916009)(8886007)(8936002)(86362001)(1076003)(8676002)(66616009)(82310400003)(70586007)(6666004)(5660300002)(235185007)(70206006)(16526019)(21480400003)(356005)(81166007)(2906002)(2700100001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2020 08:58:56.1245 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 104e8a2a-850b-4d6d-c656-08d86455e5b8 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: AM5EUR03FT008.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5002 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 10. Testing: * Bootstrapped and regtested on arm-none-linux-gnueabihf. OK for GCC 10 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 728be500b80..b1fe48eb087 100644 --- a/gcc/config/arm/arm-cpus.in +++ b/gcc/config/arm/arm-cpus.in @@ -1478,6 +1478,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+bf16+i8mm + 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 ce356611861..1a7c3191784 100644 --- a/gcc/config/arm/arm-tables.opt +++ b/gcc/config/arm/arm-tables.opt @@ -249,6 +249,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 8ea9435c0c9..3874f42a26b 100644 --- a/gcc/config/arm/arm-tune.md +++ b/gcc/config/arm/arm-tune.md @@ -46,6 +46,6 @@ (define_attr "tune" cortexa73cortexa53,cortexa55,cortexa75, cortexa76,cortexa76ae,cortexa77, neoversen1,cortexa75cortexa55,cortexa76cortexa55, - cortexm23,cortexm33,cortexm35p, - cortexm55,cortexr52" + neoversev1,cortexm23,cortexm33, + cortexm35p,cortexm55,cortexr52" (const (symbol_ref "((enum attr_tune) arm_tune)"))) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 5b408150084..0eb5b6bb135 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -18824,9 +18824,9 @@ Permissible names are: @samp{arm7tdmi}, @samp{arm7tdmi-s}, @samp{arm710t}, @samp{cortex-m35p}, @samp{cortex-m55}, @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: