From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CDC4C3858281; Tue, 20 Dec 2022 14:55:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CDC4C3858281 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671548150; bh=COBCG5pvvk6mjcoxrTmfXBV1POtkY64X5pzBWBqngto=; h=From:To:Subject:Date:In-Reply-To:References:From; b=a9Cdn8z4b/N/YScq+2smpmWGbm4hVJh53T8ijnTS5TO34sFbAuDnYneMfZ626Arqg B7XSmG+mmzgw69t1SwzgasUji2pUvrrY1c2VdK/FF2TalkDf/3Evjl13O5sxmAidBV GMbJTUGB584PTz+gkk11LWIVxp2czZ+nVT5LCzWI= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/106805] [13 Regression] Undue optimisation of floating-point comparisons Date: Tue, 20 Dec 2022 14:55:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D106805 --- Comment #6 from Richard Biener --- Note phiopt turns some control-flow into straight-line code which is then a= lso susceptible to code motion across the foo() calls, even if that's not what currently happens. So even preserving those stmts will still have them un-ordered with respect to the inspection of the FP exception state, that is, -frounding-math is known to be buggy.=