From patchwork Wed Jan 13 00:58:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Brown X-Patchwork-Id: 1425570 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DFpxF0P1qz9sj5 for ; Wed, 13 Jan 2021 11:59:11 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5BB103938C0C; Wed, 13 Jan 2021 00:59:09 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id A8633386101C for ; Wed, 13 Jan 2021 00:59:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A8633386101C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Julian_Brown@mentor.com IronPort-SDR: jhUaLtcj6E9UfkTJudrNdOjufaVERJD8JpOLzOQBWPRhhdAB6G+mT08eIENb43oqHd+6Q0XM5B NgTPTkhhoZ5JLFQOizcjXwsfzkwjCBxJXaTX5OW6u6W/+4hjARieBRVtIQED41q/nKr8uaku7K t2C8UI15LafNQH3XjoubzpFsT1DAnmAOygsZQ/08iL0/2GBc0/Yq7hzeaL9DmSOcX7O2reTIN0 bbqkjhsDMQdjhCOHEWZqVeEs9vlYWaPmNccTXMhRgXeBwsCxGGc21o5GyVCjAHgOk3vnTugfpx tmE= X-IronPort-AV: E=Sophos;i="5.79,343,1602576000"; d="scan'208";a="57145445" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 12 Jan 2021 16:59:05 -0800 IronPort-SDR: 6gRN1RWAP2P786svKWlz3JYKXREf2A7vPiq/exxpmx+WhA2sfFwV830HTt7vcGotAUVMw7KXDe 5xr5R7jPuFhBjgvAX0iZP5RO7uGsQak+Pfw/c2cATNcA4QDXQtl8vRctn8Gik+KBChFWgBDvr6 6Wa2WeS3D+tIId9SxlBekxZseCRg8222sCLyjl9qaH1+WjHmKmYXrnX8o+3u5ZbgRY8YI5aDhM Jkiw8e9+/gDF3cXKlPtQIlz3s6ca1Ph0g1E8Am3gUUl+ZssLFFnsNeM3VM5Fy/uJGSWFBRaO51 vvk= From: Julian Brown To: Subject: [PATCH] amdgcn: Fix subdf3 pattern Date: Tue, 12 Jan 2021 16:58:49 -0800 Message-ID: <20210113005852.114459-1-julian@codesourcery.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Stubbs Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" This patch fixes a typo in the subdf3 pattern that meant it had a non-standard name and thus the compiler would emit a libcall rather than the proper hardware instruction for DFmode subtraction. Tested with standalone AMD GCN target. I will commit shortly. Julian 2021-01-13 Julian Brown gcc/ * config/gcn/gcn-valu.md (subdf): Rename to... (subdf3): This. --- gcc/config/gcn/gcn-valu.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/gcn/gcn-valu.md b/gcc/config/gcn/gcn-valu.md index 59d9849cb4e..24c17212c2a 100644 --- a/gcc/config/gcn/gcn-valu.md +++ b/gcc/config/gcn/gcn-valu.md @@ -2185,7 +2185,7 @@ [(set_attr "type" "vop3a") (set_attr "length" "8,8")]) -(define_insn "subdf" +(define_insn "subdf3" [(set (match_operand:DF 0 "register_operand" "= v, v") (minus:DF (match_operand:DF 1 "gcn_alu_operand" "vSvB, v")