[PATCH]: PR29335 use MPFR for builtins fma, fmin and fmax
Andrew Pinski
pinskia@gmail.com
Wed Nov 8 03:47:00 GMT 2006
On Tue, 2006-11-07 at 21:57 -0500, Kaveh R. GHAZI wrote:
> This patch uses MPFR for builtins fma, fmin and fmax.
>
> In addition, I updated the test macros to look at the sign of the results
> to distinguish 0.0 vs -0.0. There were lots of pre-existing tests
> expecting 0.0 or -0.0 results, but since 0.0 == -0.0 it wasn't actually
> testing that the correct sign of zero was returned AFAICT. Thankfully
> after adding the check, everything still works. :-)
>
> Bootstrapped on sparc-sun-solaris2.10, no regressions and the new tests
> all pass.
Do you know how much precision fma gets for mpfr? The main question I
am asking is that fma on say powerpc is most likely implemented using
the fused multiple and add instruction which is better than doing a
multiple and then doing an add which is allowed by the C standard IIRC.
Thanks,
Andrew Pinski
More information about the Gcc-patches
mailing list