http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60540
--- Comment #4 from joseph at codesourcery dot com ---
On Sat, 15 Mar 2014, harald at gigawatt dot nl wrote:
> Only if the int is out of float's range. If the int is in float's range, but
> merely cannot be represented exactly, the value is round
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60540
Harald van Dijk changed:
What|Removed |Added
CC||harald at gigawatt dot nl
--- Comment #
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60540
--- Comment #2 from Oleg Endo ---
(In reply to Andrew Pinski from comment #1)
> Well the C standard requires it, though we could optimize it away since
> 32bit integers can be exactly represented in a 64bit IEEE double.
Yes, for doubles, absolut
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60540
Andrew Pinski changed:
What|Removed |Added
Summary|Don't convert int to float |Don't convert int to float