From patchwork Wed Jul 10 14:05:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Victor Do Nascimento X-Patchwork-Id: 1958858 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=a3di62tz; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=a3di62tz; dkim-atps=neutral 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=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WK0Br5fKWz1xqc for ; Thu, 11 Jul 2024 00:11:00 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7183B3870859 for ; Wed, 10 Jul 2024 14:10:58 +0000 (GMT) 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-dbaeur03on20601.outbound.protection.outlook.com [IPv6:2a01:111:f403:260d::601]) by sourceware.org (Postfix) with ESMTPS id 3CF10384A49E for ; Wed, 10 Jul 2024 14:07:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3CF10384A49E 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 3CF10384A49E Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:260d::601 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1720620461; cv=pass; b=M3q/ci/Nk/H9NPFrmPJ1PNsCqwG7P93urkTDRBgkD3IVaWNKagmnWJ32OkXgwo+dv26xeqyyx0CenTIIpIR/3XFRl6oxDt2ky6e6ygQxD1Tt0jYHDMQ5JnyFZ08z14ojY5NFA9DtdyL2ZO78J0VSA6QXHnEfEphL7/ofbZ4mWQA= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1720620461; c=relaxed/simple; bh=UtV2z3JgYSdq6s+SG5m5JMTpL59GYir49KMKTdOyoSg=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=ot7P+fBAjHjRZqDO1oW0rcPT3+Ppp0qnc3lmh6bC6/iTw2erl330XY0Up0/JZr360gxyQ6L7kS+JEUP1LizFfOifKe2/A0KreAgxWA7pS/UbzMj3V8GtEyxLnPutxFboJ2tm5TE8OkANnDN2ce9fHkvjiuFld7Ap2Hrv+0dcsrM= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=G/NDTMlX6MVhVvJPffDDgIpWRv3GRZujk0LJO475T4WAEArfY8hZffcQ0/UgCoSrZdKe5c639HDCiQ9xvkBQJ0rkjd6TBY3/IUJx2qrTQYZHL6PRegViqhTfZQj6izeWdRAfIaiWRFN0WA+J26ZAOZkEXkJb35nfLpsXVtM/9kGucSoXNj+/vPh3s+HhdcpWbKLOWuQ3rUYkxaCua3Ux4v3nOe7KKbtX1lXy59TLix6R3ULrRNGAO2svQTQ6cEFWDgVpTlZ971Nm4h1GAtwUsyKtl9kkV51956nYercG2IGWYHsPgEA/8ou05ahVoCKLtq2ugA+m6qbSxZs+NuDybw== 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=heUcssOsF1ZH+tYqz63nLu73zJ28MMKhQb7gRR+FOsw=; b=MPQPSvUJjg/ywmaOfRQcqD2WqJzTOFkqeQSDa3sof5kURoZpxcv/Z7EYGyPu3q11k3oiFSt1zGiKELO85q5AB3arwWXgNyojJIPxrA59qJncBVLvo+/QFW2/4frvV1LiYfK2ug2HpQdzXWal/ZbQ3XNG7RXTNazuWHNZzn0Io+Ox7aMyYx9owvc007L55EBJD6mGk1t/R2h28qgPzm4Zkf8tbcrcP+LYyo0sNTUw2F3x0L1LIRl3p9HByXCdQnXZtlWV3oh3ODN7PIzyqHP3yCslma4hWxIVQLUc+9NTSKOHbAzweEi47vvnauxu8daWScMpcT41OUUHcCRGwef6zA== 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=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=heUcssOsF1ZH+tYqz63nLu73zJ28MMKhQb7gRR+FOsw=; b=a3di62tzPcPSPo9elanw97USLSdO0FbbwpP9tHxbha60uk7VDdX356PCFixpROrgYzkMRX0kNoutTzBptKqPCcWybJOxOdYxvQ5SB/Fc7JB1jJM8eZ8SjEuhKPPz4+uCBeZ8PSGPIsgKnRh20Hrqg2fUYHOjwfGIJTcZNvD5+mY= Received: from DBBPR09CA0026.eurprd09.prod.outlook.com (2603:10a6:10:d4::14) by DBAPR08MB5687.eurprd08.prod.outlook.com (2603:10a6:10:1b1::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.20; Wed, 10 Jul 2024 14:07:35 +0000 Received: from DU6PEPF00009523.eurprd02.prod.outlook.com (2603:10a6:10:d4:cafe::4) by DBBPR09CA0026.outlook.office365.com (2603:10a6:10:d4::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.36 via Frontend Transport; Wed, 10 Jul 2024 14:07: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=arm.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 DU6PEPF00009523.mail.protection.outlook.com (10.167.8.4) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7762.17 via Frontend Transport; Wed, 10 Jul 2024 14:07:34 +0000 Received: ("Tessian outbound 8d320bbb64fa:v359"); Wed, 10 Jul 2024 14:07:34 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: af979e01a7e77a07 X-CR-MTA-TID: 64aa7808 Received: from bf17792bb07d.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E30750CC-5F4B-45E7-BB2B-FDED78A8E620.1; Wed, 10 Jul 2024 14:07:28 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id bf17792bb07d.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 10 Jul 2024 14:07:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CpsOhEU4GWVoWNZ4AvemTUK/6bdrSLGv9a7SaTxrNb+65W2Q66ll6fRuDnHmH2wcOXD1bPKcQRg0NNPoJhNX8mupfruzahYmyUXAy742Ocp//0joTp8/ThmhTgMCrl7iO7Nl3mtBk4S+v8zqkZqMzI6gWfdJNyXdysKh2aieZGieuFLrQjoN9Xr4CfkoaCEunvv9haKnWkqP0Q1w6FLmlx88UAzO77vhOfJol5+LSP8P1rxApxNpCh8IZGsgFcbXyEZbIewEQIDEWhlcQhYnZsXhXUf4N5yqZUZgrrl1u674O8Te4oqdrk1YoCOz8TxBocZR7YD0TV3Rfv3BG/MsDw== 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=heUcssOsF1ZH+tYqz63nLu73zJ28MMKhQb7gRR+FOsw=; b=PrkvpVWcB/wkNkY4FytnbjHoDJu9rPsHTSSpY+Dbt9cE7Z6i35Ms8eS6wGQsTW8plS/btOS23QF40QhGRQoiWG9+dFzpVronaqQLOPoYCLusVzhM/8wztZpEWhOS/xGWoys3rqP/GjXbegyKBBjC9gRQhFGPzfkIH/IA8uErB+MaRmftEjnP0+wnVDvp9g62QyhOcvRN+Ij6M+/JPdBOdAbWALy1Slf2zdPanYQIRA9jlRtjFck5VKD6vj6m65jP+kIQ3ifgGnc/NJtUq9NRVaG26M67GQP+deFZ8LBTNJNjThTl7a49Rz9jcVyCU/Ce1y9a6orlGLRaOgJSm/hclA== 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 (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=heUcssOsF1ZH+tYqz63nLu73zJ28MMKhQb7gRR+FOsw=; b=a3di62tzPcPSPo9elanw97USLSdO0FbbwpP9tHxbha60uk7VDdX356PCFixpROrgYzkMRX0kNoutTzBptKqPCcWybJOxOdYxvQ5SB/Fc7JB1jJM8eZ8SjEuhKPPz4+uCBeZ8PSGPIsgKnRh20Hrqg2fUYHOjwfGIJTcZNvD5+mY= Received: from AM7PR04CA0023.eurprd04.prod.outlook.com (2603:10a6:20b:110::33) by VI0PR08MB10447.eurprd08.prod.outlook.com (2603:10a6:800:207::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.34; Wed, 10 Jul 2024 14:07:25 +0000 Received: from AMS0EPF0000019A.eurprd05.prod.outlook.com (2603:10a6:20b:110:cafe::c0) by AM7PR04CA0023.outlook.office365.com (2603:10a6:20b:110::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.20 via Frontend Transport; Wed, 10 Jul 2024 14:07:25 +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 AMS0EPF0000019A.mail.protection.outlook.com (10.167.16.246) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7762.17 via Frontend Transport; Wed, 10 Jul 2024 14:07:25 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) 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.35; Wed, 10 Jul 2024 14:07:23 +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.35; Wed, 10 Jul 2024 14:07:22 +0000 Received: from e133397.arm.com (10.57.7.170) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 10 Jul 2024 14:07:22 +0000 From: Victor Do Nascimento To: CC: , , "Victor Do Nascimento" Subject: [PATCH 00/10] Make `dot_prod' a convert-type optab Date: Wed, 10 Jul 2024 15:05:53 +0100 Message-ID: <20240710140602.1707875-1-victor.donascimento@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AMS0EPF0000019A:EE_|VI0PR08MB10447:EE_|DU6PEPF00009523:EE_|DBAPR08MB5687:EE_ X-MS-Office365-Filtering-Correlation-Id: 3f98c429-2826-4010-17e3-08dca0e9a5cb x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|82310400026|376014|1800799024|36860700013; X-Microsoft-Antispam-Message-Info-Original: MPuPTWNGc1zF7itjWLIYn9DBOYPCbHWMOCwl9rBmM0qndsRwduOFEWYgOAXhfID8UI7voY4mdy075rbC5k5zYVwnpJMn46GMm+EFjetH6wWOroSlboJ/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A2dX8L/acySl2fXjSFSzOwqId+dip4HFOLCsTcHvUj03rWH4oqt41A4PwoQwgQpGZUaIbegD0qHq82dSRfPptQPaGbe0sscvjJ+uoyOuqIwf9TbrkxRewu+AlW2W6A/vQzPqT+KihE2RyqK6GsC6tnhbup+HGFEGnqr3yUlXy3iMealdWYqW7lHLGA93doWTu7WN97Fb5/q0mnVU3huDKVvZc1lxVZvEGhVXBSa0Rmw3OXRx9nene+e6P7LtnguAe39+UMbjbU4H9w01KuNgE+qGPi8QBDGN 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:(13230040)(82310400026)(376014)(1800799024)(36860700013); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR08MB10447 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU6PEPF00009523.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 95522b3f-442d-4c65-07ef-08dca0e99ff3 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|35042699022|1800799024|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: ZGHDSiPw9i+XZo2d7LXJaCnMYrtAFinXgLRxGpYhAw8YYZTnKhmPb+HReDzZ9uKKfQmFrsX26laICSfBvGhx2L5EQBFyozVnrBZi+e1Eqwsp/el4LxSX2BoBBsHpQ0by6USIZolHApaIeWjUR/luOj50brnn09ozCEPOwGGx/R6apnWsOYzeCS+//g7xcxfHM4C94hZO61UdeqSkqZEyLH8QTPWLTx03CghWLa45Uj5cvOaxV13GsQnRhYK8RxxiSqAIC92QzDzmbdI0kQcUeF3K9M5Pnubq6mWA7xK+4rYTP7WCIihjJlMbJ3/hHqLPdr1mggCWJkOuRFAOVTs++QRSQmuNpPM4yFMqyO+WGPHxVxcX/QSuKSicGqF/3N+6YEwSZTlo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ront-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:(13230040)(376014)(35042699022)(1800799024)(82310400026)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2024 14:07:34.8361 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3f98c429-2826-4010-17e3-08dca0e9a5cb 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: DU6PEPF00009523.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR08MB5687 X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, SPF_HELO_NONE, 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~incoming=patchwork.ozlabs.org@gcc.gnu.org Given the specification in the GCC internals manual defines the {u|s}dot_prod standard name as taking "two signed elements of the same mode, adding them to a third operand of wider mode", there is currently ambiguity in the relationship between the mode of the first two arguments and that of the third. This vagueness means that, in theory, different modes may be supportable in the third argument. This flexibility would allow for a given backend to add to the accumulator a different number of vectorized products, e.g. A backend may provide instructions for both: accum += a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3] and accum += a[0] * b[0] + a[1] * b[1], as is now seen in the SVE2.1 extension to AArch64. In spite of the aforementioned flexibility, modeling the dot-product operation as a direct optab means that we have no way to encode both input and the accumulator data modes into the backend pattern name, which prevents us from harnessing this flexibility. The purpose of this patch-series is therefore to remedy this current shortcoming, moving the `dot_prod' from its current implementation as a direct optab to an implementation where, as a conversion optab, we are able to differentiate between dot products taking the same input mode but resulting in a different output mode. Regression-tested on x86_64, aarch64 and armhf. I'd appreciate help running relevant tests on the remaining architectures, i.e. arc, mips, altivec and c6x to ensure I've not inadvertently broken anything for those backends. Victor Do Nascimento (10): optabs: Make all `*dot_prod_optab's modeled as conversions autovectorizer: Add basic support for convert optabs aarch64: Fix aarch64 backend-use of (u|s|us)dot_prod patterns. arm: Fix arm backend-use of (u|s|us)dot_prod patterns. i386: Fix dot_prod backend patterns for mmx and sse targets arc: Adjust dot-product backend patterns mips: Adjust dot-product backend patterns altivec: Adjust dot-product backend patterns c6x: Adjust dot-product backend patterns autovectorizer: Test autovectorization of different dot-prod modes. gcc/config/aarch64/aarch64-builtins.cc | 71 ++++++++++++++ gcc/config/aarch64/aarch64-simd-builtins.def | 4 - gcc/config/aarch64/aarch64-simd.md | 9 +- .../aarch64/aarch64-sve-builtins-base.cc | 13 +-- gcc/config/aarch64/aarch64-sve-builtins.cc | 17 ++++ gcc/config/aarch64/aarch64-sve-builtins.h | 3 + gcc/config/aarch64/aarch64-sve.md | 6 +- gcc/config/aarch64/aarch64-sve2.md | 2 +- gcc/config/aarch64/iterators.md | 1 + gcc/config/arc/simdext.md | 8 +- gcc/config/arm/arm-builtins.cc | 95 +++++++++++++++++++ gcc/config/arm/arm-protos.h | 3 + gcc/config/arm/arm.cc | 1 + gcc/config/arm/arm_neon_builtins.def | 3 - gcc/config/arm/neon.md | 4 +- gcc/config/c6x/c6x.md | 2 +- gcc/config/i386/mmx.md | 30 +++--- gcc/config/i386/sse.md | 47 +++++---- gcc/config/mips/loongson-mmi.md | 2 +- gcc/config/rs6000/altivec.md | 4 +- gcc/doc/md.texi | 18 ++-- gcc/gimple-match-exports.cc | 18 ++++ gcc/gimple-match.h | 2 + gcc/optabs.cc | 3 +- gcc/optabs.def | 6 +- .../gcc.dg/vect/vect-dotprod-twoway.c | 38 ++++++++ .../aarch64/sme/vect-dotprod-twoway.c | 25 +++++ gcc/tree-vect-loop.cc | 1 + gcc/tree-vect-patterns.cc | 43 ++++++++- 29 files changed, 399 insertions(+), 80 deletions(-) create mode 100644 gcc/testsuite/gcc.dg/vect/vect-dotprod-twoway.c create mode 100644 gcc/testsuite/gcc.target/aarch64/sme/vect-dotprod-twoway.c