[Bug middle-end/47990] Missed promotion of double precision constants to single precision for -funsafe-math-optimizations

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47990 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug middle-end/47990] Missed promotion of double precision constants to single precision for -funsafe-math-optimizations

2011-08-01 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47990 --- Comment #2 from Richard Guenther 2011-08-01 13:07:00 UTC --- The intel compiler does not perform this optimization even at -fast. It does perform the demotion on float foo (float x, float y) { return (int)((float)(x/y + 0.5)) * y; } thou

[Bug middle-end/47990] Missed promotion of double precision constants to single precision for -funsafe-math-optimizations

2011-03-04 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47990 --- Comment #1 from joseph at codesourcery dot com 2011-03-04 15:42:39 UTC --- On Fri, 4 Mar 2011, rguenth at gcc dot gnu.org wrote: > In 482.sphinx3 we have code like > > float foo (float x, float y) > { > return ((int)(x/y + 0.5)) * y; > } >