This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch RFA] [4.3/4.4] Add gcc.c-torture/execute/pr39288.x
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 21 Feb 2009 11:28:33 +0100
- Subject: Re: [patch RFA] [4.3/4.4] Add gcc.c-torture/execute/pr39288.x
- References: <20090221.071709.158124946.kkojima@rr.iij4u.or.jp>
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
>