From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C9D503870895; Fri, 28 Aug 2020 09:54:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C9D503870895 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598608485; bh=9Hoy4wHWze1Tdxg8ZcRlYvvOZtzGOCNXacLCGSRrm+g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CGuvnthSA2a3fZGj088XoQlVtxxCvoy8hx1dr+42e1LJs2GrIZv2NMw75oxB0ZAyf u3BkVFsbtTLzxuQmC9zLlNECMKG5LVovm1qUU7Y1d6zU78VS0MKRxshGDuv8XSzIyQ 2wxP2ZkTrmxy4J4ijjPYqkU23RaTbprxNelRkJCQ= From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/96793] __builtin_floor produces wrong result when rounding direction is FE_DOWNWARD Date: Fri, 28 Aug 2020 09:54:45 +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: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ubizjak at gmail dot com X-Bugzilla-Target-Milestone: 8.5 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: Fri, 28 Aug 2020 09:54:45 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96793 --- Comment #12 from Uro=C5=A1 Bizjak --- (In reply to Richard Biener from comment #10) > (In reply to Uro=C5=A1 Bizjak from comment #7) > > Created attachment 49144 [details] > > Proposed patch > >=20 > > Patch in testing. >=20 > OTOH we _do_ try to compensate for HONOR_SIGNED_ZEROS so I wonder whether > we really need to punt for -frounding-math? I also doubt glibc gets it > correct, does it? The testcase from Comment #11 works OK when it calls floorf from glibc-2.31, but it was ran on SSE4.1 capable target, so roundss was used.=