[PATCH] Support Cell SPU floating point

Mark Mitchell mark@codesourcery.com
Wed Sep 5 17:48:00 GMT 2007


Ian Lance Taylor wrote:

> If we do change this it's going to change for everybody, which would
> seem to be an unexpected silent change.  Are we confident that it is
> the right choice?  For people writing casual floating point code, it
> seems to me that it will be the wrong choice, just as most people
> prefer the compiler to generate fused multiply-add instructions.

Why will it be the wrong choice?  I'd expect that what most people want
from the compiler is to fold floating-point constants exactly as the
hardware would.  (In some cases, that might even mean having options to
say things like what rounding mode you want at compile-time, just as can
at run-time.)  Who would be upset for the compiler to behave that way?

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list