[Bug target/96793] __builtin_floor produces wrong result when rounding direction is FE_DOWNWARD

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Dec 22 12:17:48 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96793

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |ubizjak at gmail dot com

--- Comment #18 from Uroš Bizjak <ubizjak at gmail dot com> ---
Created attachment 49833
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49833&action=edit
Proposed patch

Proposed patch that removes the sign from a temporary
with FE_DOWNWARD, where x - x = -0.0


More information about the Gcc-bugs mailing list