From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A695B3858C2C; Fri, 14 Apr 2023 10:12:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A695B3858C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681467120; bh=P7ybLunXJ0Zi6DnTKRKvfU1kZYfPVe5n0XM1C/1doIU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PIwOOKDXQ/1brjY8vg0z1Ayz+7ELoloWx4u5CspoQaFaLjBdL+KOB6/oLVw+XiUBy S7CJBDBhrNwy4O6bHifcoo3qWKTBdY8Ijdgk4XbV5Qb/P/iGIVp+L1LwX3rBZS9MsN Z0U9VphWX6AfumHTrlU6H5tX5v0igwhEyuXw1ikE= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109359] [12/13 Regression] Compile-time rounding of double literal to float is incorrect with -frounding-math Date: Fri, 14 Apr 2023 10:12:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 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=3D109359 --- Comment #7 from Jakub Jelinek --- For the safety net I'd compare TYPE_MODE of the SCALAR_FLOAT_TYPE_Ps, that = is what matters for those whether it is a noop conversion or needs actually so= me runtime adjustment.=