This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][4.3][RFC] Combined patch providing SSE inline expansions for C99 rounding functions
- From: Richard Guenther <rguenther at suse dot de>
- To: Steven Bosscher <stevenb dot gcc at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 17 Sep 2006 22:54:44 +0200 (CEST)
- Subject: Re: [PATCH][4.3][RFC] Combined patch providing SSE inline expansions for C99 rounding functions
- References: <Pine.LNX.4.64.0608241431060.4573@nyjnma.fhfr.qr> <200609172143.55347.steven@gcc.gnu.org>
On Sun, 17 Sep 2006, Steven Bosscher wrote:
> On Thursday 24 August 2006 14:39, Richard Guenther wrote:
> > This is a combined quilt patch series that adds inline expansions for the
> > C99 rounding functions for -fno-trapping-math/-fno-math-errno (where
> > appropriate) for both x86_64 and i686 (where appropriate). It includes
> > expanders for floor, ceil, trunc, rint, round, lfloor, lceil,
> > lrint, and lround that have been benchmarked and tested out-of-line
> > against the libm implemenation. SPEC 2k shows around 10% improvement
> > for lucas on x86_64.
>
> Hi Richi,
>
> Very nice stuff!
>
> I wanted to try your patches on my favorite numerical codes and on
> the Polyhedron suite. So I unpacked your .tar.gz file in the toplevel
> directory and tried to apply the patches. But no luck:
>
> $ for f in `cat series | xargs`; do echo $f; cat $f | patch -s -p0 --dry-run; done
> lrint
> lround
> 1 out of 2 hunks FAILED -- saving rejects to file gcc/builtins.c.rej
> 1 out of 1 hunk FAILED -- saving rejects to file gcc/genopinit.c.rej
> 2 out of 2 hunks FAILED -- saving rejects to file gcc/optabs.c.rej
> 2 out of 2 hunks FAILED -- saving rejects to file gcc/optabs.h.rej
> lfloorceil
> 1 out of 1 hunk FAILED -- saving rejects to file gcc/config/i386/i386-protos.h.rej
> 1 out of 2 hunks FAILED -- saving rejects to file gcc/config/i386/i386.c.rej
> 2 out of 3 hunks FAILED -- saving rejects to file gcc/optabs.c.rej
> 2 out of 4 hunks FAILED -- saving rejects to file gcc/optabs.h.rej
> rint
> 1 out of 1 hunk FAILED -- saving rejects to file gcc/config/i386/i386-protos.h.rej
> 1 out of 2 hunks FAILED -- saving rejects to file gcc/config/i386/i386.c.rej
> floorceil
> 1 out of 1 hunk FAILED -- saving rejects to file gcc/config/i386/i386-protos.h.rej
> 4 out of 5 hunks FAILED -- saving rejects to file gcc/config/i386/i386.c.rej
> round
> 1 out of 1 hunk FAILED -- saving rejects to file gcc/config/i386/i386-protos.h.rej
> trunc
> 1 out of 1 hunk FAILED -- saving rejects to file gcc/config/i386/i386-protos.h.rej
> 1 out of 1 hunk FAILED -- saving rejects to file gcc/config/i386/i386.c.rej
> fix-mno-ieee
> $
>
> It seems GCC moves fast... ;-)
Eh. I put the last version I have at
http://www.suse.de/~rguenther/patches-0917.tar
(after making sure it applies - it may take some time until it hits
the website though).
Richard.
--
Richard Guenther <rguenther@suse.de>
Novell / SUSE Labs