From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hognose1.porkbun.com (hognose1.porkbun.com [35.82.102.206]) by sourceware.org (Postfix) with ESMTPS id 9CB843858C27 for ; Sun, 6 Aug 2023 12:51:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9CB843858C27 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=jia.je Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jia.je Received: from cslab-alder.. (unknown [166.111.226.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: c@jia.je) by hognose1.porkbun.com (Postfix) with ESMTPSA id F38E141FEB; Sun, 6 Aug 2023 12:51:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jia.je; s=default; t=1691326272; bh=KwbhBmblqXqMpHQ1ZiGktdBC6W6WzjAglaoz95NlhdA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=otkYNNhL+bBiXBFPtay+oJdz5JaNQyY6Jv/QlsISId3AJC1qCjrty4dHgRtmKNzgb H+40azpPbzSMbkq4YpqAEYjCmHNsyQwPW4YOP7GtTVKU3aQb8JB7ZSZmqiSqaGFt9T eZ0CColtcw6RAwnWaMOBFTIMUbnbsZ+q3E238Xy0= From: Jiajie Chen To: gcc-patches@gcc.gnu.org Cc: Jiajie Chen Subject: [PATCH 4/9] LoongArch: Fix movgr2frh.w operand order Date: Sun, 6 Aug 2023 20:50:01 +0800 Message-ID: <20230806125010.283900-4-c@jia.je> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230806125010.283900-1-c@jia.je> References: <20230806125010.283900-1-c@jia.je> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,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 List-Id: The operand order of movgr2frh.w was wrong. The correct order should be `movgr2frh.w fd, rj`. gcc/ChangeLog: * config/loongarch/loongarch.md (movgr2frh): Correct movgr2frh.w operand order. --- gcc/config/loongarch/loongarch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/loongarch/loongarch.md b/gcc/config/loongarch/loongarch.md index 95c5b25d22a..93d8bf5bcca 100644 --- a/gcc/config/loongarch/loongarch.md +++ b/gcc/config/loongarch/loongarch.md @@ -2297,7 +2297,7 @@ (match_operand:SPLITF 2 "register_operand" "0")] UNSPEC_MOVGR2FRH))] "TARGET_DOUBLE_FLOAT" - "movgr2frh.w\t%z1,%0" + "movgr2frh.w\t%0,%z1" [(set_attr "move_type" "mgtf") (set_attr "mode" "")]) -- 2.41.0