From patchwork Thu Aug 15 08:44:16 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: 1972691 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=E7ChB+15; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=E7ChB+15; 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 4WkzGT6DNBz1yYl for ; Thu, 15 Aug 2024 18:45:20 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9DD37385DC32 for ; Thu, 15 Aug 2024 08:45:17 +0000 (GMT) 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-vi1eur05on20600.outbound.protection.outlook.com [IPv6:2a01:111:f403:2613::600]) by sourceware.org (Postfix) with ESMTPS id 82D553858D34; Thu, 15 Aug 2024 08:44:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 82D553858D34 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 82D553858D34 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2613::600 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1723711487; cv=pass; b=P+l21wg6Xnh/aBlVvEgeEoDMckR+Q7ZC1m2LQbc/7YbG/WMk4SyRNUSe8opr1cT0q6Gh8yHI/1HMmjI+a0RthY8Uc7dargDVUXW2AmL1rjXfJhUagL235ZaFtyu40+ed4y68NoSnhx269CJL81EGfakWxkIW2VvF+iGboiirNuQ= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1723711487; c=relaxed/simple; bh=5pjxXTMQdwj+D65HriAiObpmrPTKjsmkQoYzFG+9rxM=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=VG23ZyaWVZhDgCQ9Anb22wwuUWLOxuxXwLNXvjtlahoP90QiJMAwnQT/hBPqsZ2AFqIxqKNPBgpXr8ZQCUIhm002U10QT32I3uI7rMzzsHA4OKPnvHS8GHNx8p3VuCjYkKZ4YrR5k7oz1NrabWPA1RBhDaAIuo2kCAcB1mmDFDg= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=yU5Le7ZhoJnaRoEtYjlYc0XSWIlJSmNkVmS3w866oGXMNSqHvDVOssWD4N16bbJS9VGdmsBHdDUpGwiqcHHm7x/8ZyhGb15OpIzuuREAJ7Rz84x64nrXucJJxG+Kfkedfkcwx+svhy3gxIlOPZDqz2biIEYuZETjuHbt+dtblS22uTLsASCDH4jfvCF+nkUjAHqa4FpvQHNuqVVS6ohQu9IUu88gqec/HuKJp4du5wlylcXFNezpxkqi9KaMNGCAWpWHT57OziFhCEUTBaS9AXKwkZiGTfZMomlez/btFxOP39jtvuL/h0wQ085/jWxhCbyi/Vibe2ue2zSjr3SPSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=wyLVWPZf0FCtxGGCKBE90BGfjlTaT2yyTwYuWNjKJwo=; b=QXxUyBPepzLFnccP5T6nVGwaf5I65CcUkHivzPPb7Wkef2bfECQplCmSAeH+ldApRq3t6llWM2EycoZsy5lIWXPywZsVZJqPeT58J2S3VHE5S23Zr/1+ZS5OJCbT0zp7AGkpNhfdoLyULnbRaF0KxvhFX4isAKxs0kbwnRzPBfp91sctyOh8ZmPH0yhmZsYL6euH9BLI+K1e0BnHdhbTmQXnZ8+g7x1ynaeu9ZQfqX/2vOd+bcp/vt/GsQ+fRs7NL6xfOO+5Vsn/XNcG4Xxpk5kN/YNcMoEdNXE9JttfXfLQdSq+8qcrrLp6F2R5WuSlafU6jNjuYWz7eQ/W2cIPWQ== 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=wyLVWPZf0FCtxGGCKBE90BGfjlTaT2yyTwYuWNjKJwo=; b=E7ChB+15RwN6MeT66ZX5be7Lfj2vpBTaXkWA5E7YWz98IwY//dtuOXIK4wNYZzFGMiwyw6PqOT5/VY7aG1PXHu3DJtOL7GvTldWyy1klfe1SdrPxf7r9z5dZ9SY0joEspnH5NZFXFk4eK930Mj6allEdpowJJ+8SpHqsweQ7b9w= Received: from AM0PR02CA0219.eurprd02.prod.outlook.com (2603:10a6:20b:28f::26) by AM7PR08MB5528.eurprd08.prod.outlook.com (2603:10a6:20b:dd::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.9; Thu, 15 Aug 2024 08:44:39 +0000 Received: from AM3PEPF00009B9E.eurprd04.prod.outlook.com (2603:10a6:20b:28f:cafe::2a) by AM0PR02CA0219.outlook.office365.com (2603:10a6:20b:28f::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.24 via Frontend Transport; Thu, 15 Aug 2024 08:44:39 +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 AM3PEPF00009B9E.mail.protection.outlook.com (10.167.16.23) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7849.8 via Frontend Transport; Thu, 15 Aug 2024 08:44:37 +0000 Received: ("Tessian outbound f2759ff2c19a:v403"); Thu, 15 Aug 2024 08:44:37 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 50d46fac73e22a27 X-CR-MTA-TID: 64aa7808 Received: from L2941b6a3a0f9.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 9B647309-BF08-40C7-A3A3-9058F295175C.1; Thu, 15 Aug 2024 08:44:31 +0000 Received: from EUR03-DBA-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L2941b6a3a0f9.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 15 Aug 2024 08:44:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xPo3S4qRwdN/dVhftddkzJY/Z8WHyJjmuJgAEG4WqJtjwEm65XnWP+J7arI7nnx9Z2S3OxI3h8yZrmpVn9UeJrq6lmdKuYcLfald2Bbv1bsYBx3HN3pi+fjs74oTVGHs9Uewy4Cs3eBH7ddtIn2TQplViQNPH4xUqaPEZKGdn/BuA83WhsFC6ZzdLCdjE/iGYOPLxFIVecm8cI3w3KzSQg0jzjwYU57dHiqxfcHeQUqZy8x2a3pkSC4cqsW5U+ho5aUdGUQd0epnmqTJL9YFxeUc7826YgrV/B4ZCkDC9dLxL2/9gsF9G9+5N7Q2NKWOSSeawMbdTuKWDRfguMCMDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=wyLVWPZf0FCtxGGCKBE90BGfjlTaT2yyTwYuWNjKJwo=; b=tzdtYwAuZ0qz5uV4Imzya5AAWB3j1pff0vOxDMrUCL0VE6OAQ8T8IdLlkjCkkg+zWlOq/ebjuu4QxCBcSU6l2pE7nCPak96YaWh7jF2jcICX3JPJDTUbj6dU/Z7rbvziHqWelYZ1Q8rqmvUg/wwbQCN4jts0di0r14dDGw0C111YrDVZOdr+Zegufhd41IjZNtDZQW8TqtMyoUKki3A8luipVgLBl59e4KmXqTGYxA+Fl7S08mTdK8pNAxxgEI6ptfF5m76OhYlRZERa60go2BraAud8KpLBTI5pG/Z30qWLkwSQwj+CeUsWV+kS3z3p7lHbolmnBs1yOk1nA6DtUw== 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=wyLVWPZf0FCtxGGCKBE90BGfjlTaT2yyTwYuWNjKJwo=; b=E7ChB+15RwN6MeT66ZX5be7Lfj2vpBTaXkWA5E7YWz98IwY//dtuOXIK4wNYZzFGMiwyw6PqOT5/VY7aG1PXHu3DJtOL7GvTldWyy1klfe1SdrPxf7r9z5dZ9SY0joEspnH5NZFXFk4eK930Mj6allEdpowJJ+8SpHqsweQ7b9w= Received: from DU7P194CA0019.EURP194.PROD.OUTLOOK.COM (2603:10a6:10:553::34) by PA4PR08MB5984.eurprd08.prod.outlook.com (2603:10a6:102:ea::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.9; Thu, 15 Aug 2024 08:44:29 +0000 Received: from DB5PEPF00014B9D.eurprd02.prod.outlook.com (2603:10a6:10:553:cafe::ed) by DU7P194CA0019.outlook.office365.com (2603:10a6:10:553::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.23 via Frontend Transport; Thu, 15 Aug 2024 08:44: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 DB5PEPF00014B9D.mail.protection.outlook.com (10.167.8.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7849.8 via Frontend Transport; Thu, 15 Aug 2024 08:44:29 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) 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.39; Thu, 15 Aug 2024 08:44:29 +0000 Received: from e133397.arm.com (10.57.49.220) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Thu, 15 Aug 2024 08:44:28 +0000 From: Victor Do Nascimento To: CC: , , , , , , "Victor Do Nascimento" Subject: [PATCH V3 01/10] optabs: Make all `*dot_prod_optab's modeled as conversions Date: Thu, 15 Aug 2024 09:44:16 +0100 Message-ID: <20240815084425.2519197-2-victor.donascimento@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240815084425.2519197-1-victor.donascimento@arm.com> References: <20240815084425.2519197-1-victor.donascimento@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DB5PEPF00014B9D:EE_|PA4PR08MB5984:EE_|AM3PEPF00009B9E:EE_|AM7PR08MB5528:EE_ X-MS-Office365-Filtering-Correlation-Id: 055011c1-ba4e-4546-cf52-08dcbd067f21 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|1800799024|36860700013|376014|82310400026; X-Microsoft-Antispam-Message-Info-Original: 3NptHWCRh2CZ0YTjDYFB/S2ht15UrEei6dbhGYi9ha1Zi3bUrY0GTKooVVybPk5P4CIBvTz+U1npTVK7vyQSjpXz0bToQvBbVbuIelA+GxjXQv6BoTxBe76NYrPoV9hhZhleJodc10/9TxM31x6XAT8CCgrrKGfXtI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UlmMN6jBaeCWGpd03ty1Ypq6sUoiZjmm8IjURSflLUFLSmm+Z2fplVPyItTlldaSXP1P3vdg8/+k0p0vzdDF0qEhmlSULyfQHGmfvzteSwxNuDjsvjdRtwQmnoRF+Zit6oGrPXWpAEodO6eeKdT7mAXbHwxEotBrBV+gN9Vs0kqnDRTQWRRCf/C+U7wAnY2y40sGqsBBN5gkJgIXCBZXS9uqvy92rnEFCi08Wk 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)(1800799024)(36860700013)(376014)(82310400026); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB5984 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:10:553::34]; domain=DU7P194CA0019.EURP194.PROD.OUTLOOK.COM X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM3PEPF00009B9E.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 4d9dd3d9-393f-4f56-bb00-08dcbd067a1d X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|376014|35042699022|82310400026|1800799024; X-Microsoft-Antispam-Message-Info: FICbTIuSqyxpEgfcwruHAE041oWEVkLxmsxFSvEf7XykoQLNep7jEyT90E3/mLqmvW0J97Qvqm494LUnOz8lY4eNaw0Q+Y6dNcDLP4kEotFUUvKsd1fPOIxv+XKzfp8edZRx5+RbAQ/sXbBus+0f9zs+aHd/u3Q2l/Kp1UmgsTwNYPhMG7m7leCE9KuWfUyPoJRdmjqTLfbjTvH4aiqt3EouecFWVpzzrBUvWfZQ/JvPfmoBudvn5oGXUtXDOHoEwKlgQkfMPIUoc0MSJ2KfluVENQ4UqX8yl5ih5N6pyqasstz3IPex36nok11JBNtr/zhLrGVAARQuuyZwMMo0FCoKIMr9lqAL3acoAT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TyQkd8Br9PXi0FGHPid3Z8aPwa8+SRLU3N 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:(13230040)(36860700013)(376014)(35042699022)(82310400026)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2024 08:44:37.9205 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 055011c1-ba4e-4546-cf52-08dcbd067f21 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: AM3PEPF00009B9E.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR08MB5528 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, 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.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. We therefore make all dot_prod optabs conversions, allowing, for example, for the encoding of both 2-way and 4-way dot product backend patterns. gcc/ChangeLog: * optabs.def (sdot_prod_optab): Convert from OPTAB_D to OPTAB_CD. (udot_prod_optab): Likewise. (usdot_prod_optab): Likewise. * doc/md.texi (Standard Names): update entries for u,s and us dot_prod names. --- gcc/doc/md.texi | 46 +++++++++++++++++++++------------------------- gcc/optabs.def | 6 +++--- 2 files changed, 24 insertions(+), 28 deletions(-) diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi index 5dc0d55edd6..aa1181a3320 100644 --- a/gcc/doc/md.texi +++ b/gcc/doc/md.texi @@ -5760,15 +5760,14 @@ for (i = 0; i < LEN + BIAS; i++) operand0 += operand2[i]; @end smallexample -@cindex @code{sdot_prod@var{m}} instruction pattern -@item @samp{sdot_prod@var{m}} - -Compute the sum of the products of two signed elements. -Operand 1 and operand 2 are of the same mode. Their -product, which is of a wider mode, is computed and added to operand 3. -Operand 3 is of a mode equal or wider than the mode of the product. The -result is placed in operand 0, which is of the same mode as operand 3. -@var{m} is the mode of operand 1 and operand 2. +@cindex @code{sdot_prod@var{m}@var{n}} instruction pattern +@item @samp{sdot_prod@var{m}@var{n}} + +Multiply operand 1 by operand 2 without loss of precision, given that +both operands contain signed elements. Add each product to the overlapping +element of operand 3 and store the result in operand 0. Operands 0 and 3 +have mode @var{m} and operands 1 and 2 have mode @var{n}, with @var{n} +having narrower elements than @var{m}. Semantically the expressions perform the multiplication in the following signs @@ -5778,15 +5777,14 @@ sdot == @dots{} @end smallexample -@cindex @code{udot_prod@var{m}} instruction pattern -@item @samp{udot_prod@var{m}} +@cindex @code{udot_prod@var{m}@var{n}} instruction pattern +@item @samp{udot_prod@var{m}@var{n}} -Compute the sum of the products of two unsigned elements. -Operand 1 and operand 2 are of the same mode. Their -product, which is of a wider mode, is computed and added to operand 3. -Operand 3 is of a mode equal or wider than the mode of the product. The -result is placed in operand 0, which is of the same mode as operand 3. -@var{m} is the mode of operand 1 and operand 2. +Multiply operand 1 by operand 2 without loss of precision, given that +both operands contain unsigned elements. Add each product to the overlapping +element of operand 3 and store the result in operand 0. Operands 0 and 3 +have mode @var{m} and operands 1 and 2 have mode @var{n}, with @var{n} +having narrower elements than @var{m}. Semantically the expressions perform the multiplication in the following signs @@ -5796,14 +5794,12 @@ udot == @dots{} @end smallexample -@cindex @code{usdot_prod@var{m}} instruction pattern -@item @samp{usdot_prod@var{m}} -Compute the sum of the products of elements of different signs. -Operand 1 must be unsigned and operand 2 signed. Their -product, which is of a wider mode, is computed and added to operand 3. -Operand 3 is of a mode equal or wider than the mode of the product. The -result is placed in operand 0, which is of the same mode as operand 3. -@var{m} is the mode of operand 1 and operand 2. +@cindex @code{usdot_prod@var{m}@var{n}} instruction pattern +@item @samp{usdot_prod@var{m}@var{n}} +Multiply operand 1 by operand 2. Add each product to the overlapping +element of operand 3 and store the result in operand 0. Operands 0 and 3 +have mode @var{m} and operands 1 and 2 have mode @var{n}, with @var{n} +having narrower elements than @var{m}. Semantically the expressions perform the multiplication in the following signs diff --git a/gcc/optabs.def b/gcc/optabs.def index 58a939442bd..ba860144d8b 100644 --- a/gcc/optabs.def +++ b/gcc/optabs.def @@ -110,6 +110,9 @@ OPTAB_CD(mask_scatter_store_optab, "mask_scatter_store$a$b") OPTAB_CD(mask_len_scatter_store_optab, "mask_len_scatter_store$a$b") OPTAB_CD(vec_extract_optab, "vec_extract$a$b") OPTAB_CD(vec_init_optab, "vec_init$a$b") +OPTAB_CD (sdot_prod_optab, "sdot_prod$I$a$b") +OPTAB_CD (udot_prod_optab, "udot_prod$I$a$b") +OPTAB_CD (usdot_prod_optab, "usdot_prod$I$a$b") OPTAB_CD (while_ult_optab, "while_ult$a$b") @@ -413,10 +416,7 @@ OPTAB_D (savg_floor_optab, "avg$a3_floor") OPTAB_D (uavg_floor_optab, "uavg$a3_floor") OPTAB_D (savg_ceil_optab, "avg$a3_ceil") OPTAB_D (uavg_ceil_optab, "uavg$a3_ceil") -OPTAB_D (sdot_prod_optab, "sdot_prod$I$a") OPTAB_D (ssum_widen_optab, "widen_ssum$I$a3") -OPTAB_D (udot_prod_optab, "udot_prod$I$a") -OPTAB_D (usdot_prod_optab, "usdot_prod$I$a") OPTAB_D (usum_widen_optab, "widen_usum$I$a3") OPTAB_D (usad_optab, "usad$I$a") OPTAB_D (ssad_optab, "ssad$I$a")