From patchwork Wed Sep 23 14:02:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Coplan X-Patchwork-Id: 1369888 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=4AKn0GhY; 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=4AKn0GhY; 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 4BxKdh1bNkz9sTK for ; Thu, 24 Sep 2020 00:03:18 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0B6B43953074; Wed, 23 Sep 2020 14:03:16 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150057.outbound.protection.outlook.com [40.107.15.57]) by sourceware.org (Postfix) with ESMTPS id 9DCFE3950C0B for ; Wed, 23 Sep 2020 14:03:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9DCFE3950C0B 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=tvLOTvoHDBxxMLlQasLGgYvVhxk99cIytBriHp2crGE=; b=4AKn0GhYHbUoaqfZBpJ63AQpbzf3G8FOaAZyjt+HqP3K3TKMT6eMpv6Nxa4qdWUVrd1Z68rLg1RDigIKjF0auqRS1ifrUY6KtwvVdW2KI5/rb/gXyBVSKN563BWzn/v0xAiRJPg3R8osED1aB6SkvM+xxNkzlg7PTplZUcJAwCY= Received: from DB6PR0501CA0004.eurprd05.prod.outlook.com (2603:10a6:4:8f::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.3391.22; Wed, 23 Sep 2020 14:03:11 +0000 Received: from DB5EUR03FT004.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:8f:cafe::ff) by DB6PR0501CA0004.outlook.office365.com (2603:10a6:4:8f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.20 via Frontend Transport; Wed, 23 Sep 2020 14:03:11 +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 DB5EUR03FT004.mail.protection.outlook.com (10.152.20.128) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.21 via Frontend Transport; Wed, 23 Sep 2020 14:03:11 +0000 Received: ("Tessian outbound 34b830c8a0ef:v64"); Wed, 23 Sep 2020 14:03:11 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 6271ca4e40fafd0e X-CR-MTA-TID: 64aa7808 Received: from 6b55ee922cce.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 83B31DFD-49D9-4DE7-8206-9FB39C509283.1; Wed, 23 Sep 2020 14:02:33 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 6b55ee922cce.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 23 Sep 2020 14:02:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aoi6fHjd3gRPz/puSdVKQeYoFNWf58eUqGGCiuGxOBKFyM3sRMUZ8L9Cw3jWi0ORcFcJzvYGSHz0icCKrN8bjs2CbbRJE0E1CGudIdGMsvReOIa8GdC1kMC9OhtcOzKqVpkfXiVDU6/fBZG/RTchpyTO4NllwylLi4FCsQjx4aJX4fXGwu2AUtbpgF4IY3PL4kiK4kA3aFeRGtXIsvy/Tkfj3zIJzs0I+Ih6EhZM2ZfSa21HMy3gUPPDzK7XBED9lGxkj9FSlpQhU+lJOxuIv7KRpHSPzWGk1q45dcPT8Ow6WI9Q76MQxFr730JuEptI1lBjt1/IarwEKiKAvvdvag== 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=tvLOTvoHDBxxMLlQasLGgYvVhxk99cIytBriHp2crGE=; b=GZHzmAuz1WQVs5zmidWLWvxoZF/hKUbsJNXXq5CL4SV+pALD/itnnRBXSxqZ3gmmTX/LIPtryHdggprOJUf19ujvYDP0x8GrU3nPMYgDzX3QPFVf39DMShTShTJHyJyrm32DFnl2ThnptlLZSNU+nSBfx6bp6fuEr6NEY2dL0vVeXKyfpT7j4SgdcGGiyqDm5OtTpRJEBKkp/bUc9BJ+2CqxabGE3AHiBzmLtkdCiwookCduxS35T16QfUHIdCIaQXnBOznU8iMle6oSTt20bcWLaOhKhqv+8J1Qve30CWrYG5U+zXx7SFZ0/mmPRCeae2JVkPkOcGVyBBSQxo+jdg== 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=tvLOTvoHDBxxMLlQasLGgYvVhxk99cIytBriHp2crGE=; b=4AKn0GhYHbUoaqfZBpJ63AQpbzf3G8FOaAZyjt+HqP3K3TKMT6eMpv6Nxa4qdWUVrd1Z68rLg1RDigIKjF0auqRS1ifrUY6KtwvVdW2KI5/rb/gXyBVSKN563BWzn/v0xAiRJPg3R8osED1aB6SkvM+xxNkzlg7PTplZUcJAwCY= 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 VI1PR08MB2990.eurprd08.prod.outlook.com (2603:10a6:803:4a::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.22; Wed, 23 Sep 2020 14:02:32 +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.020; Wed, 23 Sep 2020 14:02:32 +0000 Date: Wed, 23 Sep 2020 15:02:30 +0100 From: Alex Coplan To: gcc-patches@gcc.gnu.org Subject: [PATCH 2/2] arm: Add support for Neoverse V1 CPU Message-ID: <20200923140230.c5x7jcun4ziabebu@arm.com> Content-Disposition: inline User-Agent: NeoMutt/20171215 X-ClientProxiedBy: LO2P265CA0283.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a1::31) 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.49) by LO2P265CA0283.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a1::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.20 via Frontend Transport; Wed, 23 Sep 2020 14:02:31 +0000 X-Originating-IP: [217.140.106.49] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b4b57cfd-23bb-4620-5137-08d85fc9683f X-MS-TrafficTypeDiagnostic: VI1PR08MB2990:|VE1PR08MB5854: 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: M2z7cASQnOCwVXe4lp6t5OYahFoiwp/frXt4hGlAaR/J1PrBuZEg/WgPmHhoCaKsHO427VZwROr4WrHNA1nza+cbc3N1aoentw52QTwY8ONte51X4DCixWcYzN4KsAHcmfHv8lyVI7sQaqabg0miGOoj2mPnxr5ZtbjegurrHHqiq/t1bLoLyaRvprLFnAdL7MNr8ergy+68triMU0kaj9INpVm3RqiQKk0ItOv52e9FyHdSeZax/VRER56bpsNSUJ+Lx9/qsUcTrIWp3l3HDw3NiE6sVp8A5k6UvJVI74NzIxLCZ3M94vWhwycaBEKhMP22ctu8IiBAFJPXQtX1lguaPmUTrjhkFfK6NEIk11x7zTn171mgpMSsYcicpPW+Scg1TgXfTmExyPSovxGgbdBd3W6Ptm9FDiMOtZxl+rg= 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)(366004)(136003)(39860400002)(396003)(376002)(346002)(235185007)(8676002)(16526019)(186003)(956004)(36756003)(52116002)(7696005)(1076003)(54906003)(2906002)(316002)(6916009)(4326008)(8936002)(21480400003)(478600001)(66946007)(86362001)(55016002)(26005)(5660300002)(8886007)(44832011)(66476007)(66556008)(33964004)(44144004)(66616009)(2616005)(2700100001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: gxK1DDdIbFrfEI84Mgt5ub3IcZ5yK21nTHI81wGrCNS4esuwAC+wO+QONBXFGL5R8fYIKwr1iRlVsbZmswDg6DPyWaHXHKdA3BNp9my4iTHmBJP2Bw//ZZlG+rCmw49FkFlkE9/jtUcIrWxYB/IvGKC2Z0bPk/jbz5LpgeUWgqNgFVpFnnRX48S8B4bOPDi7V/6Aq8s5nTX5nAPlHO16dbCN5wtHu+Mj1Jc+F3GNZs79jofNjGntrgEiL9+4m544M48QuVyGnnE+NHtuVlgbxatkeoxmuIaYiOIfr0m9nankupCvZDRrZG3tAxAurFLQ2go/4iAxEcJLgfijIv/wNuLsc3VVZgGVP5PkZHJZ7JsnK5Al1w4zcUErVO03Qld+0D/XQ4zcs1Au4u7NifiTKxDGB0HtGZvP5MGCH614YZqyGlmnEpvEIYfCdY10hbIi1z52iKuMGpBavsQOXDf1sLGp2jQKkFiU949HkNB2qHll5SrqpHyiAL/3hcK16yOe4uLzIXe2LqUfask3sNTVqrXXXWX0b0C5/DkOQer+4Kp4hO/ccEd8bH8nqXR7de+LYTI1j3HmrBbhinadGW78tFkLogwJOcrF87I++sAA+WHVW470P/bn223uE6HCVIsSTOyPAyPiZg0/hKP5cxN+Gw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2990 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: DB5EUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: a5fb13e4-69b3-4447-26ac-08d85fc950cc X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: p8Zb92BgxgJmPaptHnDcbudt+FOTYZRwaRwuWWkrTihLSA8C6qKTjp+nq2D/j8KaFxLdBA+Bce2ODUbaDGuYq+iaD/99dJPgbYh/KMGt0UqsEUir6KMDIavEq2VPAJpG74a9ekGoWlysribt/0ppr14bJDE7gM4z9i24gGYcL0DojyaQc+L/vo1ejqPRlMNh6PnF4Hj4DLAZr2YvevM+hz7jYZKI48hzoGj+B/4N0arpTtxSzbPyHMpgmBOU9Ro04pfZ74axK2xd18oLZhWWoTOw07C+PJ48U2jTWZ59D5zDaF57ch6aJyRsHn+Dhvb5O6Or6+SD2+qK5vu8iSIJxtvmnsD2rebGbSAHwCdecVwY0lq6AcWU8zQuaFKhTyd+xFKeoIJBmI+u/BZjB4z/fn6/jdJdFw+23qb+9mbm1+Y= 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)(346002)(39860400002)(396003)(136003)(46966005)(21480400003)(8936002)(6916009)(44144004)(33964004)(4326008)(956004)(2616005)(44832011)(1076003)(82310400003)(235185007)(7696005)(5660300002)(8676002)(186003)(478600001)(26005)(81166007)(66616009)(336012)(47076004)(82740400003)(16526019)(70586007)(54906003)(2906002)(86362001)(8886007)(316002)(55016002)(36756003)(70206006)(356005)(2700100001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Sep 2020 14:03:11.4910 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b4b57cfd-23bb-4620-5137-08d85fc9683f 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: DB5EUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5854 X-Spam-Status: No, score=-14.3 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" This patch adds support for Arm's Neoverse V1 CPU to the AArch32 backend. Testing: * Bootstrapped and regtested on arm-none-linux-gnueabihf. OK for trunk? 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 support for Neoverse V1. diff --git a/gcc/config/arm/arm-cpus.in b/gcc/config/arm/arm-cpus.in index c98f8ede8fd..4550694e138 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+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 6a7833b1d75..50aab3267fb 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -19345,9 +19345,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: