[PATCH]: PR29335 use MPFR for builtin sincos

Andrew Pinski pinskia@physics.uc.edu
Thu Nov 2 02:06:00 GMT 2006


> 
> 
> On Wed, 1 Nov 2006, Kaveh R. GHAZI wrote:
> > Is there any other testcase you would like me to try or can I install
> > the patch?
> 
> The patch is OK for mainline.  It would also be nice if you could
> turn the sincos(zero,&s,&c) test case into something suitable for
> GCC's dejagnu testsuite and check that in.  And just for good luck
> perhaps something like:
> 
> void foo(double x)
> {
>   double s, c;
> 
>   if (x == 0.0)
>   {
>     sincos(x,&s,&c);
>     /* Check s and c.  */
>   }
> }
> 
> However these new test cases can be committed as a follow-up patch.
> We've no reason to believe the tree-ssa passes can't handle the new
> non-gimple (*sp=X, *cp=Y) idiom that sincos folding can now produce,
> but it does no harm as to make sure things don't break in future.

The "fold all builtins" should be able to do the correct thing in that it
regimplifies all non gimple expressions that fold returns.

Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list