From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 0FC3E3851A9B for ; Tue, 30 Aug 2022 22:33:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0FC3E3851A9B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.93,276,1654588800"; d="scan'208";a="84963988" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 30 Aug 2022 14:32:59 -0800 IronPort-SDR: Q+Y99m/BtdkOmslYxUSCW0zQbSrSE/iSoSOFBPoR5c6rU+XxIwkJkV1ou4zCqhRmHMIqTPUgx2 Gje7L7nYzVMcvikyuX74yK1yG6ERle3n/DllyDkf9fSsdhKUm41i5U7rrFAMagZiVOEQ9vzRP3 +PcQujst3JAYgRcc+PRpQtz2M4a+Ix+XP5Ct9SKd3ZpoLIKgtfznGYAd2XaBvuPX4F6FA4fAo9 3N53I78MKTy/IRVTEDSXzLtaL/BzUCl0mGfpESKuepmWA6Xf/c/GHulRRhy5u9d6b/SzshqENI 1Bg= Date: Tue, 30 Aug 2022 22:32:54 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Jakub Jelinek CC: Aldy Hernandez , GCC patches Subject: Re: [PATCH] Add support for floating point endpoints to frange. In-Reply-To: Message-ID: References: <20220823114224.904934-1-aldyh@redhat.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-15.mgc.mentorg.com (139.181.222.15) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3111.5 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, 29 Aug 2022, Jakub Jelinek via Gcc-patches wrote: > On Mon, Aug 29, 2022 at 03:45:33PM +0200, Aldy Hernandez wrote: > > For convenience, singleton_p() returns false for a NAN. IMO, it makes > > the implementation cleaner, but I'm not wed to the idea if someone > > objects. > > If singleton_p() is used to decide whether one can just replace a variable > with singleton range with a constant, then certainly. > If MODE_HAS_SIGNED_ZEROS, zero has 2 representations (-0.0 and 0.0) and Note also for decimal floating point that many real numbers - if they don't require the full precision of the type to represent the number - can be represented with different quantum exponents (so compare equal but can't be used to replace each other). -- Joseph S. Myers joseph@codesourcery.com