From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 994873932AFE; Fri, 7 Jun 2024 15:20:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 994873932AFE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1717773657; bh=qUWL10PnEpqU8eYo96gJsCPW0HSdt0+sqftbAI93i3g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pdlVcvllAOMRMp9H4s01cRDlrCy4WtqOwgd7nOhntT6QnrvrVhRbntG0tBxAeg2Uj GA5CapWrceGNjl2oNX/9CsZsdW0cBdOgB4XtqfPP3j0pCF+MXN7S8KbkvAO/u18bw+ wX+lY/bT8efXJ5zo4oNNnQGm6AUXei+WK/JYeRxc= From: "k3x-devel at outlook dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/115374] fmod() in x86_64 -O3 not using return value from the glibc's implementation if x87 FPU fprem returns NaN Date: Fri, 07 Jun 2024 15:20:57 +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: 14.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: k3x-devel at outlook dot com X-Bugzilla-Status: WAITING 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=3D115374 --- Comment #10 from Mario Hros --- That _.265t.optimized posted matches my observation. So the call into glibc fmod() is made to set errno eventually, ok. But shouldn't the returned value from the glibc call be used instead of returning NaN? I am not the one to decide. If that works as expected, then it is not a bug and this issue can = be closed.=