[Bug c/57080] Invalid optimization (-O2) when doing double -> int conversion (on big endian archs(?))
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 26 17:15:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57080
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-26 17:15:52 UTC ---
I'd say *y1 -= (int)(m * (*x1 - mindim)); isn't a workaround, but a reasonable
thing to do (and less expensive than converting *y1 from int to floating point,
doing subtraction in FPU and converting back.
More information about the Gcc-bugs
mailing list