[patch RFC] Split builtin-math-7.c into two tests

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Mon Aug 24 05:44:00 GMT 2009


From: "Kaz Kojima" <kkojima@rr.iij4u.or.jp>

> Hi,
>
> A part of gcc.dg/torture/builtin-math-7.c uses Inf which
> isn't supported with the target like SPU and requires -mieee
> for alpha and sh.
> How about moving that part to a new test with guards for
> those targets?
> The patch below is regtested on i686-pc-linux-gnu with no
> new failures.

I'm not sure I see the point in splitting the file.  My understanding is 
that SPU is only missing Inf for the float format.  The test only looks at 
Inf for doubles.  Did you actually run the testcase on spu and see if it 
fails?

For the alpha/sh, is there some reason not to just add the -mieee flag to 
the existing test?

        --Kaveh



More information about the Gcc-patches mailing list