From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CDD4A3858C35; Thu, 5 Oct 2023 20:33:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CDD4A3858C35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696538022; bh=VcivWWjd7CJMF+7K2IEg8WEJg1S7Fwa0bUop0qhh7Vg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hhToCcgY7fB7VefKuDJxT89vSV+gAg9Jf12fY5cO4Qy1i2cN2TBGxRKYQF68wlNU4 d2Yx4WTBrC8uyE8uyBuD3KYwhwJ6AQgqbXYt1cWxEogWaw494uBaHekZsMNfdXfrwV TcRJzuUqHFUPRgjlS6Dgbz+5HEz+0n04hkDIqWLI= From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug regression/111709] [13 Regression] Miscompilation of sysdeps/ieee754/dbl-64/s_fma.c Date: Thu, 05 Oct 2023 20:33:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: regression X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joseph at codesourcery dot com X-Bugzilla-Status: UNCONFIRMED 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=3D111709 --- Comment #8 from joseph at codesourcery dot com --- Typically these sorts of issues result from floating-point operations=20 being moved past environment manipulation (fesetround, feupdateenv,=20 feholdexcept, etc.) - in either direction. This might be a compiler=20 issue, or it might well be a bug in the glibc function implementation=20 (insufficient use of math_opt_barrier / math_force_eval to prevent such=20 movement). If the latter, make sure to fix it in all similar=20 implementations of fma functions, not just the dbl-64 one.=