Message ID | 20230505083930.101210-9-christophe.lyon@arm.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp244458vqo; Fri, 5 May 2023 01:44:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4aVAgntuh8sex9aKN2G5u32O7Z/dcPaVpPL5nedID6m7sY7K7wwgCMS5qE2+Rl+vRrQL6e X-Received: by 2002:a17:907:e9f:b0:94f:1ce7:1865 with SMTP id ho31-20020a1709070e9f00b0094f1ce71865mr920971ejc.26.1683276276448; Fri, 05 May 2023 01:44:36 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id z15-20020a1709060f0f00b0094ed126d448si778748eji.445.2023.05.05.01.44.36 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 01:44:36 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=L+DW8KTu; arc=fail (signature failed); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B168B3882177 for <ouuuleilei@gmail.com>; Fri, 5 May 2023 08:42:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B168B3882177 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683276129; bh=R871yycd0gpXeKWTRSohqSzDaEYTyGvRdm7Ghs4mwvc=; h=To:CC:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=L+DW8KTugOMKO2pYFJO3euFAWa4gN9tg956+c7gGeAf+H5+iXY+003Azj8pZptKUV Vx14QDRX39Hhy9f01v45GyurflnbepOu2ofdGuJs1F2cW0MYMlBKUbPzEgMBCDhhBW eNyhOOVdNZR0SB1s/mWnQ5b4/sjmHfwGIGGD7How= 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-vi1eur05on2044.outbound.protection.outlook.com [40.107.21.44]) by sourceware.org (Postfix) with ESMTPS id 100B3385773B for <gcc-patches@gcc.gnu.org>; Fri, 5 May 2023 08:40:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 100B3385773B Received: from DB9PR05CA0027.eurprd05.prod.outlook.com (2603:10a6:10:1da::32) by VI1PR08MB10104.eurprd08.prod.outlook.com (2603:10a6:800:1bc::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.26; Fri, 5 May 2023 08:40:01 +0000 Received: from DBAEUR03FT054.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:1da:cafe::c1) by DB9PR05CA0027.outlook.office365.com (2603:10a6:10:1da::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.27 via Frontend Transport; Fri, 5 May 2023 08:40:01 +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 DBAEUR03FT054.mail.protection.outlook.com (100.127.142.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.27 via Frontend Transport; Fri, 5 May 2023 08:40:01 +0000 Received: ("Tessian outbound 99a3040377ca:v136"); Fri, 05 May 2023 08:40:01 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: cff79dea8996b9f5 X-CR-MTA-TID: 64aa7808 Received: from d6fb3ac21fe1.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 9F4A3DE8-4966-4438-A193-0166590A3325.1; Fri, 05 May 2023 08:39:55 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d6fb3ac21fe1.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 05 May 2023 08:39:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n9uCKafuFV3WGwi7JsjKN5h0KMNwdTNfQ9HYxcf7fWpdxGtJnbOEJUif3VQZrufCrhQ7Xy+JXqMPDSsv453KJ+EEftvNZcqJNH33hUV44zGPmnYfZy8emDcteVsBXWxD1LWzBM5Q3LVm4KGh0kGFiPk3TO9XUrrAYAZn92Ck1Z5cun3sUniSaqIynWJ/talVIere3v+Fxq1gw67GoF0HABHydtUmA7yclRceLjc5J1unKwFiSCwXQT3zEOe5JIrKg/8dDiCuhtHyz1l7li/ovoXOu4AtfRMqfUYAexc6mw/dSQI350nAAGJJaPpo6GQPmN8gNSBSGEoOr6Tv6iubWg== 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=R871yycd0gpXeKWTRSohqSzDaEYTyGvRdm7Ghs4mwvc=; b=l3NLUJS0817ZIrnoGwvkUbbS6ff5TzQNzRH1z+WypThnWaqAP4jPxs4jw2740F3oQIJDjUXhtKzylSDdybSWiekSGgh8mzQM+QgqJzVnx2oHuAmpgokNf0j/1/COAzAmYY57BQDFlM462wUXgL8ILwtxNpvfv7VHyCFd63kT00mjjdWb781F1I5EZH8yDGb0gtvnZC4b+zOwvQ9ue3K7PlBOlwlIjsqWd147C9x4OwFywS1gVrw1gUOH4kZJ4wbfTXv6RR3NLpYDs4XqCKMYivtH6e/i6gQP0xn2d5uHCnrq3aoLjskGJ9r+MCvbT1p96JqUklMiboX6DGvVwUirbQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none Received: from DU2PR04CA0292.eurprd04.prod.outlook.com (2603:10a6:10:28c::27) by DB9PR08MB6713.eurprd08.prod.outlook.com (2603:10a6:10:2aa::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.27; Fri, 5 May 2023 08:39:52 +0000 Received: from DBAEUR03FT021.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:28c:cafe::c6) by DU2PR04CA0292.outlook.office365.com (2603:10a6:10:28c::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.27 via Frontend Transport; Fri, 5 May 2023 08:39:52 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by DBAEUR03FT021.mail.protection.outlook.com (100.127.142.184) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6363.20 via Frontend Transport; Fri, 5 May 2023 08:39:52 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 5 May 2023 08:39:49 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 5 May 2023 08:39:49 +0000 Received: from e129018.arm.com (10.57.22.112) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Fri, 5 May 2023 08:39:49 +0000 To: <gcc-patches@gcc.gnu.org>, <kyrylo.tkachov@arm.com>, <richard.earnshaw@arm.com>, <richard.sandiford@arm.com> CC: Christophe Lyon <christophe.lyon@arm.com> Subject: [PATCH 09/23] arm: [MVE intrinsics] add support for MODE_r Date: Fri, 5 May 2023 10:39:16 +0200 Message-ID: <20230505083930.101210-9-christophe.lyon@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230505083930.101210-1-christophe.lyon@arm.com> References: <20230505083930.101210-1-christophe.lyon@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT021:EE_|DB9PR08MB6713:EE_|DBAEUR03FT054:EE_|VI1PR08MB10104:EE_ X-MS-Office365-Filtering-Correlation-Id: f8d6261a-f1f7-40f9-5719-08db4d4450d5 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: g3fXrM6Xsibl6DqgkMK0dREUCb1fLU9meYHw1kzTcQvYX4C6tB/HIKMeVwSkNWSpgisPbgQUGeK//0xwj+kAK5dzzpomSvaQh+SkMxXHzcNXKVTK0aMt1dojRt+GYEv/EZaasQNmARJzyxApLCC32L3QQaV3auHHwI9njiS6NxLk8BHEdp16u4ezwwVsPEv3EIiiX9LkyFmWNcMi5GRGu+vyv36Qqp6tH/RFWvLGy8gptNnV127WnyONgIlu9spE/DGrrAad/YC08XWdk6T2x5vaxgWsJGyC1Spio6yBDPvFYjQ1l+2WibW6J771AwHwNbSve0FXsh7fInFCKT2EPOiv4kNtpoye1qrerxHBKuIXjII7YsN4vo0fI3MTcTC9AhTN7bt/RyeA54/l/7uOTkObPHT1N9xRNYjW58OQTlP+Zes8fzPwSMTGxgMDV3d9SBq9UVWj8Lotl2cO8kNBtptqSNcUur7i8ZGorl6UpDLf7OLG4nXmTYuFCFQ/ky0Xn6D/XuRc6xUnWNcLVNiZm2tQgDRXjo4mWoxrKsTVblCPSeoEc+qcotxgSaFYlKkB0Z4QM3jUbQqAkFSD7GvZbOwjn2ZThT1drZ5yf9iVXNLhw7hVFhn+IPjtX39K3TA507kpQQ9Aa0P3/OBNoNkjMsZTQdpgKc9S60ppxhO0e+UYUt/9WXdAHTD69tSH1OCX1oR2TPGVWCmMKXVVidc1POjG0jo37/gcxxWbM2CZ7CHBDMcY9hEhz0WW50ZdF82JpV2FCb72I6vv7Jbi2HcF/Q== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230028)(4636009)(136003)(376002)(396003)(39860400002)(346002)(451199021)(46966006)(36840700001)(40470700004)(36756003)(7696005)(6666004)(34020700004)(2616005)(186003)(40480700001)(47076005)(83380400001)(36860700001)(1076003)(26005)(40460700003)(426003)(336012)(82310400005)(44832011)(356005)(110136005)(81166007)(82740400003)(86362001)(316002)(41300700001)(70586007)(70206006)(8676002)(8936002)(5660300002)(4326008)(6636002)(2906002)(478600001)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB6713 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT054.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 445a1f9d-d99a-4e42-6177-08db4d444b92 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oXx1EUmxlTgwF6ddLaw34Ttsbi/wUAiQda6gWcjlEvKOOHUL/e5QVOQiJvoOJt4GKdgH3DcPg21WpkEdiMxRfF1Po+SQ9O9z1nkytWVBWSiM/xhZ7UDnrYBkmAPHi+Tu9FCFesOUZ+YSImYDPqOUgNnHQoQsnwNXQ6Wzt4uBgjkS2wNlGkCeR6Tj0wbRjphRJW8/lEDJz+H/GqQ3rIana/qYXjoCTNWvpR0dQJ4lF/SKeQoBTKnwUhDMHROTgq24HywTqYAo1ZmIVAh8r3MxJx7eaEMH6Ry9dAakEw8C5K13PVUCSpPtsckOHfEDDsHE2pcTDmvHfG5lLk9ZD5Fz6grux1W433m8xq7dv2R2g8jZRojvfC0t+nPspn7ahd6lLoPXHsc54VdQ3T4kFY1H0haGTu6QnbNPie7Yijy7z8gcH2VrIGYeooksCzSvldBZkTbxVxO+RXUExCHmuTFJmOu/WqJWohMpJMkKFeT9PnH8ci/eGUvqfAucfKxwQrvqGTQUbRR8veJckNVpgTS+eqdNDQTZNPxKaPIetkMdUn6G8P4+w5QhT9OKZjgJkpi8ISdPRZrrwAIMzz4vaxcCsfLTz4TDLk1QZLo2gVZzzcU50bKnyefC1npiffI6ls7/Ec/ZMeANUwKEHcjY1pPlgbKjm3JHInX7X6wMenTlxnc9+8IWNOdo+M41jXH861dsQmh+JA3H4Cps0Ud/wjc32OmwoggSoObDRwPihxBTMBs= 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:(13230028)(4636009)(396003)(39850400004)(136003)(376002)(346002)(451199021)(40470700004)(36840700001)(46966006)(110136005)(83380400001)(82740400003)(34020700004)(5660300002)(2906002)(186003)(70206006)(47076005)(316002)(81166007)(8936002)(8676002)(70586007)(1076003)(26005)(44832011)(41300700001)(40460700003)(36756003)(7696005)(2616005)(82310400005)(336012)(478600001)(426003)(6666004)(4326008)(40480700001)(86362001)(36860700001)(6636002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2023 08:40:01.2330 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f8d6261a-f1f7-40f9-5719-08db4d4450d5 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: DBAEUR03FT054.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB10104 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, 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.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Christophe Lyon via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Christophe Lyon <christophe.lyon@arm.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765043104889870605?= X-GMAIL-MSGID: =?utf-8?q?1765043104889870605?= |
Series |
[01/23] arm: [MVE intrinsics] add binary_round_lshift shape
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Christophe Lyon
May 5, 2023, 8:39 a.m. UTC
2022-09-08 Christophe Lyon <christophe.lyon@arm.com> gcc/ * config/arm/arm-mve-builtins.cc (has_inactive_argument) (finish_opt_n_resolution): Handle MODE_r. * config/arm/arm-mve-builtins.def (r): New mode. --- gcc/config/arm/arm-mve-builtins.cc | 8 ++++++-- gcc/config/arm/arm-mve-builtins.def | 1 + 2 files changed, 7 insertions(+), 2 deletions(-)
Comments
> -----Original Message----- > From: Christophe Lyon <christophe.lyon@arm.com> > Sent: Friday, May 5, 2023 9:39 AM > To: gcc-patches@gcc.gnu.org; Kyrylo Tkachov <Kyrylo.Tkachov@arm.com>; > Richard Earnshaw <Richard.Earnshaw@arm.com>; Richard Sandiford > <Richard.Sandiford@arm.com> > Cc: Christophe Lyon <Christophe.Lyon@arm.com> > Subject: [PATCH 09/23] arm: [MVE intrinsics] add support for MODE_r > This is missing a description of what MODE_r is. I've deduced what it is from looking at the next 3 patches in the series, but I think this patch should have at least a one-sentence summary. Therefore ok with a cover letter. Thanks, Kyrill > 2022-09-08 Christophe Lyon <christophe.lyon@arm.com> > > gcc/ > * config/arm/arm-mve-builtins.cc (has_inactive_argument) > (finish_opt_n_resolution): Handle MODE_r. > * config/arm/arm-mve-builtins.def (r): New mode. > --- > gcc/config/arm/arm-mve-builtins.cc | 8 ++++++-- > gcc/config/arm/arm-mve-builtins.def | 1 + > 2 files changed, 7 insertions(+), 2 deletions(-) > > diff --git a/gcc/config/arm/arm-mve-builtins.cc b/gcc/config/arm/arm-mve- > builtins.cc > index 91b3ae71f94..c25b1be9903 100644 > --- a/gcc/config/arm/arm-mve-builtins.cc > +++ b/gcc/config/arm/arm-mve-builtins.cc > @@ -669,7 +669,8 @@ function_instance::has_inactive_argument () const > if (pred != PRED_m) > return false; > > - if ((base == functions::vorrq && mode_suffix_id == MODE_n) > + if (mode_suffix_id == MODE_r > + || (base == functions::vorrq && mode_suffix_id == MODE_n) > || (base == functions::vqrshlq && mode_suffix_id == MODE_n) > || (base == functions::vrshlq && mode_suffix_id == MODE_n)) > return false; > @@ -1522,7 +1523,10 @@ finish_opt_n_resolution (unsigned int argno, > unsigned int first_argno, > { > if (inferred_type == NUM_TYPE_SUFFIXES) > inferred_type = first_type; > - tree scalar_form = lookup_form (MODE_n, inferred_type); > + mode_suffix_index scalar_mode = MODE_n; > + if (mode_suffix_id == MODE_r) > + scalar_mode = MODE_r; > + tree scalar_form = lookup_form (scalar_mode, inferred_type); > > /* Allow the final argument to be scalar, if an _n form exists. */ > if (scalar_argument_p (argno)) > diff --git a/gcc/config/arm/arm-mve-builtins.def b/gcc/config/arm/arm-mve- > builtins.def > index 49d07364fa2..e3f37876210 100644 > --- a/gcc/config/arm/arm-mve-builtins.def > +++ b/gcc/config/arm/arm-mve-builtins.def > @@ -35,6 +35,7 @@ > > DEF_MVE_MODE (n, none, none, none) > DEF_MVE_MODE (offset, none, none, bytes) > +DEF_MVE_MODE (r, none, none, none) > > #define REQUIRES_FLOAT false > DEF_MVE_TYPE (mve_pred16_t, boolean_type_node) > -- > 2.34.1
diff --git a/gcc/config/arm/arm-mve-builtins.cc b/gcc/config/arm/arm-mve-builtins.cc index 91b3ae71f94..c25b1be9903 100644 --- a/gcc/config/arm/arm-mve-builtins.cc +++ b/gcc/config/arm/arm-mve-builtins.cc @@ -669,7 +669,8 @@ function_instance::has_inactive_argument () const if (pred != PRED_m) return false; - if ((base == functions::vorrq && mode_suffix_id == MODE_n) + if (mode_suffix_id == MODE_r + || (base == functions::vorrq && mode_suffix_id == MODE_n) || (base == functions::vqrshlq && mode_suffix_id == MODE_n) || (base == functions::vrshlq && mode_suffix_id == MODE_n)) return false; @@ -1522,7 +1523,10 @@ finish_opt_n_resolution (unsigned int argno, unsigned int first_argno, { if (inferred_type == NUM_TYPE_SUFFIXES) inferred_type = first_type; - tree scalar_form = lookup_form (MODE_n, inferred_type); + mode_suffix_index scalar_mode = MODE_n; + if (mode_suffix_id == MODE_r) + scalar_mode = MODE_r; + tree scalar_form = lookup_form (scalar_mode, inferred_type); /* Allow the final argument to be scalar, if an _n form exists. */ if (scalar_argument_p (argno)) diff --git a/gcc/config/arm/arm-mve-builtins.def b/gcc/config/arm/arm-mve-builtins.def index 49d07364fa2..e3f37876210 100644 --- a/gcc/config/arm/arm-mve-builtins.def +++ b/gcc/config/arm/arm-mve-builtins.def @@ -35,6 +35,7 @@ DEF_MVE_MODE (n, none, none, none) DEF_MVE_MODE (offset, none, none, bytes) +DEF_MVE_MODE (r, none, none, none) #define REQUIRES_FLOAT false DEF_MVE_TYPE (mve_pred16_t, boolean_type_node)