From patchwork Wed Aug 9 11:46:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiajie Chen X-Patchwork-Id: 133172 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2744098vqr; Wed, 9 Aug 2023 04:57:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDaMmHSUj5WQaYuF3EXrlcyJK//5W3axl1haTaw8OSxChz9hJIDDj4hmsg6/HqQXmF1cl8 X-Received: by 2002:a17:906:5a71:b0:99c:55c0:acfd with SMTP id my49-20020a1709065a7100b0099c55c0acfdmr1746809ejc.62.1691582248611; Wed, 09 Aug 2023 04:57:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691582248; cv=none; d=google.com; s=arc-20160816; b=tOgS/CS1DJzbpNDk/4AcHSQsSMxDgN4LnMeNa+exCfwPNWN8jNX2gcX08yWqxOZbLr HxrpmC1Lf+KfiTRm+4fT4ojjH1Hk4zg1p5nmWiQx9dlP3vAVQ5+n+O11/coSic+zbUmn MlQsccHnXGHFv0Par698He4yd1gqha3Eck8pdgmC7GBlnLYB7/E2tKUqOPZzhMig65Hj +Og4JigjpVG5iUG0+F88AYfrAT3LUwWeQC8p0lC/VTIyVF4GQ6/MU1oMyeuuBBczGjHB /LyECygGwFrjTk7yWIuReWngE6uWB6bmrJZwmlliBfvnmBZDfzpiDKXJfHJewRNDVGZ7 xqRQ== 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=ffUlg7kBtdWhRVpAByeQ/m5U+EN0PQhpc+kDIHCgHnY=; fh=nBdY3vW/mgwv3C0AxagIWVpWoiWSUh4TsWT+uiKUcFM=; b=pI+J+Z9C5voZ4DTvkByoLWi1/+0QSMLpMIlexvpEngL4SwBBXGAjkuvn+rrA3S31Lv 1tahf0WxKrJNiDQFG7geFAjS7MJ6MgyBddB4Q3AH7IGUW6/Sdl1jvOwCRcIDKlaOoP/S 0DhYN6X6AcsMNHv//yHE9gR4a/Uz4FLvcfIkCOvISxN2Fz4buD4Z0FdPBvMngYulToDq JTadEcXya74tk3VFweaBaweSjv0jISnj46dfED8X87kms0vHUF3MFDz+rkLiOZXSV7Do OY5hfgOolq25iI7bm9sI5QrS4iiHWTekG7IfdYPEQ5ptPsMh44k/PfP9SeIOUd3Q6Qw9 kz+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=qteCH4c5; 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 i18-20020a170906265200b0098897c46e08si6604097ejc.987.2023.08.09.04.57.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 04:57:28 -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=qteCH4c5; 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 7804E38515CC for ; Wed, 9 Aug 2023 11:55:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7804E38515CC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691582158; bh=ffUlg7kBtdWhRVpAByeQ/m5U+EN0PQhpc+kDIHCgHnY=; 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=qteCH4c5FMwyELr/6wA14A1gOJRtjD3U7mG+VHrwvNFETqF2LMkoiRAkRvk6gQMFR zBdaVdx3Bjb+0D8dZa6u6QaTSq2zEpxeWdXJgvZS3TQLyX5bBJ66T9VV8khylNLUcT x6MCMdOk14BZPujt6VovkIjffrt5pT2K5eWYEZ4c= 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 C88783858291 for ; Wed, 9 Aug 2023 11:54:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C88783858291 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 B255444098; Wed, 9 Aug 2023 11:54:09 +0000 (UTC) To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, xuchenghua@loongson.cn, Jiajie Chen Subject: [PATCH v2 12/14] LoongArch: Set long double width to 128 in la32 Date: Wed, 9 Aug 2023 19:46:19 +0800 Message-ID: <20230809115325.3716347-13-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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jiajie Chen via Gcc-patches From: Jiajie Chen Reply-To: Jiajie Chen Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773752547864854795 X-GMAIL-MSGID: 1773752547864854795 According to latest loongarch procedure call standard, sizeof(long double) == 128 in ilp32 data model regardless of target bitness. gcc/ChangeLog: * config/loongarch/loongarch.h: Set LONG_DOUBLE_TYPE_SIZE to 128 regardless of target bitness. --- gcc/config/loongarch/loongarch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/loongarch/loongarch.h b/gcc/config/loongarch/loongarch.h index eca723293a1..ab0c80c69c1 100644 --- a/gcc/config/loongarch/loongarch.h +++ b/gcc/config/loongarch/loongarch.h @@ -205,7 +205,7 @@ along with GCC; see the file COPYING3. If not see #define FLOAT_TYPE_SIZE 32 #define DOUBLE_TYPE_SIZE 64 -#define LONG_DOUBLE_TYPE_SIZE (TARGET_64BIT ? 128 : 64) +#define LONG_DOUBLE_TYPE_SIZE 128 /* Define the sizes of fixed-point types. */ #define SHORT_FRACT_TYPE_SIZE 8