Message ID | 20230511121919.16923-4-christophe.lyon@arm.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=Q1+ek+pf; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QH9wt2jSRz214S for <incoming@patchwork.ozlabs.org>; Thu, 11 May 2023 22:21:18 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 478A43834696 for <incoming@patchwork.ozlabs.org>; Thu, 11 May 2023 12:21:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 478A43834696 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683807676; bh=8Pe1EAMzYTCq7TeKHxTxqNcI3m+ckc3G8wqanTF4okE=; 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=Q1+ek+pf6Jy/YeVO173WsCB8lZuy4GYumqJ3Z0KDhz1Ql+IDPfFfXzzlqaCgLy9ex yCoSubRX0kB56oJhg1N8pngXQAkVsl2D6JXUBVoVqfcWX+gnQa922QuZdNLEtOjrM7 pote7TX6eRpR0xQTmMy02tEdqsSeYZPiP9F84K68= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2048.outbound.protection.outlook.com [40.107.104.48]) by sourceware.org (Postfix) with ESMTPS id B19CD3856DD0 for <gcc-patches@gcc.gnu.org>; Thu, 11 May 2023 12:19:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B19CD3856DD0 Received: from DB9PR02CA0010.eurprd02.prod.outlook.com (2603:10a6:10:1d9::15) by DB9PR08MB9684.eurprd08.prod.outlook.com (2603:10a6:10:460::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.32; Thu, 11 May 2023 12:19:35 +0000 Received: from DBAEUR03FT007.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:1d9:cafe::ba) by DB9PR02CA0010.outlook.office365.com (2603:10a6:10:1d9::15) 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:35 +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 DBAEUR03FT007.mail.protection.outlook.com (100.127.142.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.22 via Frontend Transport; Thu, 11 May 2023 12:19:35 +0000 Received: ("Tessian outbound 3a01b65b5aad:v136"); Thu, 11 May 2023 12:19:35 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 705d50cd396eceb6 X-CR-MTA-TID: 64aa7808 Received: from c7b6f3fd9233.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id CC2EBD1A-7BD6-452A-B951-D226D5C2F857.1; Thu, 11 May 2023 12:19:28 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c7b6f3fd9233.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 11 May 2023 12:19:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KVKGJWTqyf+oPrqGiVQT5pOXZ9SVXl6YiEqz9eoOhfz+gcWZBangPy8TuxKwiOaCVRHm9GPPiWG05UgXnMTMpyNT33qgS+IP13KN99wrYD6H2ekFX4jVv1qQN+q1KRyZXlhQ9CzjwZteCiLYwe0sKhnZXv+x1VYb9szSytdUPEvrpGvoZr0S7xOUGQTOXqt86yl+l3ckl0QdpjSzWB6kw8FoFL0/2kf0Wx1BAlh3qR80WFQzjvJBSB80BNxtm+8dVB1UCO9fjhz1GLoxe+kPFM95yCKlbyWX/ivVhzcuHdhPPZJlTOyVbbjKPEsFV83K7igBGY4WYf6ZN2+kvx0uGQ== 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=8Pe1EAMzYTCq7TeKHxTxqNcI3m+ckc3G8wqanTF4okE=; b=H478h/78wSIR6Q3z7OVrCoHK0lfASkg0nCu40E8Si/GKPnHhruc06x6EPkdx93Ovv/PuXESj6oh9dU7jJF9TLGQWQMB70puvyaceyXBAgBL2cPA7j/TfhQ3INCQKZv/tSiKmWDtP+bH1MeLcgFVOV7vbAGB8Ssgpux9h2p9KjUWXnVfxKf0F1tdesQ+TwN1t6KM/xi7APX1xopAOurPwxQY9ZrbV781vnJqsM/25RcjKKBX9oVTJtFdArtBP5LNODrA8RFHi+pnHL68KBWRrmIbWWPl4/l4nEEv9YfAH+XMA0T2ygTHknGgeuxZFeDCuPkRilOrtXReKIiC3/TU+9w== 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 DB9PR02CA0011.eurprd02.prod.outlook.com (2603:10a6:10:1d9::16) by PAWPR08MB9993.eurprd08.prod.outlook.com (2603:10a6:102:359::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.33; Thu, 11 May 2023 12:19:22 +0000 Received: from DBAEUR03FT007.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:1d9:cafe::78) by DB9PR02CA0011.outlook.office365.com (2603:10a6:10:1d9::16) 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:22 +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 DBAEUR03FT007.mail.protection.outlook.com (100.127.142.161) 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:22 +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; Thu, 11 May 2023 12:19:21 +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:21 +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 04/24] arm: [MVE intrinsics] add binary_acc_int32 shape Date: Thu, 11 May 2023 14:18:59 +0200 Message-ID: <20230511121919.16923-4-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: DBAEUR03FT007:EE_|PAWPR08MB9993:EE_|DBAEUR03FT007:EE_|DB9PR08MB9684:EE_ X-MS-Office365-Filtering-Correlation-Id: 957a57e4-841f-4ded-9631-08db5219fbe8 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: imz8YYYlFKDLTKnVwp7YJk9WxwPYlZTFVkY3Ro5+VqEnQdjp1PY4IKJT5hykP0kBjtU6XCu3yiNo0VhjATcfu5ZXUkz7mtMJGQTCc3zLJjct9I+NlwT0AIkiqvciGBlRq9WGN0reA9BXwb19TZ24SFDvhbN7ACuS/yNZMCUOCA0Il6paTTc8ICG+F8vJpEkzRtIqm8FGjWgiOCpjqoJ8byXf17fo2DyQUNiAt6abfDHVRkJt/WdIUEUkQtv8Tqmw3oQn6aai+ZZCGS6asLJOXesxoqQ6k7PMZq36sRZs2h2eSSN1r+0v4Etr9BqZmDFs5EKHlFsnkticRgIboChzPdJ4Gi9/SaKlg5dfwaERna/JZk0mc6UlSP8zQ9sUvTQX4uTog793S6p+4HUnvjiAj2U8oSlVK1aRVTJ3Auybv+HsvWXyf1D7CAbgCQLfQJRjTaVlF7L1yJ/BRSSXn/kKlAI+jQsTm2kR1mGq1oBZb9MNquvpIHpyGdAaHM96+Aa1ac5K1FAB5piAYWGtDOg5Z1mrY+oKtjyXZ67NcxxlyzftrcE0/tJuK+m/AUUrGJiTMDFluSuQnTUbNpaRZ0tEb+TNgmI6OZh6lHxLoxtSrQo2rrduyNYqS3IHQYSsaB+am8f7ODHyZNr22BElIf+xfSJqBDpoAoQ/a+yQeR/V3VYGBYCHLqo4V1xW6ekjvX0e9mJr1+BuVbQMFM0raI98UezgJboTx7YhwURhwtZ70PE= 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)(346002)(39860400002)(396003)(136003)(451199021)(46966006)(36840700001)(40470700004)(70586007)(110136005)(86362001)(478600001)(82310400005)(70206006)(41300700001)(316002)(6666004)(5660300002)(7696005)(36756003)(8936002)(6636002)(8676002)(4326008)(356005)(44832011)(82740400003)(81166007)(40460700003)(186003)(26005)(1076003)(36860700001)(4001150100001)(2906002)(47076005)(336012)(426003)(2616005)(40480700001)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB9993 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT007.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 7e364c70-46b2-47bc-263b-08db5219f40a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FnV0GI6JOGB8PSB/lyWxF8PsGiSSWgNu+J8e/WEunUAZbn+/A/taPggbWLt/hqEjDrqHznnn+PYWD7hNykco830rksO8FerqCXoKw5lbf6oIPQZCz2yA3++Yo6S/AX8Ez+voJH0l59PRqYsZM4oAqp0eaz3VYrTmfez3RnM4Cc6Kgqp89UVfEIUDyXLlSAgArFuf5olYmDxQdm98PHngDO4tjiaWdpoUoYy9+Cz0h12r0t5tDrhVt9ah8VsBPRDqeyvWdJH41ZQrWxBt4DCPM2qBCizGDlCbFVakq6k2FFBoFEqo9zOZEJR1UXkhndnSa0aguvu2C01G0yZhvpS7FCJa3jZKVnR6rxfgkP1iRFcjXxZ+mn3Q4dJE7sfy2lMIQEWERtMdKx+EzMFg8fiOdWEDFthtoHPL8A+IzTTVFhhEE8OmkfOa4U9wreOCfkavXgHOhwg50PXqfWHxQsOeO6aLuulToa4gGQW9lXv1ab/A4c3nNwlRCAtOSXbMLtPxcVrEqRludqNHs+TaO4QBBFPjnmqXHJmLwoIOEDhcDLNbmeEk8k9bKCa8raEpjYb40K3aGyJdpcSALbjjoB3gEGFOLZOj08zawE3R5zf/wwJdjJiDlpKIHr9S4mxgHTJd88KKGfAtxlYcN/zDL3Y49ZJb598eQHKseIO9s6TJKna04kknCUMdLlbDb5jXlZ13s2JNtIBRVWwBD8TFCQudEQ== 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)(346002)(39860400002)(451199021)(46966006)(36840700001)(40470700004)(40460700003)(4326008)(70586007)(316002)(478600001)(6636002)(70206006)(7696005)(110136005)(36756003)(86362001)(426003)(336012)(2616005)(1076003)(36860700001)(26005)(6666004)(47076005)(2906002)(82310400005)(41300700001)(5660300002)(40480700001)(186003)(81166007)(4001150100001)(82740400003)(8676002)(8936002)(44832011); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2023 12:19:35.6884 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 957a57e4-841f-4ded-9631-08db5219fbe8 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: DBAEUR03FT007.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB9684 X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, 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+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> |
Series |
[01/24] arm: [MVE intrinsics] factorize vaddlvaq
|
expand
|
diff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc b/gcc/config/arm/arm-mve-builtins-shapes.cc index a7faf8299cb..e491c810b40 100644 --- a/gcc/config/arm/arm-mve-builtins-shapes.cc +++ b/gcc/config/arm/arm-mve-builtins-shapes.cc @@ -365,6 +365,33 @@ struct binary_def : public overloaded_base<0> }; SHAPE (binary) +/* <[u]int32>_t vfoo[_<t0>](<T0>_t, <T0>_t) + + i.e. the shape for binary operations that operate on a pair of + vectors and produce an int32_t or an uint32_t depending on the + signedness of the input elements. + + Example: vmladavq. + int32_t [__arm_]vmladavq[_s16](int16x8_t m1, int16x8_t m2) + int32_t [__arm_]vmladavq_p[_s16](int16x8_t m1, int16x8_t m2, mve_pred16_t p) */ +struct binary_acc_int32_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, "sx32,v0,v0", group, MODE_none, preserve_user_namespace); + } + + tree + resolve (function_resolver &r) const override + { + return r.resolve_uniform (2); + } +}; +SHAPE (binary_acc_int32) + /* <T0>_t vfoo[_n_t0](<T0>_t, const int) Shape for vector shift right operations that take a vector first diff --git a/gcc/config/arm/arm-mve-builtins-shapes.h b/gcc/config/arm/arm-mve-builtins-shapes.h index 46cc26ef918..9e877c9591a 100644 --- a/gcc/config/arm/arm-mve-builtins-shapes.h +++ b/gcc/config/arm/arm-mve-builtins-shapes.h @@ -37,6 +37,7 @@ namespace arm_mve extern const function_shape *const binary; extern const function_shape *const binary_lshift; extern const function_shape *const binary_lshift_r; + extern const function_shape *const binary_acc_int32; extern const function_shape *const binary_maxamina; extern const function_shape *const binary_maxavminav; extern const function_shape *const binary_maxvminv;