https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47990
Andrew Pinski changed:
What|Removed |Added
Severity|normal |enhancement
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
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;
> }
>