[Bug middle-end/60540] Don't convert int to float when comparing int with float (double) constant

2014-03-17 Thread joseph at codesourcery dot com
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

[Bug middle-end/60540] Don't convert int to float when comparing int with float (double) constant

2014-03-15 Thread harald at gigawatt dot nl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60540 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment #

[Bug middle-end/60540] Don't convert int to float when comparing int with float (double) constant

2014-03-15 Thread olegendo at gcc dot gnu.org
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

[Bug middle-end/60540] Don't convert int to float when comparing int with float (double) constant

2014-03-15 Thread pinskia at gcc dot gnu.org
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