RFC: powerpc: Incorrect results for pow when using FMA

Joseph Myers joseph@codesourcery.com
Mon Mar 9 22:50:00 GMT 2015


On Mon, 9 Mar 2015, Adhemerval Zanella wrote:

> Right, but I think for GLIBC this is not usual way.  I would suggest the 
> followin fix:
> 
> diff --git a/sysdeps/ieee754/dbl-64/Makefile b/sysdeps/ieee754/dbl-64/Makefile
> index 35f545f..5557c75 100644
> --- a/sysdeps/ieee754/dbl-64/Makefile
> +++ b/sysdeps/ieee754/dbl-64/Makefile
> @@ -2,4 +2,5 @@ ifeq ($(subdir),math)
>  # branred depends on precise IEEE double rounding
>  CFLAGS-branred.c = $(config-cflags-nofma)
>  CFLAGS-e_sqrt.c = $(config-cflags-nofma)
> +CFLAGS-e_pow.c = $(config-cflags-nofma)
>  endif

OK (with ChangeLog entry and bug filed in Bugzilla as usual).

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list