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[] = {