This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC PATCH] implement fma() as builtin x87 or SSE intrinsic


Call to __builtin_fma() should be handled as BUILT_IN_FMA{,F,L} optimization in builtins.c, if flag_unsafe_math_optimizations flag is set. This way, call to fma() would be transformed to multiply and add for all architectures.

BTW: BUILT_IN_HYPOT{,F,L} could also be handled this way.

I'm not sure about which precision is requested for fma and hypot?


Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]