Message ID | 20230511121919.16923-19-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 b10csp4333505vqo; Thu, 11 May 2023 05:34:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7JHprppzXOFPlST2GTBghl2NOZxc+I5ohng9UepFoo1t4GZIce1iUA9gfH4kmrEa9vzqeg X-Received: by 2002:aa7:dd11:0:b0:506:2c70:3066 with SMTP id i17-20020aa7dd11000000b005062c703066mr16266452edv.21.1683808444414; Thu, 11 May 2023 05:34:04 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id g22-20020a50ee16000000b0050bc42fdf9bsi4748167eds.132.2023.05.11.05.34.04 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 05:34:04 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=CbdXKoGg; arc=fail (signature failed); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 040273907A7F for <ouuuleilei@gmail.com>; Thu, 11 May 2023 12:25:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 040273907A7F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683807930; bh=CNLHvGUzGxRH1/YKVOAhkxtILgTTUkzKULPCSQQ4X+o=; 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=CbdXKoGgPYXX2my8vtkXbqFH2cQ4NlAcllTOLHNKKZmqQwyaqSnKHesGudBU8O+kn TVh1w2c3Ntsv7oMBuAFH6xjCkbWBrsq9qcRMIa3hQOhzH2yUkTwWrmYbujzcUc/djT KONUhPjkg5JzzrgimCnCxn4yPQCTugBdUkh1hU1k= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2055.outbound.protection.outlook.com [40.107.20.55]) by sourceware.org (Postfix) with ESMTPS id 3B4923856247 for <gcc-patches@gcc.gnu.org>; Thu, 11 May 2023 12:19:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3B4923856247 Received: from AS9PR06CA0278.eurprd06.prod.outlook.com (2603:10a6:20b:45a::18) by GV1PR08MB8500.eurprd08.prod.outlook.com (2603:10a6:150:84::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.20; Thu, 11 May 2023 12:19:42 +0000 Received: from AM7EUR03FT021.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:45a:cafe::7b) by AS9PR06CA0278.outlook.office365.com (2603:10a6:20b:45a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.21 via Frontend Transport; Thu, 11 May 2023 12:19:42 +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 AM7EUR03FT021.mail.protection.outlook.com (100.127.140.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.18 via Frontend Transport; Thu, 11 May 2023 12:19:42 +0000 Received: ("Tessian outbound 5154e9d36775:v136"); Thu, 11 May 2023 12:19:42 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 20e8e3c8b11df20a X-CR-MTA-TID: 64aa7808 Received: from 20f8d89e6150.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 3C9E0341-A839-4336-9F5E-8E3BB7B88475.1; Thu, 11 May 2023 12:19:35 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 20f8d89e6150.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 11 May 2023 12:19:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NwIy6/TIw1lLn4gIz/SdCdyT9SLqFI10SuypJnWYKIpZio2mWTkK1TIi+dvyiERuKaHr60fvSZDw1HGBcb2EFIgkXtVDPHVjZmQt+NfzP/LrSmYtem0XvxGBGTZfXfIdj1pvrdNznTOqJsF0cJJ2JkkwfC4PkeTWARYdWjneMR6yo9Tnx1p4wYTo0/ukodKRyLxy1GUel3Ug0DHPipoFGgLewAAl7lBA7EM/yEjPDSfDYyvdJogaxgWkfUCdNDDk5iZ4FSAZnamAFjv1oMYvqWtgiQZO0VcuWg0wm9LP/GrVu6Iex4R0TaqMQaB6hJLZT1dcnAJSWVFR6mY9wWsDcA== 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=CNLHvGUzGxRH1/YKVOAhkxtILgTTUkzKULPCSQQ4X+o=; b=d0rZ4vDOlqKjeZxVT4E88uNnow/5/yvbEOD7vX0AttjGYFQOp9KpLbFouIYqh9qBb0lfRgc0td7U06xlYhKAV8415DkfhdXizIeSrW9+YNNJMgpkr9SMdWMhf07zWcBILG/nfzSDYtwmh2rpN7iY7frngiNp2gSeFF1N8z3FMbatyJBCbtYvnPZqRnRJdDB/6COYbY8JOEcDxBXWxJuSIridJVNFG3XT/maO0r6DDglwSYVXDXG4mexqttPjOThVziZZD1l5DYPOFoxOndSl0yEhqNton4yYL5k/Cmea9JaNlmOyYOoGV4ZHrMyNU14XoSHubBnzaskfYeJq2mTkag== 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 AS9PR06CA0007.eurprd06.prod.outlook.com (2603:10a6:20b:462::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.6387.20; Thu, 11 May 2023 12:19:29 +0000 Received: from AM7EUR03FT005.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:462:cafe::a8) by AS9PR06CA0007.outlook.office365.com (2603:10a6:20b:462::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.21 via Frontend Transport; Thu, 11 May 2023 12:19:29 +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 AM7EUR03FT005.mail.protection.outlook.com (100.127.140.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6387.22 via Frontend Transport; Thu, 11 May 2023 12:19:29 +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; Thu, 11 May 2023 12:19:28 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) 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; Thu, 11 May 2023 12:19:28 +0000 Received: from e129018.arm.com (10.57.23.121) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Thu, 11 May 2023 12:19:27 +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 19/24] arm: [MVE intrinsics] add ternary shape Date: Thu, 11 May 2023 14:19:14 +0200 Message-ID: <20230511121919.16923-19-christophe.lyon@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230511121919.16923-1-christophe.lyon@arm.com> References: <20230511121919.16923-1-christophe.lyon@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT005:EE_|DBAPR08MB5685:EE_|AM7EUR03FT021:EE_|GV1PR08MB8500:EE_ X-MS-Office365-Filtering-Correlation-Id: 72b3378f-3b12-44bf-bf14-08db521a0015 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: L/nN+yxT+WI62axhAe5T3ZGUNCjEHOlyacj65VZia9uUpIecpEtPh8iT/6G0s+ESFN5a/1u1j8/nIDudVHRpb/DsD/BbF59IR5L+i8FBfTMRW/FaLtUqmegT59KMHQrCVSG/uXVIOPdj2jPipiis4THhY8xbqc7fpdjhPZsdw8T+WsyZvTQxqgegbZH9dFdK0vCiQI+vN7jtFBlCXbBhJu1TtK0eT9yUG2nr2k1X7qvsbAFfizShIr1IvjqaRmFElEC8t82v6QHKcoBPvk0DIoI4bBbbtytC1MfeFLKmghEh+c9Rhq16tWEM6Pn4BbIjZwM2YubylYJjGgMRvVOGjXl55xSTW+viFR8UwQ1AJ9KVzTV8V8ouh5XxBSMOin4UxHMOk1cyZ5T6GTGmLhGGEMdr/+KYmQYjK5+65TlDVdn1LaUgyldHRgS78B40ctYfwHWEdyyYiCbIk/fCd7QYAnSV7r5cKIadf6+SVLZjQs16ixRcSpMz0dB2KTtBGcglEhrtZzZ7M0Cz8KBoE+pWki5J2xMAxqAzBv1Q7JnGDsKVExXW+hnc3GBncZOTWd0cT2eYgAbCXyaukdqzP6MSq9mcVyyNhI1xgI9lwXTMWPoff0iIXbmyl2Aad+UbWjLARfdHQMdvwnE7ac/FFFQdj8iZ1hRL2DrQ+zVMtsNfpE7NEcBRtgrBcmw5kHb2IWkNaX0coF0VRsKm6/DTQZt79Y3dnkb8+ppFJsVWqGUHESnUlrytQd/v/ltR2DwAe5Od 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)(39860400002)(136003)(376002)(396003)(346002)(451199021)(46966006)(36840700001)(316002)(110136005)(36860700001)(478600001)(7696005)(86362001)(356005)(82310400005)(6666004)(6636002)(4326008)(70206006)(70586007)(336012)(426003)(36756003)(47076005)(2616005)(8676002)(41300700001)(81166007)(8936002)(44832011)(82740400003)(4001150100001)(26005)(186003)(2906002)(1076003)(5660300002)(40480700001)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR08MB5685 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT021.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 972fc150-4bcf-4dcb-1540-08db5219f847 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gRr2GjvjQYFWH7zwg8PM92WS+wtIUgewaE77WOs7x8OCKgq2zbliz/9mRqpf6Y2ejYYx0xx1OiejxJATCs8qdKd9COqg2WTRF+/RZHhrOyPtgUbPd4eSx9X1TK0sQgZjFIcEs4ed9PGKtixU9cRctd07LkoxFSZCu9EIx/QTFaM6N46JlTKOxXMi9rS4uDDgy/dnnzjnFpvXgv/gZTocfuwHnhvKhHfmbn4rLj8T1+NnTlDtcIjWX6/K6/Y/tEdMJ3XBuhqZLDGqhjkBCkCNBp+JPXP2KCbpdBBQ1Nmj7ahIapKVftX9PQMAVq7yTfXK6TmdQ7DsFZVEQw77gFuYFrYp4rNQCcVYQrVEMVb+fcx/0RsYjc3UevnxbHV9/JfM/FcZ2jMkhWJoWb4K94wGng9xEGftC0n6XnI4D/ZZSiPdjy/5RrpdK2LlV/PGCg3wkdyh7rabZT6y16q5EbvZYd2IlALYVH/u4iIOeSgDsR/nQ3s1CB0vN70dOWWEoTVlpqo9MAYppv9RhXwpaQI6XHZX6exMc5mSRK/9YF2OeFEZNFhXZ2qj2hruxjeyudk+3/2d8udW0w0Tldk5/Xeg+KA/qj/f/nwGVHHfvfPpVeGU+ZK6aujLl3uqdAeefJNq9HZXIjj8lBhfmxXkbVFMMlgt18x9dAWhiHUEqpJqILKNXdc4lziVzl0e7vIhWzRo3lJJ7IltAOq6nSkAU0wJ7HNuPseTUbwSV6ZSJzqBXkzbnKRhmNyfau+tLWnjUWw6 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)(376002)(396003)(39860400002)(346002)(451199021)(36840700001)(40470700004)(46966006)(81166007)(82740400003)(82310400005)(86362001)(36756003)(40460700003)(8936002)(8676002)(7696005)(44832011)(1076003)(5660300002)(26005)(40480700001)(4001150100001)(478600001)(47076005)(2616005)(2906002)(70586007)(336012)(426003)(41300700001)(70206006)(6666004)(316002)(186003)(110136005)(6636002)(4326008)(36860700001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2023 12:19:42.6484 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 72b3378f-3b12-44bf-bf14-08db521a0015 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: AM7EUR03FT021.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB8500 X-Spam-Status: No, score=-12.6 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?1765601123235473866?= X-GMAIL-MSGID: =?utf-8?q?1765601123235473866?= |
Series |
[01/24] arm: [MVE intrinsics] factorize vaddlvaq
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Christophe Lyon
May 11, 2023, 12:19 p.m. UTC
This patch adds the ternary shape description. 2022-12-12 Christophe Lyon <christophe.lyon@arm.com> gcc/ * config/arm/arm-mve-builtins-shapes.cc (ternary): New. * config/arm/arm-mve-builtins-shapes.h (ternary): New. --- gcc/config/arm/arm-mve-builtins-shapes.cc | 26 +++++++++++++++++++++++ gcc/config/arm/arm-mve-builtins-shapes.h | 1 + 2 files changed, 27 insertions(+)
diff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc b/gcc/config/arm/arm-mve-builtins-shapes.cc index af770fd3e39..4455a253579 100644 --- a/gcc/config/arm/arm-mve-builtins-shapes.cc +++ b/gcc/config/arm/arm-mve-builtins-shapes.cc @@ -1163,6 +1163,32 @@ struct inherent_def : public nonoverloaded_base }; SHAPE (inherent) +/* <T0>_t vfoo[_t0](<T0>_t, <T0>_t, <T0>_t) + + i.e. the standard shape for ternary operations that operate on + uniform types. + + Example: vqrdmlsdhxq. + int8x16_t [__arm_]vqrdmlsdhxq[_s8](int8x16_t inactive, int8x16_t a, int8x16_t b) + int8x16_t [__arm_]vqrdmlsdhxq_m[_s8](int8x16_t inactive, int8x16_t a, int8x16_t b, mve_pred16_t p) */ +struct ternary_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,v0", group, MODE_none, preserve_user_namespace); + } + + tree + resolve (function_resolver &r) const override + { + return r.resolve_uniform_opt_n (3); + } +}; +SHAPE (ternary) + /* <T0>_t vfoo[_t0](<T0>_t) i.e. the standard shape for unary operations that operate on diff --git a/gcc/config/arm/arm-mve-builtins-shapes.h b/gcc/config/arm/arm-mve-builtins-shapes.h index 1c4254122bc..b3ddd0a9e8d 100644 --- a/gcc/config/arm/arm-mve-builtins-shapes.h +++ b/gcc/config/arm/arm-mve-builtins-shapes.h @@ -56,6 +56,7 @@ namespace arm_mve extern const function_shape *const cmp; extern const function_shape *const create; extern const function_shape *const inherent; + extern const function_shape *const ternary; extern const function_shape *const unary; extern const function_shape *const unary_acc; extern const function_shape *const unary_convert;