From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E5B9D385800F; Wed, 31 Aug 2022 12:41:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5B9D385800F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661949682; bh=sbOQm3T/OBCKLlQ+OQZhLz7uxaHmKYOBX5kDtN7mG30=; h=From:To:Subject:Date:In-Reply-To:References:From; b=H2c4ealMRWD/9iTu2IaMPQtr1S4p5c1ec9viBLASGTLN85V2Fd+dKz5Ff6eWo9TiK 64/d8uvV3A7PJBp3Mkz/WFNQPXG+po5NVB3sA+6CLsTBpogviWnKiArphvknkGg24k cvZSBRn3gHoXKsXULoVVxVBzLcT33xJsa8ip4ils= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/106785] ICE in fail, at selftest.cc:47 since r13-2266-g8bb1df032cc080 Date: Wed, 31 Aug 2022 12:41:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-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 #5 from Jakub Jelinek --- If !MODE_HAS_NANS, then NANs can't appear ever, that is the VAX case. Some floating point formats simply have no representation for those. If MODE_HAS_NANS && !HONOR_NANS, it is user promising NaNs won't appear but= the floating point format supports them. Code where NaN would appear is UB, we= can do anything we want, just shouldn't break code where the NaN wouldn't appea= r at runtime. Say if (cond) x =3D __builtin_nan (""); else x =3D 1.24; we can assume that x will never be NaN with -ffinite-math-only.=