From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C4DEB3858C56; Wed, 31 Aug 2022 15:11:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C4DEB3858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661958714; bh=6qfKjKqzbJF61eSFhzDQW/c6+4UVotfkdfwry3VK2HA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tBqcV9/Jc46o4h9pP3tTo8ExOO9Y+niYTIL6CFSJJZNxVG6o5SObstB06wuhsRr+7 bx1qO0NrTvIqbW7U/iz5APVeM36uA/Z6oHAMDfQBebqWDnbw+LNp5WD2LvKx5vPmCX KVy3e+/r+EVmPIuxpZKHk38xKfrx0pStkYadJvpo= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106785] ICE in fail, at selftest.cc:47 since r13-2266-g8bb1df032cc080 Date: Wed, 31 Aug 2022 15:11:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D106785 --- Comment #8 from Jakub Jelinek --- Well, __builtin_nan ("") =3D=3D xxx is always false even with -fno-finite-math-only, including NaN =3D=3D NaN, that is how floating point equality comparisons a= re defined. But, e.g. with -ffinite-math-only, we fold __builtin_isinf (x) or __builtin_isnan (x) to 0 (maybe with the exception if you use __builtin_nan ("") as its operand?; but that just shows that it is UB if NaNs or Infs can appear at runtime).=