This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch RFA] [4.3/4.4] Add gcc.c-torture/execute/pr39288.x


On Fri, Feb 20, 2009 at 11:17 PM, Kaz Kojima <kkojima@rr.iij4u.or.jp> wrote:
> Hi,
>
> Newly added gcc.c-torture/execute/pr39228.c fails on SH
> which requires -mieee option for the test using inf/nan.
> I guess that alpha is on the same boat and the targets
> like SPU have no inf/nan supports.  The attached patch
> has worked for SH, though I'm not sure if this is right
> for alpha and SPU.  It's tested on i686-pc-linux-gnu too.

Ok.

Thanks,
Richard.

> Regards,
>        kaz
> --
> 2009-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
>
>        * gcc.c-torture/execute/pr39228.x: New.
>
> diff -upN ORIG/trunk/gcc/testsuite/gcc.c-torture/execute/pr39228.x LOCAL/trunk/gcc/testsuite/gcc.c-torture/execute/pr39228.x
> --- ORIG/trunk/gcc/testsuite/gcc.c-torture/execute/pr39228.x    1970-01-01 09:00:00.000000000 +0900
> +++ LOCAL/trunk/gcc/testsuite/gcc.c-torture/execute/pr39228.x   2009-02-20 13:28:20.000000000 +0900
> @@ -0,0 +1,10 @@
> +if { [istarget "alpha*-*-*"] || [istarget "sh*-*-*"] } {
> +       # alpha and SH require -mieee for this test.
> +       set additional_flags "-mieee"
> +}
> +if [istarget "spu-*-*"] {
> +       # No Inf/NaN support on SPU.
> +       return 1
> +}
> +
> +return 0
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]