From patchwork Sat Nov 2 07:37:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lulu Cheng X-Patchwork-Id: 2005394 Return-Path: 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=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 4XgV294wMRz1xxN for ; Sat, 2 Nov 2024 18:37:53 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C488F3858D37 for ; Sat, 2 Nov 2024 07:37:51 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 3DC853858D33 for ; Sat, 2 Nov 2024 07:37:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3DC853858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3DC853858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=114.242.206.163 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730533054; cv=none; b=qVSaSuw6QiWblNW0+HwJ13/q2gY+kyP5q9BRQBiBumsAVf6RdXxpKMmwrENxnYUw09PNlJyHIYDZn9tAjTnk+RugmFgndzZUN02eK6ca8/zgSjEP481lODR3dEN2XaO310u+et0lnm3Q33gWi2N9U6QOYL8voDeECcGuNDWIVr4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730533054; c=relaxed/simple; bh=Ck6Y11ihbHbHk4achCb8SJDXTYj2+YB4r0FBt85mjm0=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=qGafCdYkjgKXM9lAjb1cOMJP9z/80UY5DPFaw8Ss4osmFvqqhHXrlvG7ijv69D7tlSBsJ00vsKdiFs7o7gt6WrYVoZwAc1XFmwHueEH9UcGENkHVgmNeI4xxJjpBduWVBlzOYplEP1L+gMx1NbPBwxOB/zTNH1lVCIxvq6/E6Q4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from loongson.cn (unknown [10.20.4.107]) by gateway (Coremail) with SMTP id _____8Dxfa+41iVnPm0nAA--.56243S3; Sat, 02 Nov 2024 15:37:28 +0800 (CST) Received: from loongson-pc.loongson.cn (unknown [10.20.4.107]) by front1 (Coremail) with SMTP id qMiowMAxz0ew1iVnTXc1AA--.40250S2; Sat, 02 Nov 2024 15:37:26 +0800 (CST) From: Lulu Cheng To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn Subject: [PATCH] LoongArch: Fix clerical errors in lasx_xvreplgr2vr_* and lsx_vreplgr2vr_*. Date: Sat, 2 Nov 2024 15:37:18 +0800 Message-Id: <20241102073718.10333-1-chenglulu@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: qMiowMAxz0ew1iVnTXc1AA--.40250S2 X-CM-SenderInfo: xfkh0wpoxo3qxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBj93XoW7Xr1UtF4kKFy3tw45tw4DWrX_yoW8Jr1Upr yDZ3sIyF4rGF17GF1D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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 [x]vldi.{b/h/w/d} is not implemented in LoongArch. Use the macro [x]vrepli.{b/h/w/d} to replace. gcc/ChangeLog: * config/loongarch/lasx.md: Fixed. * config/loongarch/lsx.md: Fixed. --- gcc/config/loongarch/lasx.md | 2 +- gcc/config/loongarch/lsx.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/loongarch/lasx.md b/gcc/config/loongarch/lasx.md index d37b2e83c21..457ed163f31 100644 --- a/gcc/config/loongarch/lasx.md +++ b/gcc/config/loongarch/lasx.md @@ -1402,7 +1402,7 @@ (define_insn "lasx_xvreplgr2vr_" "ISA_HAS_LASX" { if (which_alternative == 1) - return "xvldi.b\t%u0,0" ; + return "xvrepli.b\t%u0,0"; return "xvreplgr2vr.\t%u0,%z1"; } diff --git a/gcc/config/loongarch/lsx.md b/gcc/config/loongarch/lsx.md index fcba28b0751..a9004290371 100644 --- a/gcc/config/loongarch/lsx.md +++ b/gcc/config/loongarch/lsx.md @@ -1275,7 +1275,7 @@ (define_insn "lsx_vreplgr2vr_" "ISA_HAS_LSX" { if (which_alternative == 1) - return "vldi.\t%w0,0"; + return "vrepli.b\t%w0,0"; return "vreplgr2vr.\t%w0,%z1"; }