[Bug c/70523] Inconsistent casting of floats to unsigned short
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 4 08:17:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70523
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That is the effect of excess precision on i387, see PR333.
You can either use -msse2 -mfpmath=sse if your CPU is capable of SSE2,
or -fexcess-precision=standard for slower, but guaranteed excess precision
according to target macros, or -ffloat-store for even slower behavior.
More information about the Gcc-bugs
mailing list