From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 3D7243858D28 for ; Thu, 23 Nov 2023 08:58:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3D7243858D28 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3D7243858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=89.208.246.23 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700729897; cv=none; b=dKS+ldUIIMn7St9Ava5u9Mo6aSkY5UaXLodNDQPMBqzvQdEFQJgrN3+43sZrx7Od7ZKOHYAPMZ9O0CxSASC1WcpdEQdVn4WA/P54XQ4AUvq78Cfp5qj24jhcKQBtZnb5tswIzdWeO7jnIhMxLrc9e0ScuhaANImbV4WxRbQDHdU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700729897; c=relaxed/simple; bh=sjqZQE9lkR9TmdrP/Mmo4wHVPfuS+6nxcCSxw4I3eRQ=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version; b=bzwcjGBVoCY/2Oz57naIeKVVr2jTxvXCWkM24tBEgYxVZ+pRzle9ZjeXxydYPlr9eJc/ljvrtl67yLTGpF6duLT+RtroCy9YiN1zVZ4SMPk437MC1HNiFxRHg5pKRuvCD0Uce9PezLqYhW4egTB9pYo8iLa/uFl4s5a+gx798os= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1700729895; bh=sjqZQE9lkR9TmdrP/Mmo4wHVPfuS+6nxcCSxw4I3eRQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=RhBTUhzglRwVrOiszi627Tg+BxSAzeJXMZcyJapw1KHz4a/UgjZTNqe5ZPAD3fXpg GIPGrTQmBt4xcnqvfVeRntSlIlH8HhQEIUZeEZX/ciyhhgV4fR6sciGP1J1x/aCzwD g8nQ5nOCkQfN/cEqqf+7E++WvpFCzAKd6I/GRwxs= Received: from [127.0.0.1] (unknown [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 7F30966B3A; Thu, 23 Nov 2023 03:58:14 -0500 (EST) Message-ID: Subject: Re: [PATCH v3 4/5] LoongArch: Remove lrint_allow_inexact From: Xi Ruoyao To: chenglulu , gcc-patches@gcc.gnu.org Cc: i@xen0n.name, xuchenghua@loongson.cn Date: Thu, 23 Nov 2023 16:58:12 +0800 In-Reply-To: <7a4ceec5-2545-f30a-af44-7f7767620b76@loongson.cn> References: <20231120004728.205167-1-xry111@xry111.site> <20231120004728.205167-5-xry111@xry111.site> <7a4ceec5-2545-f30a-af44-7f7767620b76@loongson.cn> Autocrypt: addr=xry111@xry111.site; prefer-encrypt=mutual; keydata=mDMEYnkdPhYJKwYBBAHaRw8BAQdAsY+HvJs3EVKpwIu2gN89cQT/pnrbQtlvd6Yfq7egugi0HlhpIFJ1b3lhbyA8eHJ5MTExQHhyeTExMS5zaXRlPoiTBBMWCgA7FiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQrKrSDhnnEOPHFgD8D9vUToTd1MF5bng9uPJq5y3DfpcxDp+LD3joA3U2TmwA/jZtN9xLH7CGDHeClKZK/ZYELotWfJsqRcthOIGjsdAPuDgEYnkdPhIKKwYBBAGXVQEFAQEHQG+HnNiPZseiBkzYBHwq/nN638o0NPwgYwH70wlKMZhRAwEIB4h4BBgWCgAgFiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwwACgkQrKrSDhnnEOPjXgD/euD64cxwqDIqckUaisT3VCst11RcnO5iRHm6meNIwj0BALLmWplyi7beKrOlqKfuZtCLbiAPywGfCNg8LOTt4iMD Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.1 MIME-Version: 1.0 X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,LIKELY_SPAM_FROM,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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: On Thu, 2023-11-23 at 16:23 +0800, chenglulu wrote: > I tested it and it was fine. I never knew this could be used like > this. I remember when I wrote r13-3920 I tried this but failed. Maybe something has been improved in machine description parser, or perhaps I just did some stupid thing that time... > Thank you! >=20 > =E5=9C=A8 2023/11/20 =E4=B8=8A=E5=8D=888:47, Xi Ruoyao =E5=86=99=E9=81=93= : > > No functional change, just a cleanup. > >=20 > > gcc/ChangeLog: > >=20 > > * config/loongarch/loongarch.md (lrint_allow_inexact): > > Remove. > > (2): Check if > > =3D=3D UNSPEC_FTINT instead of . > > --- > > =C2=A0 gcc/config/loongarch/loongarch.md | 5 +---- > > =C2=A0 1 file changed, 1 insertion(+), 4 deletions(-) > >=20 > > diff --git a/gcc/config/loongarch/loongarch.md > > b/gcc/config/loongarch/loongarch.md > > index 78ed63f2132..1e019815451 100644 > > --- a/gcc/config/loongarch/loongarch.md > > +++ b/gcc/config/loongarch/loongarch.md > > @@ -585,9 +585,6 @@ (define_int_attr lrint_pattern [(UNSPEC_FTINT > > "lrint") > > =C2=A0 (define_int_attr lrint_submenmonic [(UNSPEC_FTINT "") > > =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 (UNSPEC_FTINTRM "rm") > > =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 (UNSPEC_FTINTRP "rp")]) > > -(define_int_attr lrint_allow_inexact [(UNSPEC_FTINT "1") > > - =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (UNSPEC_FTINTRM "0") > > - =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (UNSPEC_FTINTRP "0")]) > > =C2=A0=20 > > =C2=A0 ;; Iterator and attributes for bytepick.d > > =C2=A0 (define_int_iterator bytepick_w_ashift_amount [8 16 24]) > > @@ -2384,7 +2381,7 @@ (define_insn > > "2" > > =C2=A0=C2=A0 (unspec:ANYFI [(match_operand:ANYF 1 "register_operand" > > "f")] > > =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 LRINT))] > > =C2=A0=C2=A0=C2=A0 "TARGET_HARD_FLOAT && > > -=C2=A0=C2=A0 ( > > +=C2=A0=C2=A0 ( =3D=3D UNSPEC_FTINT > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 || flag_fp_int_builtin_inexact > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 || !flag_trapping_math)" > > =C2=A0=C2=A0=C2=A0 "ftint.. %0= ,%1" >=20 --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University