From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CCDA03858D37; Wed, 28 Feb 2024 01:09:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CCDA03858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709082575; bh=I/J6HMzqD+g04Fl8Ekg4EQkbgsrW+ze3eZsbkAh6tvY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DnGVneO7t54qTEGqR06Z4izSJEYTGlqIryOpCjXFU1PzykbZWqaN5WKN2IWnk8/rA 7Ahe5pbDvEdaDYWYgEJzFiJGjFIucYJFwUHB8El0z/V2RsJeBuTlEL1B7EOlkFrYP2 XefmalDXM+YYrVkVaPoAMOUerEFy4IyOzoySlOvI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libquadmath/114140] different results for std::fmin/std::fmax and quadmath fminq/fmaxq if one argument=signaling_NaN Date: Wed, 28 Feb 2024 01:09:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libquadmath X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114140 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceware.org/bugz | |illa/show_bug.cgi?id=3D260= 45 --- Comment #12 from Andrew Pinski --- Specifically https://sourceware.org/bugzilla/show_bug.cgi?id=3D26045#c4 : (The ISO C convention that "NaN" means=20 "quiet NaN" by default may not be the most helpful to readers. We do=20 refer to the fmax handling of signaling NaNs in the documentation of=20 FE_SNANS_ALWAYS_SIGNAL. So basically libquadmath is correct for signaling NaNs and maybe the consta= nt folding of GCC is incorrect though I am not 100% sure if -fsignaling-nans should not make a difference or not.=