From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CA3DE38582A3; Thu, 9 Feb 2023 16:31:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA3DE38582A3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675960312; bh=Vm8rZTtlhVBjpqyGX7PVI5JZm73S0fF+1jhIzM7u6eU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=t7veeWCkZS0Y3/KSBGU06xrpmi45QPuqZbJW9x2yqyf5celMhLgAbEkBuPqfHAw9J UgX1VSRfhpTkqv3BEl38D7wWq8gfLzev45jSQZMMHgVS4OBUhBoJSyYVk0ychWTV+I Q06PL5na6xA7rV8WXdG/3eN4d7kaPOy31Y4Skw/s= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108742] Incorrect constant folding with (or exposed by) -fexcess-precision=standard Date: Thu, 09 Feb 2023 16:31:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.2.1 X-Bugzilla-Keywords: 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: unassigned 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=3D108742 --- Comment #5 from Jakub Jelinek --- https://eel.is/c++draft/cfloat.syn points to the C standard for FLT_EVAL_ME= THOD (plus https://eel.is/c++draft/expr#pre-6 talks about excess precision too) = and e.g. C17 5.2.4.2.2/9): "2 evaluate all operations and constants to the range and precision of the = long double type." Note the " and constants" above.=