This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Rework powerpc reciprocal estimation instruction generation
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Michael Meissner <meissner at linux dot vnet dot ibm dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 2 Jun 2010 18:08:21 -0400
- Subject: Re: [PATCH] Rework powerpc reciprocal estimation instruction generation
- References: <20100601232158.GA3722@hungry-tiger.westford.ibm.com>
On Tue, Jun 1, 2010 at 7:21 PM, Michael Meissner
<meissner@linux.vnet.ibm.com> wrote:
> This patch improves the generation of reciprocal approximation instructions in
> the PowerPC. ?The following optimizations are done:
>
> ? ? ? ?float / float ? ? ? ? ? -> replace FDIVS with FRES + fixup
> ? ? ? ?1.0f / sqrtf(float) ? ? -> replace FSQRTS/FDIVS with FRSQRTES + fixup
> ? ? ? ?double / double ? ? ? ? -> replace FDIV with FRE + fixup
> ? ? ? ?1.0 / sqrt(double) ? ? ?-> replace FSQRT/FDIV with FRSQRTE + fixup
> Are these patches ok to install?
Okay.
Thanks, David