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 BAF153857B98 for ; Wed, 9 Aug 2023 11:53:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BAF153857B98 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-raptor.. (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 B01EF4405F; Wed, 9 Aug 2023 11:53:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jia.je; s=default; t=1691582034; bh=hz9fQAMg3hlLjrkMm34K1SHrVQI5firXrWLUjigQLRs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Edwtk6dKjS99ZqyE43S/18PgnKM/aq7x8vAYSa7SkAA0YnQDHbD8uLl+Hus/qUtw6 8AnXtSS54uqVE/qFzEPtMFXqlI9tLEQFejxc0OGQneA3gcn1s1w+D7RE2ajqt5tFMm tAs1CNFpJOHKOMXGmhtYdvsky2j9b7qz5TsyKGWw= From: Jiajie Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, xuchenghua@loongson.cn, Jiajie Chen Subject: [PATCH v2 03/14] LoongArch: Fix SI division for loongarch32 target Date: Wed, 9 Aug 2023 19:46:10 +0800 Message-ID: <20230809115325.3716347-4-c@jia.je> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230809115325.3716347-1-c@jia.je> References: <20230809115325.3716347-1-c@jia.je> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.6 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: Add TARGET_64BIT check for loongarch64-only handling of SI division. It shall not promote SI to DI before division in loongarch32 target. gcc/ChangeLog: * config/loongarch/loongarch.md: Add TARGET_64BIT check for loongarch64-only handling of SI division. --- 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 b37e070660f..95c5b25d22a 100644 --- a/gcc/config/loongarch/loongarch.md +++ b/gcc/config/loongarch/loongarch.md @@ -851,7 +851,7 @@ (match_operand:GPR 2 "register_operand")))] "" { - if (GET_MODE (operands[0]) == SImode) + if (GET_MODE (operands[0]) == SImode && TARGET_64BIT) { rtx reg1 = gen_reg_rtx (DImode); rtx reg2 = gen_reg_rtx (DImode); -- 2.41.0