This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: RFC: powerpc: Incorrect results for pow when using FMA
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>
- Cc: Szabolcs Nagy <szabolcs dot nagy at arm dot com>, "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Mon, 9 Mar 2015 22:50:14 +0000
- Subject: Re: RFC: powerpc: Incorrect results for pow when using FMA
- Authentication-results: sourceware.org; auth=none
- References: <54FDF0E1 dot 5090900 at linux dot vnet dot ibm dot com> <54FDF6AB dot 6030705 at arm dot com> <54FDF8A4 dot 5060100 at linux dot vnet dot ibm dot com>
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