[Bug other/100174] Binary floating-point conversion under source-gcc/gcc/real.[c\h] test on x86-64

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 21 07:43:12 GMT 2021


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-04-21
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>I don't know why gcc using clear_significand_below(real.c) function to clear remaining bits in sig[SIGSZ-1]
>Why not just only truncated it by it need.

I don't understand your question. Are you asking why not just record the
significand bits that are non-zero instead of doing a clear?  Because it is
faster to clear them and then just them normally instead of special casing
through all of the code of every access to the sig array.


More information about the Gcc-bugs mailing list