From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7CE0A3861800; Wed, 26 Aug 2020 09:21:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7CE0A3861800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598433676; bh=nIB/geqQHTZtRUi4boTYIbs/fYU9dCR4up9jFJ6w8co=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZK1DtqVDizo0vgM5t7WOPp+JvVPrv+VnDgQ90EV+PHRPK17Uuvzc2WkrFmpEWhsvZ r/ou9bz0zTydim00+q/m25/Way/np+VObCIcsfJcpE0LmE6U/5D9JEfKsBjIRmsSr7 2lPzZcDUgs4/F5F719F4T8UzEnkBCozxHiOHfHZM= From: "chfast at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/96793] __builtin_floor produces wrong result when rounding direction is FE_DOWNWARD Date: Wed, 26 Aug 2020 09:21:16 +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: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chfast at gmail 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2020 09:21:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96793 --- Comment #4 from Pawe=C5=82 Bylica --- I missed some information: This affects both double and float variants: __builtin_floor() and __builtin_floorf(). This affects also usage of floor() C standard library function as the funct= ion call usually replaced with __builtin_floor() in optimized builds. This affects also libstdc++ where std::floor() is implemented with __builtin_floor().=