Message ID | 20230809115325.3716347-15-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 w14csp2746679vqr; Wed, 9 Aug 2023 05:01:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH49nFJoyAkAfUlNLIg5FKQEXjUsg0uLfs2FpGtmiK+9gjo92OZWSc5hoPM+DsvA+9lVMVx X-Received: by 2002:a05:6402:1e88:b0:51e:5bd5:fe7e with SMTP id f8-20020a0564021e8800b0051e5bd5fe7emr14693901edf.17.1691582511162; Wed, 09 Aug 2023 05:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691582511; cv=none; d=google.com; s=arc-20160816; b=XtbJHB+L6C2b5tnNKqAvdYN6G4IbOhFzvxD2kH7JBjnRV6jMDjM0LP1zyofTHzCd3v QqPcuztxVgJFDnSo9bTsix+t9R1iY1Rs40D9810l7UrqErU01RluDJZc5BbjhicYksaV iXPYv3V8TyUTh1CoWL3y7wvIBPAItI2D8beCLmwup12ecAGncFsqFLoGae+01q1O5rQE TKGSq+VKdfGhAAkSiT0eu21yoJa1NFYXfh92qL6BywysAbC0YI8s1qceRJqzHrp3bZbM TYiR6YgzOUDYkCRlOqdZDnHUcfUeyGqfMFPDkZg81RLFJEolCP6iFPS0GtIXjH7KndYJ p3bg== 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=NRcn0VPDnClzav3LJz/hObw0eMYOr/KppI6zA8b7aDs=; fh=nBdY3vW/mgwv3C0AxagIWVpWoiWSUh4TsWT+uiKUcFM=; b=IoWzRNKVdMFDhqPGfua8acR0peY8+MfG4TMo9Jf5Jqdpw3PpeH79Bi6UquBgQvPlXf JHsg81/fmLDcuJ+FonB2vCqeaP+bzzCuMBqvG6Db/gQFdorbOoNweXx/3NmldLybBbSU I5OCrI1I0puHXncYbwsqH6E/W2ZcLrsHf7+dcA3kq2qyA1qJsqepIoeqADkw60yYWNKS I8Vqtl2l8jDFQTRAh0uLv0RmWVFIJTm3711KcC3praNPApgDZPgUhOvoE0b5ud4IaOOL CHBUSztl5jx6dA5LMmE8z7LgW2CmDFjbvJzmKa2gYnacV5Co/j2ZXqUCGr7DlVeNLXsJ 5G3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=SO3u0Pii; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id q25-20020aa7cc19000000b00522aa0dd077si8194343edt.502.2023.08.09.05.01.50 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 05:01:51 -0700 (PDT) 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; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=SO3u0Pii; 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"; 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 82CBF3853547 for <ouuuleilei@gmail.com>; Wed, 9 Aug 2023 11:59:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 82CBF3853547 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691582367; bh=NRcn0VPDnClzav3LJz/hObw0eMYOr/KppI6zA8b7aDs=; 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=SO3u0Pii/X/DoRxpIbJGmio2ih65NgWL3Qeg7allLXRNkJy59pFZd1/oTDFgua6J8 PgcdzUgws7ZdzXL90kAsOoPiPDpAqwo+gGb0zAxMk/Ye/la0cs6S+9PE6zHCC6O6c7 JfcSCw5UPLn+RKMqzE7YxQJJcprFHRGPTgsesmXU= 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 9750B3856943 for <gcc-patches@gcc.gnu.org>; Wed, 9 Aug 2023 11:54:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9750B3856943 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 8314143FAD; Wed, 9 Aug 2023 11:54:13 +0000 (UTC) To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, xuchenghua@loongson.cn, Jiajie Chen <c@jia.je> Subject: [PATCH v2 14/14] LoongArch: Allow ftintrz for DF->DI in loongarch32 Date: Wed, 9 Aug 2023 19:46:21 +0800 Message-ID: <20230809115325.3716347-15-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.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, 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: 1773752823691892850 X-GMAIL-MSGID: 1773752823691892850 |
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
In LoongArch, signed DF->DI conversion can be done if -mfpu=64 and -march=loongarch32. gcc/ChangeLog: * config/loongarch/loongarch.md (fix_trunc*2): Use ANYFI instead of GPR because it depends on fpu width instead of target bits. --- gcc/config/loongarch/loongarch.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gcc/config/loongarch/loongarch.md b/gcc/config/loongarch/loongarch.md index 31bdf3388f6..f6042af25b7 100644 --- a/gcc/config/loongarch/loongarch.md +++ b/gcc/config/loongarch/loongarch.md @@ -1482,11 +1482,11 @@ ;; conversion of a floating-point value to a integer -(define_insn "fix_trunc<ANYF:mode><GPR:mode>2" - [(set (match_operand:GPR 0 "register_operand" "=f") - (fix:GPR (match_operand:ANYF 1 "register_operand" "f")))] +(define_insn "fix_trunc<ANYF:mode><ANYFI:mode>2" + [(set (match_operand:ANYFI 0 "register_operand" "=f") + (fix:ANYFI (match_operand:ANYF 1 "register_operand" "f")))] "" - "ftintrz.<GPR:ifmt>.<ANYF:fmt> %0,%1" + "ftintrz.<ANYFI:ifmt>.<ANYF:fmt> %0,%1" [(set_attr "type" "fcvt") (set_attr "mode" "<ANYF:MODE>")])