Message ID | 20230809115325.3716347-4-c@jia.je |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2744463vqr; Wed, 9 Aug 2023 04:58:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHxfTSuBfplkZqMySRXRMARDsrAVoJyUEdi4lHyUcyzjUMbGvw0QK7hTjs7F2dVc9QxFRNo X-Received: by 2002:a17:906:ef8f:b0:993:f349:c98c with SMTP id ze15-20020a170906ef8f00b00993f349c98cmr1720506ejb.4.1691582302516; Wed, 09 Aug 2023 04:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691582302; cv=none; d=google.com; s=arc-20160816; b=QLuUQhK/l8Fhu/50JzrcHUDxPIR2bWFIkuw9jexBFqfPnV7yEdmi2kJWq6NZtZ9C67 XYSr5vECSQxBMhECVivivZX0cjh0lON3+UnNSELHOkDJHBqlHptXRaVeYS5MXi3p0TJp gFHV24/V4Gd6SgUpT48ENDnjZmibjqU4sekuNI1+lVL9wUh+Ek0V+qVLJ9y10o0NR9Sp Ojx1jMFHZiMh7+bgvGCzhi7LlC+CGKQ61+9cl+AvyrWTkkvNCzhS4RQzpN68vQJJozr5 w4EV8eDjcOkPvfxddPVFymps7kSUgVbBCaz/LqA/JmlMRqcLDZCx4rWyr7+kK82+frYl hM6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=hz9fQAMg3hlLjrkMm34K1SHrVQI5firXrWLUjigQLRs=; fh=nBdY3vW/mgwv3C0AxagIWVpWoiWSUh4TsWT+uiKUcFM=; b=wRKGvlwGfBBWmtT0Elj7RAlakeeEBvCCbBSG1vxQQD3FpQPVlkn8tepZhPaQXL3n5i iWMd3X8jd6Ynw+HqnbObvyyEtTA9dbIBk11LDyf+DDf4WJs3KbB9onVywCMVsSa13g5B 5lIWMdiuwFrlI4lp0HnI9+JN3j56VSLl7akW3kmcMmb9XmHb4aFKGppl9qWOxCzcdVlL Uk7dHnh/Xv70Wvb35N1AoKt9PC3fcQZi6lTXASToS5m/A40Hw35uRQuuWOY9KJRmLo7k rM/2aFq1UD+59jR3RAKVUOyrDjyo/pc0VMaimqPQqwnotoxvhOV/2cP6V4y6fi9M14Yy eMrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=R5m01Wey; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id j14-20020a170906830e00b0099bbf89772bsi6852216ejx.757.2023.08.09.04.58.22 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 04:58:22 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=R5m01Wey; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 94E713853D27 for <ouuuleilei@gmail.com>; Wed, 9 Aug 2023 11:56:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 94E713853D27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691582194; bh=hz9fQAMg3hlLjrkMm34K1SHrVQI5firXrWLUjigQLRs=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=R5m01WeyPkjBD96xwlLP2amYQFQxe6JZxZZ3FY4JazVVnlM+rCGa11q+SEWdi//xZ ONG0m6wbqYk0/cNVHZBqHU1kys3F0hAfUNLvobF/j56NtautaKa/pKPeNxiK8Km3j7 bFhHEf7ltuTHsbe3r4BBj0ZRCd8/s/4Yykfz0JcA= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from hognose1.porkbun.com (hognose1.porkbun.com [35.82.102.206]) by sourceware.org (Postfix) with ESMTPS id BAF153857B98 for <gcc-patches@gcc.gnu.org>; Wed, 9 Aug 2023 11:53:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BAF153857B98 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) To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, xuchenghua@loongson.cn, Jiajie Chen <c@jia.je> 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Jiajie Chen via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Jiajie Chen <c@jia.je> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773752604400597584 X-GMAIL-MSGID: 1773752604400597584 |
Series |
LoongArch: Add loongarch32 and ilp32 abi
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Jiajie Chen
Aug. 9, 2023, 11:46 a.m. UTC
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);