From patchwork Tue Apr 9 13:24:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Carlotti X-Patchwork-Id: 88239 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 D9133385841E for ; Tue, 9 Apr 2024 13:26:02 +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-vi1eur05on2058.outbound.protection.outlook.com [40.107.21.58]) by sourceware.org (Postfix) with ESMTPS id C04FC3861013 for ; Tue, 9 Apr 2024 13:25:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C04FC3861013 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C04FC3861013 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.21.58 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1712669127; cv=pass; b=xdkUOzRBfwKbG/tJ4sp4c0eshQqpDdCvLgchSHeVhYYSd/FLOalWL1HrYjnoMHdRq+xD8ES5Y5RTkq/SPnLKtWIsZMbCkWD0+zmU3WY4iEYaDbUHc8RQKVVo4zjOkC6crWSrq8OYDGe8oqYEI1oISPSD9PBZl4+ga++8W1cNRvs= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1712669127; c=relaxed/simple; bh=8yHC4F+1oI1g10NojI1xdh1MLyXujRk0y//utwvd0rs=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=sAQmdaL1DPitBJAjzcDdw338RGNt3TBb/Kxj3iqrHNMDk7XxSdtL1bFibq73PUbsdpLIrxsQ2212kUGW4v6+tbgZ64s6PXAZ0R1OblcBWXMBllIeGD6IU+k+NQ91NsiYqfhhNQm4yiQvp+1TPrXQnaetjnch+IPtlP9dVXe+97M= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=L8r8InOV8hUN65cOdnkns93yD7VKHbFZUptfgwHoAPkqw7u/jScqXRAI1vQKDq4c3OSFu6a2qjrW24LDa0P084MMs4VHo4Gh9lpV6UMJ7VY7zINv/gayGzJOx7TUol8pC94W7nvWZJWk/GKKZB/f7HpoPWUoVzf7TELRtb14Gl1MiTHRKDFrvx9nZ9PG87baxST2FuEMrGNz8T8Rs2zBfjc+gspBUna/PQND5RKjQSdcG/nuQxwUVKCpAr4xbIuAWY4kCJmuQC9Cz4ANYuMJzLr1wPy8S9TOH0/bYx5+yinwMUfBxZp8gxPKgb/6f6LtQu0qD8lwG+j6aiztfvdxtg== ARC-Message-Signature: i=2; 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=TLoxuZIxymz7LYd2W1rIKqWeuX4l2aT3ZxSDs8hNQsY=; b=an9eQgzyyQoncduhvL9yB9gpW1hWzgG3D48ccsm2Sd0yi4plicAZL7V4q6oiGRNnNkKYiDbM2zjkcFJHp3Gj2PMVfSet+1Cel9r33nFPP+OTfobT6H1ONtV2PFwPMh9xKoPKGIKq3bNPGhL2upkVKGB0ClU3qpaI/DsAQgnpDbbx/GX3t1vnC0KBpuhDitE00LpjyZi9tG622wEL8ReJn25TsmFOTVV+RO/8h6kAqE4opILZGtPKlaQr8PcxVLRW5nIL1WlK/lsWjUEMMvz4vp+NOWL/HVxhBh0vvC8SwrVO0lI3WYhj5DhVb5e/ZwlP2FiyqV+8LJD9/6NLE7nNOQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=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=TLoxuZIxymz7LYd2W1rIKqWeuX4l2aT3ZxSDs8hNQsY=; b=S/HkUmiYb+bvpQu6XBBT/2kJCc3AEfQqiY2KPYx2yV9fv3IOzSxP7KJE78gUHNY/HCZxcKEUyoaVhHrJ+nRVYROZGomqaSu33eA1320X9qyTNQ2qDNUpmh6WmMzHmGveEu48PDhihnYH7V97yMCcNv5cVC6WwAPU/oS4se3SRLk= Received: from DUZPR01CA0040.eurprd01.prod.exchangelabs.com (2603:10a6:10:468::18) by VE1PR08MB5872.eurprd08.prod.outlook.com (2603:10a6:800:1aa::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Tue, 9 Apr 2024 13:25:13 +0000 Received: from DB5PEPF00014B8E.eurprd02.prod.outlook.com (2603:10a6:10:468:cafe::86) by DUZPR01CA0040.outlook.office365.com (2603:10a6:10:468::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.28 via Frontend Transport; Tue, 9 Apr 2024 13:25:13 +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 DB5PEPF00014B8E.mail.protection.outlook.com (10.167.8.202) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7452.22 via Frontend Transport; Tue, 9 Apr 2024 13:25:12 +0000 Received: ("Tessian outbound dc0a9029eb2c:v300"); Tue, 09 Apr 2024 13:25:12 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 7f9044a41b6a6d84 X-CR-MTA-TID: 64aa7808 Received: from 4d1bd19670a8.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 7EC1E629-C77F-46AF-9ADC-3B4F6A9796DB.1; Tue, 09 Apr 2024 13:25:01 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 4d1bd19670a8.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 09 Apr 2024 13:25:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Lhu6dtrKA5DWKsk7YqNx4zq9bQg6runT6P/6I9ZZ+oxvUf+4Fdmf8OFx1H6FbxNnf0UevvEy7q3JtXwZZ5U8aohFW73V038FgpBenixJiZWv/MmlXtFK9GEMEScc4Us8yCRC751FnWHk3AjW3QU1R5BQqKRtRdpATCDGSUR6Fv6e7q3nr4sMnRaNMaCCcPgZUh3lmidm/nS2lVuCk/KdKW9SPMFA3tcoPW2QH7UtGzg1rQ0X7kQsv6TT/ffl4Jpeh1Zd6gL3L2pIQY3iOqWxyiypIB4J7dMeNi0eJcTkrc7yeoGr+TtGF4ORj8kLJ5wMrzVwc/kaquMZQK4acVYPcQ== 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=TLoxuZIxymz7LYd2W1rIKqWeuX4l2aT3ZxSDs8hNQsY=; b=O1tes8lniEkqIgUotMaYoKCfEttph8o+Z60alErZrHKMJDoXFwcn9VRk7LyfTVV9JRgROOdK4+6RXZpJou08aLDMBltTYBd/53B7OyTtyEawudms6B8Dp1fQXiTsNS02gP16ZXarrSDGVQwN2AxjWvPNqhhHitTvxWM86ljjw20AtRbPLxlcZ0iSxco7lfWR1V1T2gQ2OFE+RMSTptytuveV8AkzH+y8T6M5sg/DAlJyNGQgdO3gHBcdma8dZzYkA2AQXcz7w7rizfifOsU5Tjr5EDGrtB1+8SxWH3GOmKMY+FuaieTTImbeHP/eI1c9ZkU74vFP6HaVBWt4QO4lwQ== 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=TLoxuZIxymz7LYd2W1rIKqWeuX4l2aT3ZxSDs8hNQsY=; b=S/HkUmiYb+bvpQu6XBBT/2kJCc3AEfQqiY2KPYx2yV9fv3IOzSxP7KJE78gUHNY/HCZxcKEUyoaVhHrJ+nRVYROZGomqaSu33eA1320X9qyTNQ2qDNUpmh6WmMzHmGveEu48PDhihnYH7V97yMCcNv5cVC6WwAPU/oS4se3SRLk= Received: from AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) by AS8PR08MB8897.eurprd08.prod.outlook.com (2603:10a6:20b:5b8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Tue, 9 Apr 2024 13:24:58 +0000 Received: from AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::791b:686b:e7b9:be90]) by AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::791b:686b:e7b9:be90%5]) with mapi id 15.20.7409.042; Tue, 9 Apr 2024 13:24:58 +0000 Date: Tue, 9 Apr 2024 14:24:55 +0100 From: Andrew Carlotti To: gcc-patches@gcc.gnu.org Cc: Richard Sandiford , Richard Earnshaw Subject: [PATCH 1/5] aarch64: Reorder FMV feature priorities Message-ID: <113c0449-6213-da12-67c1-69962e363614@e124511.cambridge.arm.com> References: <33371799-7353-cd99-3f78-9abe31ad24ec@e124511.cambridge.arm.com> Content-Disposition: inline In-Reply-To: <33371799-7353-cd99-3f78-9abe31ad24ec@e124511.cambridge.arm.com> X-ClientProxiedBy: LO2P265CA0353.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:d::29) To AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8PR08MB6678:EE_|AS8PR08MB8897:EE_|DB5PEPF00014B8E:EE_|VE1PR08MB5872:EE_ 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: qqNKJlDXQglm4KPdEZlOlFaqc0xJPZEgAsDkxAOY1/sFrs96dYgN2D+Frz0oQE4cO57CGk0G2YVwOBR/VWf59KWtBsyG8IS/PN/BfQRbcNLEc7FlptH5lNTMY7LOxJt/zZu9smaRYZG/mLmKw6ymIneU5KeU0MuiW8xPbrseL5NWgJPga42ymVvjhWFKM1nklCljRx9laaUvwId61/8YCNVbYHtpYgMd6L5Oe3Hwqu24xbDHdlvxPUgeDycEMZCNdpxj5btgAgtjCKXCEF3k7xbMzjVn/11go/zq/RRraqtOFC1uqPI4jqGeKaHWN2VtNbXGXeB6KQqmaSzCqxibilcCsWhNVh6b+R6ne+lxiby/ZPsIcCraExce86QWGg5cuy8Lf6jyf1pbFJo2lWWaPLGd3y5Y1nCmRgAuQIEbwycRkwJ2NEo0yX9j3AqYYG2G/kKuufC/CJes/oeejvWJEYs0mV2I9159175lxFceWdFjJsjZek3E/8qD7/2MHIzdK87BleSsahpbRjovhLDgGi+kAmWiGT6Zgz5WuDvqurtezA9rF/idl0/2cEV3OmLjMf7fldftIXspiUZ0g9HelrnvNXvipo4Q64rppasSC0jmQcUU5S3YmKdVmOwUX4D5AdZ4ImVIBddFaWU1j7w+1G55qI+4k0wnabgfCchYO2E= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB6678.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(376005)(1800799015); DIR:OUT; SFP:1102; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB8897 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5PEPF00014B8E.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4e3f7ce5-d337-4562-a60d-08dc58987caa X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qUew2MKN2bsbN6ldu1jSHlmof/LpecuqFr8dwdMqT8kisVkpt0Sua18xJUvspMGGvITP/kCyp322QCjg2X/S4ignd3hyDVj3gk58TNwxZFtU8MhprwPgBFF+vDEDqRpv0ZFxxt1bMJAVK4BoezkyTPvfyOTNyThfvaaO3PDlbfNwGSde8CMi5qgr1vls+AzBt+Pv4byg9hVDOTx9ZP7+zXOeD2D4m1YHRCcVKWOwlRRugPBlC8OxusrCX/JZe5hDPcS53399U/4ZA87+HOWnZqM7E+1UW3BrG8zBetNEMUlwxAAgMJvhHFu8QwxIdcyYthqYjtiVYboRQs9yCM0QRycOtJL8ko9K8v8xUpY3ShnsdUqc5Wu6e3wPS2pX2weJRyBKGbjG11o1UAr8GzR5kF+g14FH2anOMee9OZaxWRY2RF6iovBIc1kLVUJ09/WEwrDTiGnpUWm/4RqE0oXLqhImWu83GVSqBNvHGAH9ryovHbxpfLQj7YH8ANIP5AdtPbdeflrmG7Jk1fsi8ka1u8MKuCd6ir4VHQGGAjKYiLciU2ov4p6fw0cj+E9eCFkMco9k35XmO1lfJi0RpXyVV1F/TNwJCF5Y5a5YdR7PgIJKDbaVpM7HeW1v4vNhrzDC6hSl6JKmnEXrC75fs9c8/Eu1G4a6dyZm6RHJ7jUvySWRvaVy/K0RzkvVx4AGe+WOYJoLHIGFe2ioOOQQrFo9n4Ncx/5vJU0/INUwlwffXzgH6PucuVa6xXihXUzkYbXE 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)(36860700004)(82310400014)(376005)(1800799015); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2024 13:25:12.9599 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4e3f7ce5-d337-4562-a60d-08dc58987caa 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: DB5PEPF00014B8E.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5872 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, 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: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Some higher priority FMV features were dependent subsets of lower priority features. Fix this, using the new priorities specified in https://github.com/ARM-software/acle/pull/279. gcc/ChangeLog: * config/aarch64/aarch64-option-extensions.def: Reorder FMV entries. diff --git a/gcc/config/aarch64/aarch64-option-extensions.def b/gcc/config/aarch64/aarch64-option-extensions.def index aa3cd99f791c83c5b15291503f3375a7cf2732cd..0078dd092884a94d2a339b5238b8d19747ff9fa1 100644 --- a/gcc/config/aarch64/aarch64-option-extensions.def +++ b/gcc/config/aarch64/aarch64-option-extensions.def @@ -99,17 +99,17 @@ AARCH64_OPT_EXTENSION(NAME, IDENT, REQUIRES, EXPLICIT_ON, EXPLICIT_OFF, \ AARCH64_FMV_FEATURE(NAME, IDENT, (IDENT)) -AARCH64_OPT_EXTENSION("fp", FP, (), (), (), "fp") - -AARCH64_OPT_EXTENSION("simd", SIMD, (FP), (), (), "asimd") - AARCH64_OPT_FMV_EXTENSION("rng", RNG, (), (), (), "rng") AARCH64_OPT_FMV_EXTENSION("flagm", FLAGM, (), (), (), "flagm") AARCH64_FMV_FEATURE("flagm2", FLAGM2, (FLAGM)) -AARCH64_FMV_FEATURE("fp16fml", FP16FML, (F16FML)) +AARCH64_OPT_FMV_EXTENSION("lse", LSE, (), (), (), "atomics") + +AARCH64_OPT_FMV_EXTENSION("fp", FP, (), (), (), "fp") + +AARCH64_OPT_FMV_EXTENSION("simd", SIMD, (FP), (), (), "asimd") AARCH64_OPT_FMV_EXTENSION("dotprod", DOTPROD, (SIMD), (), (), "asimddp") @@ -121,12 +121,6 @@ AARCH64_OPT_EXTENSION("rdma", RDMA, (), (SIMD), (), "asimdrdm") AARCH64_FMV_FEATURE("rmd", RDM, (RDMA)) -AARCH64_OPT_FMV_EXTENSION("lse", LSE, (), (), (), "atomics") - -AARCH64_FMV_FEATURE("fp", FP, (FP)) - -AARCH64_FMV_FEATURE("simd", SIMD, (SIMD)) - AARCH64_OPT_FMV_EXTENSION("crc", CRC, (), (), (), "crc32") AARCH64_FMV_FEATURE("sha1", SHA1, ()) @@ -160,6 +154,8 @@ AARCH64_FMV_FEATURE("fp16", FP16, (F16)) -march=armv8.4-a+nofp16+fp16 enables F16 but not F16FML. */ AARCH64_OPT_EXTENSION("fp16fml", F16FML, (), (F16), (), "asimdfhm") +AARCH64_FMV_FEATURE("fp16fml", FP16FML, (F16FML)) + AARCH64_FMV_FEATURE("dit", DIT, ()) AARCH64_FMV_FEATURE("dpb", DPB, ()) From patchwork Tue Apr 9 13:25:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Carlotti X-Patchwork-Id: 88240 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 03F8D384604F for ; Tue, 9 Apr 2024 13:27:17 +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-db5eur01on2057.outbound.protection.outlook.com [40.107.15.57]) by sourceware.org (Postfix) with ESMTPS id 702D23847700 for ; Tue, 9 Apr 2024 13:25:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 702D23847700 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 702D23847700 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.15.57 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1712669136; cv=pass; b=YOzAe/0IVci36rrAyutKWYDiHZqpqehiHsZWZqkv2ROv+C2pVZLQz8MHE052Ft8RJR1CfarGz56QppBaf8eZ/Vn9NI5AQWEQ5txUG2bj/gzeuVje2BqGe0nE4dX8FJ6LwPVvHk3NC4/h/Fd6d/FHycqmTDXDUGIzWFN+VPpRvOA= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1712669136; c=relaxed/simple; bh=hzqjG0eYDYvphsqwEqQ1XZ1fx38ScOvoV7EREmAajJw=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=Hy4N9c5HTXXX3tBUZGjHsWDgCbjf9G4N0plsKIRdeMeZaqNtfSMERB6TKdosHK6n5VegvMeq/VLf6yoZPeraOcDGU3UUJHsPXNyQ3BIf2bfE/dI/sRi0Gz5h6Lnfd7uKp5mcmFuWpTdsAXNJnq//AYDmLpG/lVELwhvYQVUuC4s= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=BQvGmBIF6q1+BF7Q70oHQ4bYqOfX/JYEWDIbt/PiPbb24HdE5eG/9bv5YaUIwi69HmaVhvYBX0u1WPBi1kTzcjxcPHCxFeZB/BrdRNwnvYdurI4Gw0pKOHqL6wQMZNh0WO5MXq/JxI9FpR6rNwyLD02JH9CPrrZ7cUbmQ33/M/8zo6qfeHFyF3eAaQepYYd6M7QdgRQ93D3gN/iQhnBNJSa7+3P3kUGpzk6cLvnJWVVKhtln5ESdPb2arpHS8gOFkyeRHr85UMdbG9YYfNBtms4kOF0jrWHfD+2/JcaE6DAv9x0QvM0EpOzuIq7/L6tUkqfCx0j0jHLCZjLWhR2AkA== ARC-Message-Signature: i=2; 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=dOWZ2jahzcNTNJgIWXbkg4CpdmVmUnWbwY/EZGSiVyU=; b=JAUE3mUGMPUKO7VoaEfzvZxVgm/lRKTEFcAkEHzbTciyA/cVwuu1SKPdFUifliCw8Gogjd1l792NNcanGYaEXBxA/se82KOseBqEOY/UbIBzLvjmM4KqlFJRUUGHW8I2xJqc3czR9MY4x/i0GNx3mNuqhwaAzYbeUjcJd0+hPWfb2F5q8VdYO67LtAvVnQYjPwQQRv9Q305eNORo1W8hmAAsFYoxXtzkdokM4ERRSRJVvci/mjm6X3SNmPl79XMLiXWVo2OHsL9tKNOP31/SVL7eiUEl7VMsP6/CFeNdP5Hrc4gDbmomdZYgXJJaR+oAFB4hI9Km9geP4itzSIzEmA== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=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=dOWZ2jahzcNTNJgIWXbkg4CpdmVmUnWbwY/EZGSiVyU=; b=kgKGxWJehsFbzYIpTGf084sUSMOLxBJYsvfrRI8H9IZu4iXbbfsVCjBPom37Y4Q0vrr6rnvR3LCUe2VptkDfTmakiPwGTdiGGp+Wb2BrSAI/NRtLRVzzFBzuFEjJy62M9bH547Nuc12J6HcS521k9HoUpMksIMss4SdduMhXRCM= Received: from AS9PR01CA0037.eurprd01.prod.exchangelabs.com (2603:10a6:20b:542::25) by AS1PR08MB7612.eurprd08.prod.outlook.com (2603:10a6:20b:477::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Tue, 9 Apr 2024 13:25:30 +0000 Received: from AM4PEPF00027A63.eurprd04.prod.outlook.com (2603:10a6:20b:542:cafe::6a) by AS9PR01CA0037.outlook.office365.com (2603:10a6:20b:542::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.28 via Frontend Transport; Tue, 9 Apr 2024 13:25:30 +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 AM4PEPF00027A63.mail.protection.outlook.com (10.167.16.73) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7452.22 via Frontend Transport; Tue, 9 Apr 2024 13:25:29 +0000 Received: ("Tessian outbound 5ad6c4395be7:v300"); Tue, 09 Apr 2024 13:25:29 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e7556d57874e938f X-CR-MTA-TID: 64aa7808 Received: from 2c4166b47fee.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id D8F48FFF-964C-4F49-A1C6-72630D4DD170.1; Tue, 09 Apr 2024 13:25:22 +0000 Received: from EUR03-DBA-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 2c4166b47fee.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 09 Apr 2024 13:25:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l2WwgigWxPGHZ7gmAArq6GCULz8zwughh/dsqcKkWlqTu4voNg0hKo8RJgMLENpHTKIMH0LL9aIzP0K515LdGJnA20grv66wk8MOCFXqq/ju+X6JG3c+keepxpDhbpdJDmPgpFErFo6o8oXncSvqjbntIbVHI1Yuwt5eZZeXp3tfQmTfLc37mKQSSq/oxK1gMhijFNeYU1jFcv1+7FTwi7r576r8ZZ3GkK8B9ziZcSj7dwLNWlWZvFmSBWRXEL+vXl+0VO5C0QicNRFR2YGGiIzm5atAHBIK2gr5iNCbxiuydiCZJ6r0LadBU8nAuDmG4ZqJnVI9Ahj555FP8mY1GQ== 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=dOWZ2jahzcNTNJgIWXbkg4CpdmVmUnWbwY/EZGSiVyU=; b=PDDllT8XSl+Iny9Cbl/HDBUpfLYNvn7+WnsJ82SEYlvEeOCy0AVJEq2GTv3dr3DVXAEJa2b0qdZIfuwsSEpopZ7LCP5vvhol3enMIFjPhS7K2GMibOIp/eClPmOy2kmLeTqnhgImcNPjkI15vhXgwAx5ky+1LARlOLrfhtkM8byXt5tb658O6UFRHXFQrWkN0Ptqz6GPRiCySbC1l8MEcCJ95kOe2Hwsd/y1gwKDf3UDUS0zAyRdPAoO55jq1zeIQJ+U4fVo4NzsSdQ96oXroMg6Zey5oC3Rp5YoYwPhN/VD9nno++kbo3J3zjH8MYa/oka8yh0Qa+8f0NDmNyfDZA== 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=dOWZ2jahzcNTNJgIWXbkg4CpdmVmUnWbwY/EZGSiVyU=; b=kgKGxWJehsFbzYIpTGf084sUSMOLxBJYsvfrRI8H9IZu4iXbbfsVCjBPom37Y4Q0vrr6rnvR3LCUe2VptkDfTmakiPwGTdiGGp+Wb2BrSAI/NRtLRVzzFBzuFEjJy62M9bH547Nuc12J6HcS521k9HoUpMksIMss4SdduMhXRCM= Received: from AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) by AS2PR08MB8502.eurprd08.prod.outlook.com (2603:10a6:20b:55d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Tue, 9 Apr 2024 13:25:21 +0000 Received: from AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::791b:686b:e7b9:be90]) by AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::791b:686b:e7b9:be90%5]) with mapi id 15.20.7409.042; Tue, 9 Apr 2024 13:25:21 +0000 Date: Tue, 9 Apr 2024 14:25:17 +0100 From: Andrew Carlotti To: gcc-patches@gcc.gnu.org Cc: Richard Sandiford , Richard Earnshaw Subject: [PATCH 2/5] aarch64: Don't use FEAT_MAX as array length Message-ID: <4c366314-a9b8-e1ff-9d6c-dc4f11eca41c@e124511.cambridge.arm.com> References: <33371799-7353-cd99-3f78-9abe31ad24ec@e124511.cambridge.arm.com> Content-Disposition: inline In-Reply-To: <33371799-7353-cd99-3f78-9abe31ad24ec@e124511.cambridge.arm.com> X-ClientProxiedBy: LO4P123CA0166.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18a::9) To AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8PR08MB6678:EE_|AS2PR08MB8502:EE_|AM4PEPF00027A63:EE_|AS1PR08MB7612:EE_ 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: +G/+IEVR1etrFFfZRcKAcModbbBIKVcqcRbIIu81jgLcwXzRi5wIdtPqVlNznpSUOGv0bhPcbFn4DL9g+6hBL+YUDvt+GzRZCQ9ljMYgYM6NODC9bwPQdmHNdO+kPa+LdrOC1Ng68RGM606WXY7NEUj+z8UbqkDTPtSY+cdt1rpn/CRO3fIAZ9PLIr9Iv5VylkMYEoF/pnLsWNKedS2eRuzGFpIVnA1YJbYuhfXJYKRDzrbpxrixrLITezsir0GdLHWmj1NDMTzB3HfPZZdTvQDYumOYAlAR9jf1+0hdwZDJZ7lqMfLPb2P8TtelwB5GrBEvvcmq9Jq1lWfVpoO8OpVs8zlX0kg29CHd/YSIYihkDUj8JoSYO/Swsy3j+uuUwMEyjqeuHtVgoT8jJqJciipKi6ROIicJ9hnijE9XCrLSv4eUvfq16p/iX4B5/Njo7pGBom4yfiuqgLnXQIYvC913tQ7A6nSYzfwNh+3gJp0DfjBuh3mSa82SRjnm95TUHf/xISsJOf32axW3iQzyJ4wtPgMIlXpvCqPN4VlBK8/qmO0EQ+zuFkNsBNwixvrZH8/ZDRup1h99RZINpTDY5ZUY8+q4U09Zk2Y3DjSkxF7yvpQhRNz6B/FlQN8ssmVq9B9QaKc47jo9pIWEJBQ3nCOBZtliv+nJPqtm+Iz1J6M= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB6678.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(1800799015)(366007); DIR:OUT; SFP:1102; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB8502 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM4PEPF00027A63.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: febf995d-9893-4d5e-77f3-08dc58988695 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CDVV07rWMrrZ3rZk6m2h3ZWOQFpPGgUqYYlfSgu4Dq4TY07A6rAHUMBu8MiAm0wjRK3MerP8HG8ZSXHhV/8aUbcYlGHZV2R1BdydqO8GsxDeXUYaABx04ikBXlnSIFSMajUpEz/nswYduy3x4+HSUQz1XtY43MPpU1lbymjk2wCMeRmCH5by1tVKm/fKySpn9qCZcKCTgRrppnyVPFP3ZF6+do48Jj7BSHLc5ObiBzqLNqdTPLJgr0rUqxmbOSlTPCI2kM+BfWclXnoUOhlUcsht6Huq6FFIjqUcA1MuIbI9nigvqTyTLE0ycnggIlO1xwMimnPmdaDapiNjfWOIPSSptkFPK6+zDBIOajJZ2hStVv5B1WQoBC7yBD9TI9cmJ8teT/t6AXjdCGtrQLNcrgyc1KxtC0uLAshah+rWvCk/Ux3BFNSFVVjj3A2UxMX+2rgD+nQCs4DO9E++1cBnZz7XhthHJO5ESi24RAPWlcPmvzeNU8n5tjMd2kGym2Rmlke8Iz5e0qWkW2K8xcaRAGn0ZvlDg2ACv6ONQhawLURZhuWCuNxtgBKlyamTQmoGk99wB2v9pGAuWUtujQEv8OZjKh0ozP39NRwbbAaTs9l/C+0dEH3/G2mpDdANPxnzdHXEbW0WU4qJW2fzZbOs9zbBk/waYVeicVNBdS8Weu6YvOwNG5np7iznYlcINyZb0RNuu5kMlDG/6jYRsvr5JUWmdwt5XHkdBlf8XGMMOnUu0FKsTYhDEzxg/OjGOue+ 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)(376005)(82310400014)(1800799015)(36860700004); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2024 13:25:29.5514 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: febf995d-9893-4d5e-77f3-08dc58988695 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: AM4PEPF00027A63.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR08MB7612 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, 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: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org There was an assumption in some places that the aarch64_fmv_feature_data array contained FEAT_MAX elements. While this assumption held up till now, it is safer and more flexible to use the array size directly. gcc/ChangeLog: * config/aarch64/aarch64.cc (compare_feature_masks): Use ARRAY_SIZE to determine iteration bounds. (aarch64_mangle_decl_assembler_name): Ditto. diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index 1ea84c8bd7386e399f6ffa3a5e36408cf8831fc6..5de842fcc212c78beba1fa99639e79562d718579 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -19899,7 +19899,8 @@ compare_feature_masks (aarch64_fmv_feature_mask mask1, auto diff_mask = mask1 ^ mask2; if (diff_mask == 0ULL) return 0; - for (int i = FEAT_MAX - 1; i > 0; i--) + static const int num_features = ARRAY_SIZE (aarch64_fmv_feature_data); + for (int i = num_features - 1; i > 0; i--) { auto bit_mask = aarch64_fmv_feature_data[i].feature_mask; if (diff_mask & bit_mask) @@ -19982,7 +19983,8 @@ aarch64_mangle_decl_assembler_name (tree decl, tree id) name += "._"; - for (int i = 0; i < FEAT_MAX; i++) + static const int num_features = ARRAY_SIZE (aarch64_fmv_feature_data); + for (int i = 0; i < num_features; i++) { if (feature_mask & aarch64_fmv_feature_data[i].feature_mask) { From patchwork Tue Apr 9 13:26:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Carlotti X-Patchwork-Id: 88242 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 08F373858C39 for ; Tue, 9 Apr 2024 13:27:41 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2040.outbound.protection.outlook.com [40.107.8.40]) by sourceware.org (Postfix) with ESMTPS id BE38C385840D for ; Tue, 9 Apr 2024 13:26:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BE38C385840D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BE38C385840D Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.8.40 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1712669221; cv=pass; b=dIATMA5FQZXDzTlxCKUT/zQIo9ji89lUO2MqnQ002rNXQepuagm/d4SM/j2MHm/zERlAeWelFvvPlhtFpQIv2pm/h30wV6MhQbUGNiUg1l2LCFRvCHHHeINcKbnTYhccFyfzqeUsGa4P7aY4qTa75xT4HTjrqYtZMZ2a8D/P+f0= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1712669221; c=relaxed/simple; bh=/Rs0gpmIW2c723v/qrrfFsElbCiqwy2yu/skFM4gUtw=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=XEoJqhM6jZwM3514XeJpZYIWhBLn5y+gjN7S9PU0GjYvDJivOXk1sdBpY1ILFmIkxX7CCN1JdNEZZ4+4M8Tx/5TO8h+S/kaCgmCNKonN/c3wFbg4TenxFCn9QH+pCqnJhup1vzMyg2NVbZk7SGdjnESNQelTrN/1eHRYZCRt1dk= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=JdUWA+uAZlM3wBWxjE0FpAYM8TjAiEd6CBFmZK06HeGjusxkqpsqLaX+X7bxnL1ZC7OQ1hofFZ+L04N49vg6uB9l/sDMoAHZMOviixrcWJccAkL9fRbzz+wWdZGZyyPjZZWQe1tWE4TuglZiY5FDMjDeMIrdE7m/FBAS9xG42OreNY0oXepHh6cQSCIdxfvsMpHLQW/IKjlY+mH88cZH49j3QXYRRq8s1IFQI9Pf8DLLszmREx0F8QrowxdkQ4EuxJuO5PQFBZeo5XM3n7RsYW17MGnl4AMcERs7e/a0ipLKe7BSJkZp+idA+agMi5EAlkHAJBwOQgm8f+t2zRj2yA== ARC-Message-Signature: i=2; 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=OCMrgna53WfgtSJCGWrkP/moNwQcpp9TB9bYpoWOnkw=; b=Q9ArakjDO3O4TaEVRaSzfnJnIdn3NIF5txqv6XoC4e0159ukcCYoKZOfdNVQHYUr6fBtGlJPiLH1CFWlSTYvm7Kb/3DSWvd/ps9GlEbxkeklv3afbe4ZBhJRCHB5eJAjuE/XxeKSKTkxGfiJ+kDZtc0Obw/zzneRVkbW87Bn/sw86kKjK0xGPLuNALMdj3gDP4Q1ST1z15Sx+dobaw4hm7EiJXuzr5FUW1ZeFYlRs3soCteGxlcO7dbx3bnjqSL+/jelSgw+4eOvnlU8VsocNjIefcsSb/ARSqu3SnMHsS91bqMu3M0GMBcCku/HKQewz/u8IlQZpuh1QRSv106qVA== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=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=OCMrgna53WfgtSJCGWrkP/moNwQcpp9TB9bYpoWOnkw=; b=d7TKKd1iZZouf1H8zNfKRIwUPhsouoL01wHXCWBrojr/kdMJeL25N/x3jHXM68UwWSwfOEmX6ruQigcOm1ih1ITsjwjzhYnJDNidle/GUNHHBJvhc1ahHHHTfqt1qwwHicheCofkDbRxo8RMjx2nwR4y6WnREHI2YrbmRxg/WD0= Received: from AS8PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:20b:451::23) by GV1PR08MB8450.eurprd08.prod.outlook.com (2603:10a6:150:82::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Tue, 9 Apr 2024 13:26:31 +0000 Received: from AM2PEPF0001C716.eurprd05.prod.outlook.com (2603:10a6:20b:451:cafe::a) by AS8PR07CA0023.outlook.office365.com (2603:10a6:20b:451::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.18 via Frontend Transport; Tue, 9 Apr 2024 13:26:31 +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 AM2PEPF0001C716.mail.protection.outlook.com (10.167.16.186) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7452.22 via Frontend Transport; Tue, 9 Apr 2024 13:26:31 +0000 Received: ("Tessian outbound dc0a9029eb2c:v300"); Tue, 09 Apr 2024 13:26:31 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 3c5e444f12667439 X-CR-MTA-TID: 64aa7808 Received: from 0eb629bdcb93.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id F84ADFDD-2A3F-416F-8D92-F4E0508752DD.1; Tue, 09 Apr 2024 13:26:24 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 0eb629bdcb93.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 09 Apr 2024 13:26:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NKznYaR1nRtRfQDxoqZtDDAYmZ1MixVaWXEOXzAQ+mAvoPxWBxoO8lQJbTjf0avvWxL6F6GIEP+xGEYBMhXSFqAUF3qNjOzEoJkV3f2XjOBtiCuVLsYZYdmUfcswsbAY18EDubtkq9xY83qxhu/T42x+Dpc5LrpAF69qQDDrL+JoTeGJ8vsl4aK+gRcbxi/91tKhX97lrDstavUQCVkYzz95Pce/0wsMxGvNHS9wJbVRF+ifg5tFDludKSXX2H4Hk/Xc3TfHzHesyRF1EsR5mtZiah5bXHzT/NVc7JNeoXtadA9Mto1kg3xxQb+txBMfxJZK+SWnlvBWO4ujAJ8dVA== 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=OCMrgna53WfgtSJCGWrkP/moNwQcpp9TB9bYpoWOnkw=; b=dDeSrrx95DLebMFFzz0EVtQtr2apEf22E0ZqhnQIES3xmM71/FDA3+Ou1qN86BxuCxJL7ij6I2NA4sFqLbmJQVnqFid652A44ZVB6GWcb1i4DDxaK2VRagaz90K4VB7IAXhya7mr2cd9I2HxYCaR78ihF21RWQr89cX93ufkfSYlm6RbOaW7hv+kX57nDBSQdOYYyB5I1GKAIrmI870oZgWBVw5/gandkvYHe9gltAJ2pQFPjPDJ7hw9wGMn2AwQDbT1Pjk4/JCrN199BbwI/x2qknDVjmJ73OcozpY9xwqoihFwuyrb6BuWyC/FTG3vwTyCCoer5qj63QlxWaLiBA== 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=OCMrgna53WfgtSJCGWrkP/moNwQcpp9TB9bYpoWOnkw=; b=d7TKKd1iZZouf1H8zNfKRIwUPhsouoL01wHXCWBrojr/kdMJeL25N/x3jHXM68UwWSwfOEmX6ruQigcOm1ih1ITsjwjzhYnJDNidle/GUNHHBJvhc1ahHHHTfqt1qwwHicheCofkDbRxo8RMjx2nwR4y6WnREHI2YrbmRxg/WD0= Received: from AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) by AS8PR08MB8897.eurprd08.prod.outlook.com (2603:10a6:20b:5b8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Tue, 9 Apr 2024 13:26:22 +0000 Received: from AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::791b:686b:e7b9:be90]) by AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::791b:686b:e7b9:be90%5]) with mapi id 15.20.7409.042; Tue, 9 Apr 2024 13:26:22 +0000 Date: Tue, 9 Apr 2024 14:26:18 +0100 From: Andrew Carlotti To: gcc-patches@gcc.gnu.org Cc: Richard Sandiford , Richard Earnshaw Subject: [PATCH 3/5] aarch64: Fix typo and make rdma/rdm alias for FMV Message-ID: <6c0705ff-25ff-f587-9988-6f3b9d8ad5cf@e124511.cambridge.arm.com> References: <33371799-7353-cd99-3f78-9abe31ad24ec@e124511.cambridge.arm.com> Content-Disposition: inline In-Reply-To: <33371799-7353-cd99-3f78-9abe31ad24ec@e124511.cambridge.arm.com> X-ClientProxiedBy: LO6P123CA0050.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:310::6) To AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8PR08MB6678:EE_|AS8PR08MB8897:EE_|AM2PEPF0001C716:EE_|GV1PR08MB8450:EE_ 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: zrBPmXLOTn97tJRYt2mOxtYG+7JSzJD4zMCSA7M9zKybSGVJapxJSiawJphlYoINN0Dz7vy+khh6Xwd/9ARvYOQeU8qt4xZuvhnLsYCLPUmnxDnkrkhFDr+Z5vSkFAEKwg+gtbsO8XmZ4Wm7KQlMm2WJECobFgO4wTIjQ6S47BdUYJjrNEbx1Y8xd3SWce8UduuG3pfIqCzCKn6jxvrYflcIz4m7IrGB3hi1dExM7G5hMPMcUkQmbG7Cng8UDnVI2xKY3Vuu9LnjyOYN3cpbsxE+oaYfh3o56VOT0M1kGDtNjGpPmEZL6VKQ8Gk2jrq3+7n2U9mAEfwlwZ9TeoUNNlY2inyeGHnbjWebnsiSIDvrMvLzIuXJ2B5WXpbsOIVUvZ87XCHRxFKqQzrtFoeXtFGM+YxcGnsXDXutFesAA+DvCFkOpYs46YzTGzvdJeLV0c2PKpkKbqrvbGaKKsbcQ25pMhYLzEbVK4lkNAGX/KqnFUD281/Lp3/5VAtS/Pi1fv6AxxSo71uH5hwuNs2eeA9T0XlFJQldZ7Sk/IsCVF1hZfuT4W1wM7UxAIadVO6nnWKuXtO21nsveQgtHcnYfpMRE1b7GDtSUtOZ2K7mP0a0ZIRcpGRaD5QxsMne9baMGp6Rzc05+UbdZ2MoGsa/MWXct8vT10QHs0Wn05WeenA= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB6678.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(376005)(1800799015); DIR:OUT; SFP:1102; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB8897 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM2PEPF0001C716.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c715e32b-b003-42db-89ad-08dc5898ab8c X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wGmzvwkZW8lFOD3hDkeT3KWjgq7hTdUG1lGv6/wRfvyERsN3N2uaoLySlxy3s26qpelddJpRrkGlLdjdKc5QB2AS+QgQzMhkbQXWVtX92f6rgbdKcgWdEbMoTm6EVWqyZr+/Sft7OJtAAu6vHkcWXvVm4AxMDaSTRbRh85J/DM/6UwMaogbK8gzsSKtCFYKPw8Hqr0IuVwEhG5WjGeB/QGva/gaM5ENHd/pH572fVYnttOMNz4CMiNK4D8/xhAOIYKlhK9ree+993DWlRDgb62GwQazCCXrMw4d7KwmfBVj7GGyXa1ZBB7uFVwU7udm//YM4JFF8wNRa6rkk6YF8cAbjin8wUYGJdRJJewvx5Rbw2UwKYrRdLOFG+yKL1x7cbefo4aDXA4+8VUYmNq1qtBbJWBXzNVHM5rSY21Yt8rub66HNga7t9GJkKNynRSIZ9gqWdzBETGDsm0gNvZ7PHLDhwXyr/HoPbPss5l+1OOTRipoFSEpiJvIAH90eWI9CXnqt7zl4xEqP8Q89yp7nyJk+QFxfPdJ3nDRjuRPuGl7DK6IdOMtM4+ayqc4CeplW4uV1Fi9dLY0hvkQjHgjCHjm23mu46Xaw84ueFXQd7wavIj/6687KfdqsVOHKKSkon2gHF1cFedblyI9GO+OKvuSuWMYmq84fMP5R26CgwhOWpmrAA/rfskpJ90TacGKjhWXiMeywO4jsqKkanJekCgVTxXCBwxSfH2os49YYZQce9mEEvXbwdFD2QSvqBsMq 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)(82310400014)(36860700004)(376005)(1800799015); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2024 13:26:31.5686 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c715e32b-b003-42db-89ad-08dc5898ab8c 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: AM2PEPF0001C716.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB8450 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, 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: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org gcc/ChangeLog: * config/aarch64/aarch64-option-extensions.def: Fix "rmd"->"rdm", and add FMV to "rdma". * config/aarch64/aarch64.cc (FEAT_RDMA): Define as FEAT_RDM. diff --git a/gcc/config/aarch64/aarch64-option-extensions.def b/gcc/config/aarch64/aarch64-option-extensions.def index 0078dd092884a94d2a339b5238b8d19747ff9fa1..b7b307b24eadd83a6d083955f5b30814b7212712 100644 --- a/gcc/config/aarch64/aarch64-option-extensions.def +++ b/gcc/config/aarch64/aarch64-option-extensions.def @@ -117,9 +117,10 @@ AARCH64_OPT_FMV_EXTENSION("sm4", SM4, (SIMD), (), (), "sm3 sm4") /* An explicit +rdma implies +simd, but +rdma+nosimd still enables scalar RDMA instructions. */ -AARCH64_OPT_EXTENSION("rdma", RDMA, (), (SIMD), (), "asimdrdm") +AARCH64_OPT_FMV_EXTENSION("rdma", RDMA, (), (SIMD), (), "asimdrdm") -AARCH64_FMV_FEATURE("rmd", RDM, (RDMA)) +/* rdm is an alias for rdma. */ +AARCH64_FMV_FEATURE("rdm", RDM, (RDMA)) AARCH64_OPT_FMV_EXTENSION("crc", CRC, (), (), (), "crc32") diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index 5de842fcc212c78beba1fa99639e79562d718579..b5c51b2cf1dd2f15e0ee1ac21d7959507c05c298 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -19657,6 +19657,10 @@ typedef struct #define AARCH64_FMV_FEATURE(NAME, FEAT_NAME, C) \ {NAME, 1ULL << FEAT_##FEAT_NAME, ::feature_deps::fmv_deps_##FEAT_NAME}, +/* The "rdma" alias uses a different FEAT_NAME to avoid a duplicate + feature_deps name. */ +#define FEAT_RDMA FEAT_RDM + /* FMV features are listed in priority order, to make it easier to sort target strings. */ static aarch64_fmv_feature_datum aarch64_fmv_feature_data[] = { From patchwork Tue Apr 9 13:26:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Carlotti X-Patchwork-Id: 88241 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 DC0B5384641C for ; Tue, 9 Apr 2024 13:27:37 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2044.outbound.protection.outlook.com [40.107.13.44]) by sourceware.org (Postfix) with ESMTPS id 113B23861021 for ; Tue, 9 Apr 2024 13:26:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 113B23861021 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 113B23861021 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.13.44 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1712669216; cv=pass; b=qvzuSTAos5q7lC3Z9BUoyfl5RhQzRQPKYM1cXJr4w3PuMLt0wpI+wllGYC8f6YqucgzAk3tqQ+4QOu9miFqmueakGXrlQXcpYuo8NtqDmFJZZcihwebLXTLfz7ao+Wz9w2IrvZmzCr7Yh+IHQgbr9btp4P7sKyEmzPOizCzR/TY= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1712669216; c=relaxed/simple; bh=YULh9jxQDNhh+d8BKKduIWd7rdZFPL/725tuq96qkiU=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=GrF0rFex+z5kc0iRbFd3RkFWUm7ijForKBQ2iEAR2Tp7GDtB+PkprvA23yeLJ2X4Iz+9At/IKqwJd0LOCm53HKrmjruzaxjFAY3PMseOwIPbH3B9umIVKLnBiIq74uG/23IZCtGqt6UrOOFLRn20/giUMMIptjvKNJmbgaiBRSI= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=lwOK8FCCmj7Izz/DKHTCuj0iip22ELvC3RCttsx3ZfBFtUfg2yvxrMZC6SfWRkGRwj/pP1TRu4IdfKINiuAU1UgF9CCmRvyp2oweOEpEkBmujUPTqCPmAA1BzZe11wb66VbJGMX441CpGcvw7pI0V+WFMHg9SnhLwmUbcTfNt+BXz8HWxFdAuyh5Kmwk9tEzclMomG5HovFnyf3zetg2O6XPv2eVQ6QfyLd0B+xClHgJUafz/WqEPFCusQNYNt6YisPyWX7f7kPR4WfDmw+0a6aVavWW4zHJBM6vMm17iTARgDtttezDqXoRQhao6viSrN+dU8884mqAc97ihcgAsw== ARC-Message-Signature: i=2; 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=bov9wkLSK4KwHvdnmycaK0BxtnPii3aVm7Ex1a2UA44=; b=WkZum9GRMusIND9lIGkWQDmqJ2LQt13vSOOsGAfLWfTatZW/+v90bunb/n6C2zJb51PQEAsDAITK4wBlWltrWlRk0P/XhlsEBY14CJnR65WWP9mK5b0msTcs3O1ta+xsanyEJKO8pyd+wO/LPj585uobYPpsHM8eDcypmv+lxh4VCvFE3zxsUCU+bWRnLHe57YYiq4DVyYP2bKttykukYUMUcldCNmFS1t/Cl9yu5EKPGSi8Ywj98cw3JNkend2X5N4Elbhw/+RAoX8dqLo+6dyYC9iYLNC+EwhZXM3jFXyEpMrLwYPOg4kgPWpByPyopbratJ2hvyXVbW8Mji53og== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=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=bov9wkLSK4KwHvdnmycaK0BxtnPii3aVm7Ex1a2UA44=; b=UDBSzwVfcpm47LKyFYZk7l4WuO2C9aox1BnaPQbeOM0r00La6/KBY2B7ISjH1vZiLqZAfWyIjoG18iVjx0rb+q6UBsvHHRDiSkrwao97R9g+IsyrQU1XUlZRgra7M6Z6htj6x8z233ECD9/ystgYo/3OXguohjJimh1O7e4RoFw= Received: from AM0PR06CA0114.eurprd06.prod.outlook.com (2603:10a6:208:ab::19) by DBAPR08MB5685.eurprd08.prod.outlook.com (2603:10a6:10:1ad::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Tue, 9 Apr 2024 13:26:51 +0000 Received: from AM4PEPF00027A68.eurprd04.prod.outlook.com (2603:10a6:208:ab:cafe::c3) by AM0PR06CA0114.outlook.office365.com (2603:10a6:208:ab::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.36 via Frontend Transport; Tue, 9 Apr 2024 13:26:51 +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 AM4PEPF00027A68.mail.protection.outlook.com (10.167.16.85) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7452.22 via Frontend Transport; Tue, 9 Apr 2024 13:26:50 +0000 Received: ("Tessian outbound dc0a9029eb2c:v300"); Tue, 09 Apr 2024 13:26:50 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4a192562c12bb4df X-CR-MTA-TID: 64aa7808 Received: from 09ede82c7e62.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id BE222D73-768A-4366-9FE8-904A4DB4C95D.1; Tue, 09 Apr 2024 13:26:44 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 09ede82c7e62.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 09 Apr 2024 13:26:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AW19DvN6hUIlGElyIklA+s2wdNvC96Pg3MWEmgFOf5jSQcZEZheuKs8c9ttoVpZpA3gJKuMeSsXFEUrQSyFQrAnBbOfplzGqpExpR1l9qJ3QSWyher9keeXOWhyag3WzIzkKdBq3NCMPlTRuVamRyP8pkSS7Iw8ZpFzzvatirYBockLpqQdi9rOXGUJI8kXgeeZ/m9SWnkOc4tInQtZ1tHLDD/YqvM8CgVS4nu7L9BPh+fmLsIqXylu5Xn/0Nmdk5BQ2iK6X4ApwYelscBhOTxDEkvJQij6chSISlujCdl7Gj+dYmvNp09xcPz5AlueM/nZgoZbPKTHC8Hj4vStanQ== 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=bov9wkLSK4KwHvdnmycaK0BxtnPii3aVm7Ex1a2UA44=; b=ICHCD4pZR4cJHOxJpl2myQaL4z57JD1upvYnwA51IL3T+cLjXacQWHEM+1bQ1uXij2lmMniLXaFKlhxoPOGyjY17OPqctkqxpqtKi27OhvWXcf62FMXm8ocxuOad/iERQQ61MZP5rvCiwmv8rB+sptcVop8yzn3Xf0mo2yUAn9V6MgwTCsew21ueYZQN3NLoRTk94qmnifhQOH43nF5/HsPgFGJ2G8/u50j12Odwe0NA1DOrMXeKYrk9LgdISzWq6reuk+55FePw4V7yy3GBVWdxnjh9ZLtSa9KSwaaCqmHc6AM+yJZQD26wIKjDx/Cr6CC+ul5DlAtsTm21sQM76w== 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=bov9wkLSK4KwHvdnmycaK0BxtnPii3aVm7Ex1a2UA44=; b=UDBSzwVfcpm47LKyFYZk7l4WuO2C9aox1BnaPQbeOM0r00La6/KBY2B7ISjH1vZiLqZAfWyIjoG18iVjx0rb+q6UBsvHHRDiSkrwao97R9g+IsyrQU1XUlZRgra7M6Z6htj6x8z233ECD9/ystgYo/3OXguohjJimh1O7e4RoFw= Received: from AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) by AS2PR08MB8502.eurprd08.prod.outlook.com (2603:10a6:20b:55d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Tue, 9 Apr 2024 13:26:42 +0000 Received: from AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::791b:686b:e7b9:be90]) by AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::791b:686b:e7b9:be90%5]) with mapi id 15.20.7409.042; Tue, 9 Apr 2024 13:26:42 +0000 Date: Tue, 9 Apr 2024 14:26:39 +0100 From: Andrew Carlotti To: gcc-patches@gcc.gnu.org Cc: Richard Sandiford , Richard Earnshaw Subject: [PATCH 4/5] aarch64: Remove unsupported FMV features Message-ID: References: <33371799-7353-cd99-3f78-9abe31ad24ec@e124511.cambridge.arm.com> Content-Disposition: inline In-Reply-To: <33371799-7353-cd99-3f78-9abe31ad24ec@e124511.cambridge.arm.com> X-ClientProxiedBy: LO4P123CA0432.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18b::23) To AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8PR08MB6678:EE_|AS2PR08MB8502:EE_|AM4PEPF00027A68:EE_|DBAPR08MB5685:EE_ 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: 56RQd0gQqAKf/EQJdd1pMj9+xH0+wv4V6vSkN+xzJ+DQTxnsx3Ih1roQXgjl8sJop0Xt84My6LZb7I+9jyu4/o0yLhPhjnwVQnfbxBeIyjfXrWmoEsDIihj5vU3nIJka26UGHxaEPrLWu1iP/0fnNFkOXXuiAXwoKxb12u3c61rm36A+bAEPAoB9L5dEvlDKf/JvlCT+FZUo4WLcyJWftbIDXKWCvQB261R84MBoJs0DvGY26qCBPo/b1fnkXwz+2KvoANiQfLzSkveXrNg1yJOmvcXEuNyhQVxsQaNbQ7TGtoRfh7BRr4EwRnXg92+pjgeypAoD1/mX7ekQdxpv2mqgwM9QFS64z2mWKP83tZ89Ye3VCXarzRENKy2cXrneQDyxZj4VWYj8La6SX1fkDHYzPhkiAFkgwMg2AwUzI7Ckh+KxHMgbdLTvUSnTwXlcKwT4w9NmlmGIxPwazunLw2wA4aPjedUGaK4xc3dJJ9VAzwWVgrPRylvsZOsq5+BZtqW6G+736okEuBr+i96pAWkeqJSR1ZI9EgzfHlEWxkcsmQIY+RTWQqjtAGwAuOBJ7bdAd18+Mub9YEnCBIk+2dBZS3qQGY7vS0eN0GozFlRoHqfXizJWUSMpO+Bja9inapvSnLHqqZKuiMamjDZrT7WbfLC/umhy/BwPqaQT4gg= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB6678.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(1800799015)(366007); DIR:OUT; SFP:1102; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB8502 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM4PEPF00027A68.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2ef67603-acad-41d8-dda4-08dc5898b70a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: v1u6CUmq+QnVfBwkMoeyKMa6jSBEwSjxMPvIy4+6AuJGZ+otxDo44eT750XsuwzOZkBdtz1mRLsM5GvZkeELAz4KPKVhLkrF8uVzGHmREMk3IS0vJ1x6ZkmY5/nyf01DZxnID0Vkj6J5ruGe8dxtPU38gOEv5VBuNJTexusMFSMVrfuH8g9yk5w5J8IMqiDyQK9zVZTfawSznwhFMLJvWvD6YU5JMYF2IS8lxS4Sclv6tBqfCr0C8yTYEytWFs1iRuk9D8Z7CisXaJFFIcxqYuLKlS7HunFSIw/eeIbQL/cv55KaiaYGe2lgGVXTtVCHV07sByy4hR0xebNQbjQqiCE4VYfP4Z5D0EnljZDqSGFMoxMGmPl9iPm8mwWC7nvAZBfzylGDOwHw7ygZEPXUyq5k3v39NqqBv9EpyB7NSrHfPMIsWM+a0NFPlwy2JCBN3nwvb8wzslo2SK4rl5LpLnuNyy+rGaJqbSrbq3LSkvnobUku5feGDsEzzhXgOc0V+Nc/FrG+lg9QB8Ey4P63tyg7TjIjwWYDZNO+o/OaLI+gmr6Y4cFd+G5TKUxepYu/S6hNBRHUmw5069z9EdzSssc7BRtVlWP8TCSSEthxyoEMOxMWpvCvDmZ+p6f7HlmJ5xO+s1o+mtpLuw2hXrNWUD6lSvU/sH5DdBCwwdHVlUQVDzU1TuDrZ+xp7TTZSf99cNoZCeW9Flj8QD6DKVa7oGD/1gilyXuY3puV2H8Ch04sOeG2nyTQ5KcQ5YlR6d2t 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)(376005)(1800799015)(36860700004)(82310400014); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2024 13:26:50.8514 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2ef67603-acad-41d8-dda4-08dc5898b70a 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: AM4PEPF00027A68.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR08MB5685 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, 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: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org It currently isn't possible to support function multiversioning features properly in GCC without also enabling the extension in the command line options (with the exception of features such as "rpres" that do not require assembler support). We therefore remove unsupported features from GCC's list of FMV features. Some of these features ("fcma", "jscvt", "frintts", "flagm2", "wfxt", "rcpc2", and perhaps "dpb" and "dpb2") will be added back in the future once support for the command line option has been added. The rest of the removed features I have proposed removing from the ACLE specification as well, since it doesn't seem worthwhile to include support for them; see the ACLE pull request for more detailed justification: https://github.com/ARM-software/acle/pull/315 gcc/ChangeLog: * config/aarch64/aarch64-option-extensions.def: Remove "flagm2", "sha1", "pmull", "dit", "dpb", "dpb2", "jscvt", "fcma", "rcpc2", "frintts", "dgh", "ebf16", "sve-bf16", "sve-ebf16", "sve-i8mm", "sve2-pmull128", "memtag3", "bti" and "wfxt" entries. diff --git a/gcc/config/aarch64/aarch64-option-extensions.def b/gcc/config/aarch64/aarch64-option-extensions.def index b7b307b24eadd83a6d083955f5b30814b7212712..54bbf9c41e794786dffd69dd103fcbbca0a49f1f 100644 --- a/gcc/config/aarch64/aarch64-option-extensions.def +++ b/gcc/config/aarch64/aarch64-option-extensions.def @@ -103,8 +103,6 @@ AARCH64_OPT_FMV_EXTENSION("rng", RNG, (), (), (), "rng") AARCH64_OPT_FMV_EXTENSION("flagm", FLAGM, (), (), (), "flagm") -AARCH64_FMV_FEATURE("flagm2", FLAGM2, (FLAGM)) - AARCH64_OPT_FMV_EXTENSION("lse", LSE, (), (), (), "atomics") AARCH64_OPT_FMV_EXTENSION("fp", FP, (), (), (), "fp") @@ -124,16 +122,12 @@ AARCH64_FMV_FEATURE("rdm", RDM, (RDMA)) AARCH64_OPT_FMV_EXTENSION("crc", CRC, (), (), (), "crc32") -AARCH64_FMV_FEATURE("sha1", SHA1, ()) - AARCH64_OPT_FMV_EXTENSION("sha2", SHA2, (SIMD), (), (), "sha1 sha2") AARCH64_FMV_FEATURE("sha3", SHA3, (SHA3)) AARCH64_OPT_FMV_EXTENSION("aes", AES, (SIMD), (), (), "aes") -AARCH64_FMV_FEATURE("pmull", PMULL, ()) - /* +nocrypto disables AES, SHA2 and SM4, and anything that depends on them (such as SHA3 and the SVE2 crypto extensions). */ AARCH64_OPT_EXTENSION("crypto", CRYPTO, (AES, SHA2), (), (AES, SHA2, SM4), @@ -157,44 +151,20 @@ AARCH64_OPT_EXTENSION("fp16fml", F16FML, (), (F16), (), "asimdfhm") AARCH64_FMV_FEATURE("fp16fml", FP16FML, (F16FML)) -AARCH64_FMV_FEATURE("dit", DIT, ()) - -AARCH64_FMV_FEATURE("dpb", DPB, ()) - -AARCH64_FMV_FEATURE("dpb2", DPB2, ()) - -AARCH64_FMV_FEATURE("jscvt", JSCVT, ()) - -AARCH64_FMV_FEATURE("fcma", FCMA, (SIMD)) - AARCH64_OPT_FMV_EXTENSION("rcpc", RCPC, (), (), (), "lrcpc") -AARCH64_FMV_FEATURE("rcpc2", RCPC2, (RCPC)) - AARCH64_OPT_FMV_EXTENSION("rcpc3", RCPC3, (), (), (), "lrcpc3") -AARCH64_FMV_FEATURE("frintts", FRINTTS, ()) - -AARCH64_FMV_FEATURE("dgh", DGH, ()) - AARCH64_OPT_FMV_EXTENSION("i8mm", I8MM, (SIMD), (), (), "i8mm") /* An explicit +bf16 implies +simd, but +bf16+nosimd still enables scalar BF16 instructions. */ AARCH64_OPT_FMV_EXTENSION("bf16", BF16, (FP), (SIMD), (), "bf16") -AARCH64_FMV_FEATURE("ebf16", EBF16, (BF16)) - AARCH64_FMV_FEATURE("rpres", RPRES, ()) AARCH64_OPT_FMV_EXTENSION("sve", SVE, (SIMD, F16), (), (), "sve") -AARCH64_FMV_FEATURE("sve-bf16", SVE_BF16, (SVE, BF16)) - -AARCH64_FMV_FEATURE("sve-ebf16", SVE_EBF16, (SVE, BF16)) - -AARCH64_FMV_FEATURE("sve-i8mm", SVE_I8MM, (SVE, I8MM)) - AARCH64_OPT_EXTENSION("f32mm", F32MM, (SVE), (), (), "f32mm") AARCH64_FMV_FEATURE("f32mm", SVE_F32MM, (F32MM)) @@ -209,8 +179,6 @@ AARCH64_OPT_EXTENSION("sve2-aes", SVE2_AES, (SVE2, AES), (), (), "sveaes") AARCH64_FMV_FEATURE("sve2-aes", SVE_AES, (SVE2_AES)) -AARCH64_FMV_FEATURE("sve2-pmull128", SVE_PMULL128, (SVE2)) - AARCH64_OPT_EXTENSION("sve2-bitperm", SVE2_BITPERM, (SVE2), (), (), "svebitperm") @@ -230,8 +198,6 @@ AARCH64_OPT_FMV_EXTENSION("memtag", MEMTAG, (), (), (), "") AARCH64_FMV_FEATURE("memtag2", MEMTAG2, (MEMTAG)) -AARCH64_FMV_FEATURE("memtag3", MEMTAG3, (MEMTAG)) - AARCH64_OPT_FMV_EXTENSION("sb", SB, (), (), (), "sb") AARCH64_OPT_FMV_EXTENSION("predres", PREDRES, (), (), (), "") @@ -240,8 +206,6 @@ AARCH64_OPT_FMV_EXTENSION("ssbs", SSBS, (), (), (), "ssbs") AARCH64_FMV_FEATURE("ssbs2", SSBS2, (SSBS)) -AARCH64_FMV_FEATURE("bti", BTI, ()) - AARCH64_OPT_EXTENSION("profile", PROFILE, (), (), (), "") AARCH64_OPT_EXTENSION("tme", TME, (), (), (), "") @@ -256,8 +220,6 @@ AARCH64_FMV_FEATURE("ls64_v", LS64_V, ()) AARCH64_FMV_FEATURE("ls64_accdata", LS64_ACCDATA, (LS64)) -AARCH64_FMV_FEATURE("wfxt", WFXT, ()) - AARCH64_OPT_EXTENSION("sme-f64f64", SME_F64F64, (SME), (), (), "") AARCH64_FMV_FEATURE("sme-f64f64", SME_F64, (SME_F64F64)) From patchwork Tue Apr 9 13:27:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Carlotti X-Patchwork-Id: 88243 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 89F95385841C for ; Tue, 9 Apr 2024 13:28:54 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2040.outbound.protection.outlook.com [40.107.22.40]) by sourceware.org (Postfix) with ESMTPS id 4D216384773E for ; Tue, 9 Apr 2024 13:27:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4D216384773E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4D216384773E Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.22.40 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1712669249; cv=pass; b=X7UlwI6r1SBzDGK0ZoiMjtto/JAUnUalci01B+xA2zZMAEsQaJy3KK4LX6QxRvHsXQIRUorY8yHq0swV0pN0MEdvpnlCVVnAV1NWLOixiNFLki+aYDXnZ8mlrylIOmArTkaEgptKoinT+K7u/Hdem+FbnwawHOlMq1ai+iZ82N8= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1712669249; c=relaxed/simple; bh=5iRkwsA6Dhckpqh8ei9IHv8e4ketfOfMLKeybIzROxM=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=q6y2WuVVYOcYPkL6NM8N+QYcWbwnhMjxUknBX5LH4jjyrfYk8elfP5TRTp4g37fiIbu/4ZCETkYSTrA4jSOUhVpF0EB5+hlCBMMb8F/SX5cIwfNVgyVcgTnxi2KN0Q/aisq+bo//OTwIU3Uuj1pti/gsjVuyR645b/5Ilm9Bk1Y= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=Z0D+oXcggDP+qcmlCPpOCNLI1z7FVkrd+Ztyx/KkUr7mElxcA5hIgTsT6su7iv3GvAXWqePIx0+E/JXYGm+j6B1QAS1yqXCy1Gr65HVzwGe/YhT183uUXlKuoN4IDqSxf2Q0Dx8ZMfbYVievP8gJSLwdVrz7zDEcQyQG+ef3jjiqGsa4W2mqRDb7LaVU0P1iCgIPxvMqjFWpiQmjxmQKCluENjTrXwGAsaZIqb0sAmTLKKKYnX2VcO+EZcVmICmvBqHIXZeJY1deTZWYbUE0ZxdK6U6Z3sb2pt+NRvNJziGqnYbFnJJ8z8dIgKt/x8id4us22E2cN4/OwJ7dSwvRvA== ARC-Message-Signature: i=2; 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=0GoG4XL/5JtBj1lnEi8IrLL1paT0dSrerqSqjVtLhQU=; b=R24G4+/f6wjpWxJDjIo92nEuyulJcb4SpvK4Os2Ugv+ttiAp1458ME2/c2T7UiQIftD/2ZBsYAPAEjthPB3nKI9O7WYuNc5z1TQxSBpuCAsJOYQqVVtbnDEwcqH7t6yxaq3R8n8IJZCK3KahnsrdgzsCXoBBv/3bEQACwS9pinyG/TSOzjUPeMuDD9A5ozvlinJPm/Wsa2larRX9FYbzw+PtSoDFcduWO3KUWQHDtLQvyVFx6gWQ/yKoScsjXsZxD0sNdE5/3e2OoA15OivBTdk6WDEcYaXecmnlueaTNptTijNg6NzCeGKOGRpn45YZxKJk/KTtR7L+GUtqCujDHQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=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=0GoG4XL/5JtBj1lnEi8IrLL1paT0dSrerqSqjVtLhQU=; b=jwIuz9+g9fYRDQ1qobtYwRsqRLSm/8YlQ5lAMJWB6bQwusjsBYLoCi/uffYGuWUrDtsb6rydVk2Vv8mMVGdtiD4AZv8ko3bXK/Qh+FocsA2SKh0pASKDrdTB1/VxP/d6HQEYmTD1BrSx3ISzKvV8nU2vy11gBFpSk2KKrKuKEzg= Received: from DU2PR04CA0151.eurprd04.prod.outlook.com (2603:10a6:10:2b0::6) by AS2PR08MB9895.eurprd08.prod.outlook.com (2603:10a6:20b:5ff::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Tue, 9 Apr 2024 13:27:24 +0000 Received: from DB5PEPF00014B98.eurprd02.prod.outlook.com (2603:10a6:10:2b0:cafe::2a) by DU2PR04CA0151.outlook.office365.com (2603:10a6:10:2b0::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.36 via Frontend Transport; Tue, 9 Apr 2024 13:27:24 +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 DB5PEPF00014B98.mail.protection.outlook.com (10.167.8.165) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7452.22 via Frontend Transport; Tue, 9 Apr 2024 13:27:24 +0000 Received: ("Tessian outbound 5ad6c4395be7:v300"); Tue, 09 Apr 2024 13:27:24 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: f0a8741c6875cc2f X-CR-MTA-TID: 64aa7808 Received: from 40b598750bd5.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id D14B2FEF-500E-461D-AB3F-3B6D0C2C1D7D.1; Tue, 09 Apr 2024 13:27:17 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 40b598750bd5.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 09 Apr 2024 13:27:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OiEW4aV59XzNkH3etHy7Kb22IuPxuRej3ugV823tjvU4zFjkFoQr5c3XigDhfOWvWJc/BLA/1NrZ4vcZ985/b6QZEWVoV4CoGWQw6ognZcmpOSGm4FXuyJUxugJpIVYCWEh+L7cf5vM6OJJTl0C/RyB0ftue2wKcKqC/rLj4YmdnFto6KH8H4916JLpayiKLMzfq0+W4ZwTWs13fqrUqr0xw5ERfJEs7Y9b1HL7G6DwcOBGqGV9jTvIWwPg3MR9UsNIjUre73XsZM9g2ehFpWYzve7Es+kZJr9zx9N7ZczSc++1tzptOLUiy9RjX/rCphZ0p41dLilgTat3NdyUbSA== 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=0GoG4XL/5JtBj1lnEi8IrLL1paT0dSrerqSqjVtLhQU=; b=XsjqggTVhEZLQqBqsHWO47hV3u5SFnib4RUyTwKeSfGV0+GzP/EXHGlPDDoxCMe0kfMrVcS9bSjocNYgyXN8DMFJwzHJRsFbWV1pf+54ERmz9+Tp5ctJpAHt4jMYiUv5uV+vjbdrFEQg6UghwyYlMXOvA0sQVkESG9dNm99Om7+gcjgIaV8eQiYbc0cMKzwhWvjnzrpjlvdEDLY5MxhUYBPSFBMogHcOAV9Iz4wJb35KvtvRKi45oq/YhkfiCMCnOHypf+HihMCtMiOoXL3FlTHfOBmrfGnNPn1u1+iUkcI1Rcx2RJvFldKjMJV/llzpqiSkwViXPBWxlKq2kV7Lgg== 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=0GoG4XL/5JtBj1lnEi8IrLL1paT0dSrerqSqjVtLhQU=; b=jwIuz9+g9fYRDQ1qobtYwRsqRLSm/8YlQ5lAMJWB6bQwusjsBYLoCi/uffYGuWUrDtsb6rydVk2Vv8mMVGdtiD4AZv8ko3bXK/Qh+FocsA2SKh0pASKDrdTB1/VxP/d6HQEYmTD1BrSx3ISzKvV8nU2vy11gBFpSk2KKrKuKEzg= Received: from AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) by AS2PR08MB8502.eurprd08.prod.outlook.com (2603:10a6:20b:55d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Tue, 9 Apr 2024 13:27:15 +0000 Received: from AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::791b:686b:e7b9:be90]) by AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::791b:686b:e7b9:be90%5]) with mapi id 15.20.7409.042; Tue, 9 Apr 2024 13:27:15 +0000 Date: Tue, 9 Apr 2024 14:27:13 +0100 From: Andrew Carlotti To: gcc-patches@gcc.gnu.org Cc: Richard Sandiford , Richard Earnshaw Subject: [PATCH 5/5] aarch64: Combine some FMV features Message-ID: <34f71bf1-6054-7511-9b0b-efb504e0a943@e124511.cambridge.arm.com> References: <33371799-7353-cd99-3f78-9abe31ad24ec@e124511.cambridge.arm.com> Content-Disposition: inline In-Reply-To: <33371799-7353-cd99-3f78-9abe31ad24ec@e124511.cambridge.arm.com> X-ClientProxiedBy: LO6P123CA0018.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:313::11) To AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8PR08MB6678:EE_|AS2PR08MB8502:EE_|DB5PEPF00014B98:EE_|AS2PR08MB9895:EE_ 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: bzShCN3TT5bspVgXKgY8Y75MNQMBdcljcZhRVoV4V6ixGbh20mXL3QcUVC/6bt3rJUQnTGIhOyhbu8nHkdp1UcP5GSc+iNjcsmoGE+R/HS468exONtzOinj1yOBKRzPLwPi+a3vP75VMCmUbx+LxeXgj8qOYgJYxctjbDr1OMh3rC0VR0+QSzOsgzPutOXsu1hXRkqJE6jqoO5b6sSU0+DIAHJ0LBd6hexneYEDrQmke2n/B02LGWb4rRz4+4yar0FMjGx+ukU7StUVJDT3VUQEj6qM7LrBJqdxKWF9cnp6XQDakMsVyJaDPzrZzN7Zuj7SLOyODHKWVCmkGSJkvkYmT3zfrrnIUoW32xPgHs8R28/z+BIAM2wA5QAcROWb2X6hPnlxQ0J55/gAa7YsoQnj92u4S7gTq8ZQrLLBf8BZkpz0GuO6pwTI39+x+V1VJhY10YZOhAKVofnTCodA3CPpWTcCJKyYE5OcjN45KVle8noKyHYHh/ChmkpBg+ZCAJFv4kwdq8KRPDbbjlbBXf7usZPfxwh2ht0NrKVORrX1zGYANnKfsTDC9jPo7LlNHUNKp7WIzWEXmi4ahdbcH2dh7fo+uyFSjGL3Er508WjVHmlBlzOcx4xje3Etn9GBWaOcX6MLkwsyFPtXSRW5hztmESg4WCXA+0xWk+4HsaRs= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB6678.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(1800799015)(366007); DIR:OUT; SFP:1102; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB8502 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5PEPF00014B98.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1bcced9f-34da-40d5-094f-08dc5898caf2 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NzDii9jv07U4K2xeAvruLUsnzq7GcACKf8vFvW61nLePzBzWUzGJWwRtfEZZEjc1M72Ud9wxsm27xxhEP+MA1Tvzx7vMpoRP7EykPRW1V3lULFkIsXhxsxTrkEs+es+c3OiHZB+2BflkXi8XZmnWgPXsQV1Jj/loEUsUrxwMTZlGnObGaOXhzdIXx4pw71D9U9XqIKinUKtFmS3L9IAYXKIbNhl6PpyR95niLN8oJtQ3/icG0IXDCCuR8Svb55RZW5ZGARwLKJs7Kjla7hTwZnHeCA+DwhW1QKTMai1bD5IN3zfhAdHBCxGMxXboXcsBJgFbfStZ4LLDXskIao+0MpWqt8u39JodeyH2CQjmmBSMD8gYUM8anUhgjYyOLOuG9W3OMjkzJHZC/Mi/CgeDetdnB3CisFiDgSlAhhmTpbhp7tgxxE6Ji8Q0wAaPnGUprLHDe/Xyau53CxhCYQXgAQ0zVzMiEuZT7Vjt/3bVwOCvGix2R6DTuKz3nXr7oxaX8dL7wl4FqOcqEb8bJSgeyuKCmr7cDT7/L0K57wgzJvrqu1cHv1uGp9B3M9bIzOZHiAzdpEANWBjuCFBm5kcHr7zfuskyF3GxIZjskUWn3V3fqk21J/IA5mSrWEHr5iuqrMrExbWWrE04XmAXDVjcLDAxvi0pzvOfAu31Ng2EJOn2LEToEr1Btz94zEOFadR4bDuQagX46AHr3+3M/jtb2QhllsgQMsboZ0bGjJynAnEP3H5aIsJNyteowliox4kO 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)(376005)(82310400014)(1800799015)(36860700004); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2024 13:27:24.2900 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1bcced9f-34da-40d5-094f-08dc5898caf2 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: DB5PEPF00014B98.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB9895 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, 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: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Some architecture features have been combined under a single command line flag, but have been assigned multiple FMV feature names with the command line flag name enabling only a subset of these features in the FMV specification. Remove the unsupported FMV subfeatures, and rename the remaining features with the corresponding command line flag names. This change is also proposed in the specification: https://github.com/ARM-software/acle/pull/315 gcc/ChangeLog: * config/aarch64/aarch64-option-extensions.def: Combine "memtag2" into "memtag", "ssbs2" into "ssbs", and "ls64_v and ls64_accdata" into "ls64". diff --git a/gcc/config/aarch64/aarch64-option-extensions.def b/gcc/config/aarch64/aarch64-option-extensions.def index 54bbf9c41e794786dffd69dd103fcbbca0a49f1f..164ee3b8194396e66a61f43d45c199c523d2e7cf 100644 --- a/gcc/config/aarch64/aarch64-option-extensions.def +++ b/gcc/config/aarch64/aarch64-option-extensions.def @@ -194,17 +194,17 @@ AARCH64_FMV_FEATURE("sve2-sm4", SVE_SM4, (SVE2_SM4)) AARCH64_OPT_FMV_EXTENSION("sme", SME, (BF16, SVE2), (), (), "sme") -AARCH64_OPT_FMV_EXTENSION("memtag", MEMTAG, (), (), (), "") +AARCH64_OPT_EXTENSION("memtag", MEMTAG, (), (), (), "") -AARCH64_FMV_FEATURE("memtag2", MEMTAG2, (MEMTAG)) +AARCH64_FMV_FEATURE("memtag", MEMTAG2, (MEMTAG)) AARCH64_OPT_FMV_EXTENSION("sb", SB, (), (), (), "sb") AARCH64_OPT_FMV_EXTENSION("predres", PREDRES, (), (), (), "") -AARCH64_OPT_FMV_EXTENSION("ssbs", SSBS, (), (), (), "ssbs") +AARCH64_OPT_EXTENSION("ssbs", SSBS, (), (), (), "ssbs") -AARCH64_FMV_FEATURE("ssbs2", SSBS2, (SSBS)) +AARCH64_FMV_FEATURE("ssbs", SSBS2, (SSBS)) AARCH64_OPT_EXTENSION("profile", PROFILE, (), (), (), "") @@ -214,11 +214,7 @@ AARCH64_OPT_EXTENSION("pauth", PAUTH, (), (), (), "paca pacg") AARCH64_OPT_EXTENSION("ls64", LS64, (), (), (), "") -AARCH64_FMV_FEATURE("ls64", LS64, ()) - -AARCH64_FMV_FEATURE("ls64_v", LS64_V, ()) - -AARCH64_FMV_FEATURE("ls64_accdata", LS64_ACCDATA, (LS64)) +AARCH64_FMV_FEATURE("ls64", LS64_ACCDATA, (LS64)) AARCH64_OPT_EXTENSION("sme-f64f64", SME_F64F64, (SME), (), (), "")