[PATCH]: add folding of builtin modf

Kaveh R. GHAZI ghazi@caip.rutgers.edu
Tue Feb 27 02:45:00 GMT 2007

On Mon, 26 Feb 2007, Andrew Pinski wrote:

> On 2/26/07, Kaveh R. GHAZI <ghazi@caip.rutgers.edu> wrote:
> >
> > Oops sorry, got it:
> Plus this testcase also fails under powerpc-linux-gnu and powerpc64-linux-gnu.

Yes I saw your previous message, that problem clearly is something
different.  I've been unsuccessful thus far reproducing it with a
powerpc-linux-gnu cross-compiler.  This is strange, I see e.g.
powerpc-darwin fails the modf test plus logb and frexp, but not the ldexp
test here:

But on the same day, powerpc-aix passes them all:

Does your box only fail modf, or any of the others?

> Do we test long double here also?

Yes, the testcase attempts to test all three fp types. I was able to
reproduce the darwin failures using a cross.  It see it only fails on the
long double cases with a div that creates a value with lots of digits of
precision.  Do you have a guess as to what's going on here and why the
failure is specific to just some of the powerpc systems?

Kaveh R. Ghazi			ghazi@caip.rutgers.edu

More information about the Gcc-patches mailing list