From patchwork Tue Nov 8 15:08:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kwok Cheung Yeung X-Patchwork-Id: 17094 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2765664wru; Tue, 8 Nov 2022 07:08:58 -0800 (PST) X-Google-Smtp-Source: AMsMyM5dfwVLvC5JWcVPYj6q3WlQv3JWxczThf5nlrUYtGuSWXlSyYPm2U4K/qs2X3OxPgyFTx3K X-Received: by 2002:a17:907:a062:b0:7ad:d3a4:9e02 with SMTP id ia2-20020a170907a06200b007add3a49e02mr45664500ejc.186.1667920138272; Tue, 08 Nov 2022 07:08:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667920138; cv=none; d=google.com; s=arc-20160816; b=dwTY+6picyQ+8G7RE/McD3cc8MPL32sZKcr7Mjk93nutdV7ClF28UiYarFPuAfW+FY 1FNpoaq06ZG+0w+IAJAfaAmhYIn5SV+LncTcMSZv4b+C0AzPWCXSEyGrb3HI2MPKES4R 4A7dyqldVNskIZkVlb9tYeM0XWWKVQutpIOZhA20L22eHteJZnJnpb9OsJ1vfaX+XbHX wbP0IG2Ic+fHYdwlWyQViDb0n1HQ/pAVO5Uxl1ZKkA9/AT0k1SNd24cLsKLnoXXZ1R8b P9FuFh+9voNzYacxkW4UfGNuaQOMZyYIbKL1nW1wi3SwHZiAxfooFI/PtV/WrdsZwzxe X3vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:from:to:user-agent :mime-version:date:message-id:ironport-sdr:dmarc-filter:delivered-to; bh=rZQYWmFIRCiBUKN1vNzeZcroLPU6jbHz22wut/tZeNc=; b=bR9lxsWR7dVUad1pZV6CTzZTZlOzCq0G0wiPmN/xfE49tPuU7MNsvTlsctU8AWvz4N CukvGYLZ7TuwavRi8huEG9rupwfOx3LEywGKigdqNGMN3v2L3/MLDyPrRC1GeVt475ub ltD77wInyr6fErPhyQyOinUd2Ud3bmfgw1VTY4Uv/nlzDOfinR2jzur2MpoRpsUfkcfQ B9iYj2LxeoFVIDd6GXV9ML6J7ICMBJ24biUNB0FcWvDdHLFM2JyvPdOY/F30sVoEp7rh 44ON4cC/IepFxoR520QS/9Epws5sAXyC5WA1EUeGrWcSzkQ7SfT5Uyg8xj4xvFBUt6+8 J6TA== ARC-Authentication-Results: i=1; mx.google.com; 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" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id hd16-20020a170907969000b007877b1c7f27si12914608ejc.829.2022.11.08.07.08.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Nov 2022 07:08:58 -0800 (PST) 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; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F39F43858015 for ; Tue, 8 Nov 2022 15:08:50 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 4961B3858D39 for ; Tue, 8 Nov 2022 15:08:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4961B3858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.96,148,1665475200"; d="scan'208,223";a="89317078" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 08 Nov 2022 07:08:24 -0800 IronPort-SDR: bMSA4pu7J/Rqd0QtBuc1Xs27+S/ylPewmyvHKj6ucX4As/yjhNBdFFhwwSd4M6KyMxi5ZyDf6u Q615YMaFMJo4BwpQw1RlHXYLp/qeREEsyvL8vAdq72kKIiECxlSRqd0lvk7EteMK36qPDxYbAm TjUaQ+Z8xjG7RT6y98gNNBW6jrm0aT4/D6RN3hUk363uaK9O6e6jg/8awEhh9497ZM4bLHZ8W8 aXNSNbgbI4YEc303b/1fKZD9zzQ+aF+7RB+2gpKuk8/nXLkLmTE7ajfAxquh1khCS5vS5BbjmR plk= Message-ID: Date: Tue, 8 Nov 2022 15:08:06 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 To: gcc-patches , Andrew Stubbs From: Kwok Cheung Yeung Subject: [COMMITTED] amdgcn: Fix expansion of GCN_BUILTIN_LDEXPV builtin X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-07.mgc.mentorg.com (139.181.222.7) To svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) X-Spam-Status: No, score=-11.9 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.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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748941027101966500?= X-GMAIL-MSGID: =?utf-8?q?1748941027101966500?= Hello This patch fixes a bug in the expansion of GCN_BUILTIN_LDEXPV. As this is a double-precision operation, the first argument should be expanded as a V64DF expression (instead of V64SF). Committed to trunk as obvious. Kwok From cb0a2b1f28cf0c231bf38fcd02c40689739df7bb Mon Sep 17 00:00:00 2001 From: Kwok Cheung Yeung Date: Tue, 8 Nov 2022 14:38:23 +0000 Subject: [PATCH] amdgcn: Fix expansion of GCN_BUILTIN_LDEXPV builtin 2022-11-08 Kwok Cheung Yeung gcc/ * config/gcn/gcn.cc (gcn_expand_builtin_1): Expand first argument of GCN_BUILTIN_LDEXPV to V64DFmode. --- gcc/config/gcn/gcn.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/gcc/config/gcn/gcn.cc b/gcc/config/gcn/gcn.cc index 9c5e3419748..5e6f3b8b74b 100644 --- a/gcc/config/gcn/gcn.cc +++ b/gcc/config/gcn/gcn.cc @@ -4383,7 +4383,7 @@ gcn_expand_builtin_1 (tree exp, rtx target, rtx /*subtarget */ , return target; rtx arg1 = force_reg (V64DFmode, expand_expr (CALL_EXPR_ARG (exp, 0), NULL_RTX, - V64SFmode, + V64DFmode, EXPAND_NORMAL)); rtx arg2 = force_reg (V64SImode, expand_expr (CALL_EXPR_ARG (exp, 1), NULL_RTX,