Message ID | 20230418134608.244751-10-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 b10csp2868850vqo; Tue, 18 Apr 2023 06:55:16 -0700 (PDT) X-Google-Smtp-Source: AKy350Zg6wNX6hT+zYWq0QuMOyeXdSGIs8+c0Rj0lmdGExAWLPHdAccd672CqED1M+n3EVvDL3nY X-Received: by 2002:a17:906:b19a:b0:94e:ed5d:c864 with SMTP id w26-20020a170906b19a00b0094eed5dc864mr10636734ejy.19.1681826115906; Tue, 18 Apr 2023 06:55:15 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id vs18-20020a170907139200b0094f7d249bf1si4212582ejb.484.2023.04.18.06.55.15 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 06:55:15 -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=iyZNAQJo; 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 A6F253857010 for <ouuuleilei@gmail.com>; Tue, 18 Apr 2023 13:51:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A6F253857010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681825867; bh=vnnIpjszV2uGGn4XHQY6qlOaQvZIjiiu0Z08qpi8sVk=; 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=iyZNAQJo8dfeTKQN+EFClmj0UUWgXrMFaJpvfNxHdbLsQ2hiT9jccLjxxmNYLFSUH Lg4CVvFjTxEi2IiHrA56gnxb8FFHd+nSEeY00OrKKJ0BrWN55CCJxCEEaBWFoUPONg wdZl0CnGxocsFAlivQxPRiS+E1o0H6MDQLa90enk= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2070.outbound.protection.outlook.com [40.107.14.70]) by sourceware.org (Postfix) with ESMTPS id 538503856948 for <gcc-patches@gcc.gnu.org>; Tue, 18 Apr 2023 13:47:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 538503856948 Received: from DB6PR07CA0017.eurprd07.prod.outlook.com (2603:10a6:6:2d::27) by DU0PR08MB8661.eurprd08.prod.outlook.com (2603:10a6:10:403::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.20; Tue, 18 Apr 2023 13:47:32 +0000 Received: from DBAEUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:2d:cafe::b1) by DB6PR07CA0017.outlook.office365.com (2603:10a6:6:2d::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.20 via Frontend Transport; Tue, 18 Apr 2023 13:47:32 +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 DBAEUR03FT016.mail.protection.outlook.com (100.127.142.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.20 via Frontend Transport; Tue, 18 Apr 2023 13:47:32 +0000 Received: ("Tessian outbound 945aec65ec65:v136"); Tue, 18 Apr 2023 13:47:32 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: fa961f13667daa49 X-CR-MTA-TID: 64aa7808 Received: from 08b714f7ef28.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id D6CD8911-C5D5-415B-B572-D70B32DCC966.1; Tue, 18 Apr 2023 13:47:23 +0000 Received: from EUR02-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 08b714f7ef28.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 18 Apr 2023 13:47:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PKfSjAbIO6wTbFidXDf50loiJVw6V3SNhETjlp9nwWanGNIGnCGuc0wmZnQDfZYye8uByeme25kqFcYV07+fpu8CpwjwjP9lxxOT8EF4cP529srGInBy69OvX4M/BIQI4PuRF7evP53MvSbRThN3WRDPKtcQZ5MXgZcW8h8v5U63fbWytqY2PCd2qRrKulNY8vZXcJqtLoN0CX2XQS0L+OHt4gTi6xSUdljbFznMse5e0098pMHhO28T66GQMuvGHzCU8KrA8g+eRJkM3ngjmMZbikuBsaVuuLHPotd7bgQ33+T2vta6WfDUiFRJEVnp2WmAmqP4n9TUyHImJLRtWw== 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=vnnIpjszV2uGGn4XHQY6qlOaQvZIjiiu0Z08qpi8sVk=; b=NiudPqX5qxKl4T0pi+1LdHElyPJgVwqcUDwK4PQurHAAlMyN/kHXIMJ72GB6rvt6syEP7xptBTJfPHNy/B+ncVpJrssXVzqJpEhXAbJbE2DQqgnVgsaZyGTCxrQrQzfCeuIUvcLaoPvZ3Qi/9tru+fGJLAvw2upTEzfIuaWv55hxdtJKzFX1OGrPpO+Zku6gemr+l8yoWbujqhHNFvLUVcSdLfQgc8QjSc0042Ux1sm52gAkGm/o/yd/JyohWkTQWkCxHNEocNqnQsXT4rCShtVRT26gMmnK77HOPIU0nc16+h1Dcg+VuxbCxFuVgDP/iHPZ1wzl2QLdghHDCUP8Hw== 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 AS9PR05CA0075.eurprd05.prod.outlook.com (2603:10a6:20b:499::35) by DU0PR08MB9728.eurprd08.prod.outlook.com (2603:10a6:10:444::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 13:47:18 +0000 Received: from AM7EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:499:cafe::71) by AS9PR05CA0075.outlook.office365.com (2603:10a6:20b:499::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.47 via Frontend Transport; Tue, 18 Apr 2023 13:47:18 +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 AM7EUR03FT016.mail.protection.outlook.com (100.127.140.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6319.20 via Frontend Transport; Tue, 18 Apr 2023 13:47:18 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 18 Apr 2023 13:47:14 +0000 Received: from e129018.arm.com (10.57.54.117) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Tue, 18 Apr 2023 13:47:14 +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/22] arm: [MVE intrinsics] add binary shape Date: Tue, 18 Apr 2023 15:45:55 +0200 Message-ID: <20230418134608.244751-10-christophe.lyon@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230418134608.244751-1-christophe.lyon@arm.com> References: <20230418134608.244751-1-christophe.lyon@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT016:EE_|DU0PR08MB9728:EE_|DBAEUR03FT016:EE_|DU0PR08MB8661:EE_ X-MS-Office365-Filtering-Correlation-Id: 5637fccb-c439-434e-306e-08db4013756d 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: kJQoSiFesdCCMOmPJUYbw5nAyvEDjPmBI8QZqiZyuNVTUIP3HCdkKfUT9EZilvWEKnsPokiiceRKY/okyhgD5UoLGyQwYNYcsENxBiiuyJ8UmmSAaF+HBlkgWOklAlmzMH6YohsXyMqKFkLIaYCGcV2/bv+Uq8u0Gb/4FtUcrsRybMSx8ccjg2On/aZAtnYpjla2WvHMZeFT2rybLm6EeZhTXr4hyiAz5X2gdT/xAtzrzvPYjzB9kShv0+iQ7bpK+a2HUbUXWQ9KSrXpajN67DsGHRWDPIGezgezYM3J2w4XtbIi0pnGQF+lKRY87T8YL0bXe/VN5GWdjcJl10IcPcOgeCrlYeJFEGYbB6pdzLXFQriLXO+ZDuoYbQ7TfhqrU+rK3SpP1CFiaLi0yMoUhCrHvCaFfgGwzNtIh3QUaOVr7/j5ne/CiFYhzO13ERhFknrbnwx4K1pc4feArew1g8VO0bl156U6GYt/vBb53IpycpA9dkkFsowLNAnSjfzXgosi8x81AAe8lvvKSGlx90I4l1zpFU+mZSfCgw7Vu/pqSIINIx8AMRCM6iEQMlJM9LU2Qitgc5H9Hrao5LtoGyRt2G51Pbs+MU2n0M8BqCVHZO3y5lZkXAuPv/On4gDlOttgG6mRNNXz3OLfr9LTy6gRsU4KqAjRqGF2pII5USjsKYlgXRTY78LW70S2R8BeJHIKVkBfyqAwlL4dRH+feA== 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)(376002)(396003)(136003)(39860400002)(346002)(451199021)(46966006)(36840700001)(36756003)(6636002)(4326008)(110136005)(316002)(70586007)(70206006)(7696005)(478600001)(6666004)(41300700001)(5660300002)(82310400005)(8676002)(8936002)(40480700001)(2906002)(44832011)(82740400003)(86362001)(81166007)(356005)(426003)(2616005)(336012)(1076003)(26005)(186003)(36860700001)(47076005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9728 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 91b8822d-1039-4e2f-ecd3-08db40136d44 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BoM2iqlHoOAqbmAR9GbMMdmkIW6kTjKJPUrB0WU4j+Sx3gpXwORYWevD03T5IfDMjgLoUrYQSvPbZz0yMJcFg57rGuHyr2qXqXgGqud9yVibKab0UiCA11iIsVL61cE8xMF0AHuN80Fmfl+uDQ1XaPUGAutVpXg/KbPL7PJXmcaSChqm3WmIIiLXUjQgO1CwEzhvsD+n8MfaPSv3eCQGCxVC4975nXBZvLbPrWEhxAzB/wLKEseu5dZGBSSnE6H+FHOzR5ePl++5kEGpGXIYFCCTW5qnoitv50MGsGv3JU/Bz9XvjyawGrcJv3luaC0pcpV/FuW4pLdFksosa/fM6bclAB6/fJkbKndM8qtLcFdA6iZ/ItBMqTaY+FilREXaC0mRP0qZlF2XIEHWN0Y17nRf4fZJ6fSq2pZUbTboMSX85x7FAiv5rJbAOf9nZe3ldgGPshe/fyh8RI2c8Kr/egKP1QZjPSkjkoddRAFIKCLXkmbgTnfAluMpepK6EyKP5c88uiMNT34pZiZdr/WyJ9wup71tRQvLS0lSPum84cNOwlkoaYDlgEGoTnvrmwJGlDlmzOG3L6ps4OY5jBf4KrNJ3xxJNBY+QXy/kvldE+mUkCcETRGRqpKkch9dCFAj30aPnnCpzWCljmoXFBtPWulZpNOIIfMMIooxhVsFNSFQe6Rl9JL0XLrDDSmJ8q4ZCngasDgbS1eHinzyCJqYBw== 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)(136003)(346002)(396003)(39860400002)(376002)(451199021)(36840700001)(40470700004)(46966006)(7696005)(6666004)(478600001)(110136005)(86362001)(36860700001)(36756003)(47076005)(2616005)(426003)(336012)(40480700001)(186003)(1076003)(26005)(40460700003)(82740400003)(82310400005)(81166007)(316002)(4326008)(70206006)(70586007)(2906002)(44832011)(8676002)(8936002)(5660300002)(41300700001)(6636002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 13:47:32.1547 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5637fccb-c439-434e-306e-08db4013756d 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: DBAEUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8661 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?1763522501490063595?= X-GMAIL-MSGID: =?utf-8?q?1763522501490063595?= |
Series |
arm: New framework for MVE intrinsics
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Christophe Lyon
April 18, 2023, 1:45 p.m. UTC
This patch adds the binary shape description. 2022-09-08 Christophe Lyon <christophe.lyon@arm.com> gcc/ * config/arm/arm-mve-builtins-shapes.cc (binary): New. * config/arm/arm-mve-builtins-shapes.h (binary): New. --- gcc/config/arm/arm-mve-builtins-shapes.cc | 27 +++++++++++++++++++++++ gcc/config/arm/arm-mve-builtins-shapes.h | 1 + 2 files changed, 28 insertions(+)
Comments
> -----Original Message----- > From: Christophe Lyon <christophe.lyon@arm.com> > Sent: Tuesday, April 18, 2023 2:46 PM > 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/22] arm: [MVE intrinsics] add binary shape > > This patch adds the binary shape description. Ok. Thanks, Kyrill > > 2022-09-08 Christophe Lyon <christophe.lyon@arm.com> > > gcc/ > * config/arm/arm-mve-builtins-shapes.cc (binary): New. > * config/arm/arm-mve-builtins-shapes.h (binary): New. > --- > gcc/config/arm/arm-mve-builtins-shapes.cc | 27 +++++++++++++++++++++++ > gcc/config/arm/arm-mve-builtins-shapes.h | 1 + > 2 files changed, 28 insertions(+) > > diff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc b/gcc/config/arm/arm- > mve-builtins-shapes.cc > index 033b304060a..e69faae4e2c 100644 > --- a/gcc/config/arm/arm-mve-builtins-shapes.cc > +++ b/gcc/config/arm/arm-mve-builtins-shapes.cc > @@ -338,6 +338,33 @@ struct overloaded_base : public function_shape > } > }; > > +/* <T0>_t vfoo[_t0](<T0>_t, <T0>_t) > + > + i.e. the standard shape for binary operations that operate on > + uniform types. > + > + Example: vandq. > + int8x16_t [__arm_]vandq[_s8](int8x16_t a, int8x16_t b) > + int8x16_t [__arm_]vandq_m[_s8](int8x16_t inactive, int8x16_t a, int8x16_t > b, mve_pred16_t p) > + int8x16_t [__arm_]vandq_x[_s8](int8x16_t a, int8x16_t b, mve_pred16_t p) > */ > +struct binary_def : public overloaded_base<0> > +{ > + void > + build (function_builder &b, const function_group_info &group, > + bool preserve_user_namespace) const override > + { > + b.add_overloaded_functions (group, MODE_none, > preserve_user_namespace); > + build_all (b, "v0,v0,v0", group, MODE_none, preserve_user_namespace); > + } > + > + tree > + resolve (function_resolver &r) const override > + { > + return r.resolve_uniform (2); > + } > +}; > +SHAPE (binary) > + > /* <T0>_t vfoo[_t0](<T0>_t, <T0>_t) > <T0>_t vfoo[_n_t0](<T0>_t, <S0>_t) > > diff --git a/gcc/config/arm/arm-mve-builtins-shapes.h b/gcc/config/arm/arm- > mve-builtins-shapes.h > index 43798fdde57..b00ee5eb57a 100644 > --- a/gcc/config/arm/arm-mve-builtins-shapes.h > +++ b/gcc/config/arm/arm-mve-builtins-shapes.h > @@ -34,6 +34,7 @@ namespace arm_mve > namespace shapes > { > > + extern const function_shape *const binary; > extern const function_shape *const binary_opt_n; > extern const function_shape *const inherent; > extern const function_shape *const unary_convert; > -- > 2.34.1
diff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc b/gcc/config/arm/arm-mve-builtins-shapes.cc index 033b304060a..e69faae4e2c 100644 --- a/gcc/config/arm/arm-mve-builtins-shapes.cc +++ b/gcc/config/arm/arm-mve-builtins-shapes.cc @@ -338,6 +338,33 @@ struct overloaded_base : public function_shape } }; +/* <T0>_t vfoo[_t0](<T0>_t, <T0>_t) + + i.e. the standard shape for binary operations that operate on + uniform types. + + Example: vandq. + int8x16_t [__arm_]vandq[_s8](int8x16_t a, int8x16_t b) + int8x16_t [__arm_]vandq_m[_s8](int8x16_t inactive, int8x16_t a, int8x16_t b, mve_pred16_t p) + int8x16_t [__arm_]vandq_x[_s8](int8x16_t a, int8x16_t b, mve_pred16_t p) */ +struct binary_def : public overloaded_base<0> +{ + void + build (function_builder &b, const function_group_info &group, + bool preserve_user_namespace) const override + { + b.add_overloaded_functions (group, MODE_none, preserve_user_namespace); + build_all (b, "v0,v0,v0", group, MODE_none, preserve_user_namespace); + } + + tree + resolve (function_resolver &r) const override + { + return r.resolve_uniform (2); + } +}; +SHAPE (binary) + /* <T0>_t vfoo[_t0](<T0>_t, <T0>_t) <T0>_t vfoo[_n_t0](<T0>_t, <S0>_t) diff --git a/gcc/config/arm/arm-mve-builtins-shapes.h b/gcc/config/arm/arm-mve-builtins-shapes.h index 43798fdde57..b00ee5eb57a 100644 --- a/gcc/config/arm/arm-mve-builtins-shapes.h +++ b/gcc/config/arm/arm-mve-builtins-shapes.h @@ -34,6 +34,7 @@ namespace arm_mve namespace shapes { + extern const function_shape *const binary; extern const function_shape *const binary_opt_n; extern const function_shape *const inherent; extern const function_shape *const unary_convert;