From patchwork Tue Oct 21 14:19:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schmidt X-Patchwork-Id: 401530 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9929514007B for ; Wed, 22 Oct 2014 01:35:56 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type; q=dns; s=default; b=JfiR6rL8N1Qk+/bv1 m1xtitKXYALrj7TdaiCjA5NeLiv4JzAzPz+YKzW6rTg34Zgq38MGkIArqOXoYFd4 fjGRqPMKsI+7joZHa/qYm9Fa8VmEn+C/5jQ4wGDxy8BSnBbHuAkeQDBIgIEJOlcN L/pL5gwcse1dj2XG+p40+qow9M= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type; s=default; bh=8M+oK4NI8+0Z9W85eKDv+mU sxnk=; b=pYMU8WygBTkdWhuencr8LLNG9TwWODThs+pcv440JAxk1AEUBgWxwuw WYykJh93KPvEI03CYtbY5fqHWwhb1xBi/cyEkZViwbSdkdqAK4lhaPJ5BO+lWDaZ qA6/Lyyvkd7RcikPxYSkIZbUaGtLSp4NEQiHXX4g6pWLtiK2R4IA= Received: (qmail 24689 invoked by alias); 21 Oct 2014 14:21:15 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 24671 invoked by uid 89); 21 Oct 2014 14:21:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 21 Oct 2014 14:21:04 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1XgaJ2-0003O0-UH from Bernd_Schmidt@mentor.com for gcc-patches@gcc.gnu.org; Tue, 21 Oct 2014 07:21:01 -0700 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.3.181.6; Tue, 21 Oct 2014 15:20:59 +0100 Message-ID: <54466B82.2030709@codesourcery.com> Date: Tue, 21 Oct 2014 16:19:46 +0200 From: Bernd Schmidt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.0 MIME-Version: 1.0 To: GCC Patches Subject: [4/6] nvptx testsuite patches: xfails and skips References: <5446694A.1010705@codesourcery.com> In-Reply-To: <5446694A.1010705@codesourcery.com> Some things don't fit into nice categories that apply to a larger set of tests, or which are somewhat random like ptxas tool failures. For these I've added xfails and skips. Bernd gcc/testsuite/ * lib/target-supports.exp (check_effective_target_trampolines, check_profiling_available, check_effective_target_lto, check_effective_target_vect_natural): False for nvptx-*-*. * gcc.c-torture/compile/limits-fndefn.c: Skip for nvptx-*-*. * gcc.c-torture/compile/pr34334.c: Likewise. * gcc.c-torture/compile/pr37056.c: Likewise. * gcc.c-torture/compile/pr39423-1.c: Likewise. * gcc.c-torture/compile/pr46534.c: Likewise. * gcc.c-torture/compile/pr49049.c: Likewise. * gcc.c-torture/compile/pr59417.c: Likewise. * gcc.c-torture/compile/20080721-1.c: Likewise. * gcc.c-torture/compile/920501-4.c: Likewise. * gcc.c-torture/compile/921011-1.c: Likewise. * gcc.dg/20040813-1.c: Likewise. * gcc.dg/pr28755.c: Likewise. * gcc.dg/pr44194-1.c: Likewise. * gcc.c-torture/compile/pr42717.c: Xfail for nvptx-*-*. * gcc.c-torture/compile/pr61684.c: Likewise. * gcc.c-torture/compile/pr20601-1.c: Likewise. * gcc.c-torture/compile/pr59221.c: Likewise. * gcc.c-torture/compile/20060208-1.c: Likewise. * gcc.c-torture/execute/pr52129.c: Likewise. * gcc.c-torture/execute/20020310-1.c: Likewise. * gcc.c-torture/execute/20101011-1.c: Define DO_TEST to 0 for nvptx. * gcc.c-torture/execute20020312-2.c: Add case for for nvptx. * gcc.c-torture/compile/pr60655-1.c: Don't add -fdata-sections for nvptx-*-*. * gcc.dg/pr36400.c: Xfail scan-assembler test on nvptx-*-*. * gcc.dg/const-elim-2.c: Likewise. ------------------------------------------------------------------------ Index: gcc/testsuite/lib/target-supports.exp =================================================================== --- gcc/testsuite/lib/target-supports.exp.orig +++ gcc/testsuite/lib/target-supports.exp @@ -436,6 +436,7 @@ proc check_effective_target_trampolines } if { [istarget avr-*-*] || [istarget msp430-*-*] + || [istarget nvptx-*-*] || [istarget hppa2.0w-hp-hpux11.23] || [istarget hppa64-hp-hpux11.23] } { return 0; @@ -532,6 +533,7 @@ proc check_profiling_available { test_wh || [istarget msp430-*-*] || [istarget nds32*-*-elf] || [istarget nios2-*-elf] + || [istarget nvptx-*-*] || [istarget powerpc-*-eabi*] || [istarget powerpc-*-elf] || [istarget rx-*-*] @@ -4216,7 +4218,8 @@ proc check_effective_target_vect_natural verbose "check_effective_target_vect_natural_alignment: using cached result" 2 } else { set et_vect_natural_alignment_saved 1 - if { [check_effective_target_arm_eabi] } { + if { [check_effective_target_arm_eabi] + || [istarget nvptx-*-*] } { set et_vect_natural_alignment_saved 0 } } @@ -5691,6 +5694,9 @@ proc check_effective_target_gld { } { proc check_effective_target_lto { } { global ENABLE_LTO + if { [istarget nvptx-*-*] } { + return 0; + } return [info exists ENABLE_LTO] } Index: gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c =================================================================== --- gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c.orig +++ gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c @@ -1,4 +1,5 @@ /* { dg-skip-if "too complex for avr" { avr-*-* } { "*" } { "" } } */ +/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "*" } { "" } } */ /* { dg-timeout-factor 4.0 } */ #define LIM1(x) x##0, x##1, x##2, x##3, x##4, x##5, x##6, x##7, x##8, x##9, #define LIM2(x) LIM1(x##0) LIM1(x##1) LIM1(x##2) LIM1(x##3) LIM1(x##4) \ Index: gcc/testsuite/gcc.c-torture/compile/pr60655-1.c =================================================================== --- gcc/testsuite/gcc.c-torture/compile/pr60655-1.c.orig +++ gcc/testsuite/gcc.c-torture/compile/pr60655-1.c @@ -1,4 +1,4 @@ -/* { dg-options "-fdata-sections" { target { ! { { hppa*-*-hpux* } && { ! lp64 } } } } } */ +/* { dg-options "-fdata-sections" { target { { ! { { hppa*-*-hpux* } && { ! lp64 } } } && { ! nvptx-*-* } } } } */ typedef unsigned char unit; typedef unit *unitptr; Index: gcc/testsuite/gcc.c-torture/compile/pr34334.c =================================================================== --- gcc/testsuite/gcc.c-torture/compile/pr34334.c.orig +++ gcc/testsuite/gcc.c-torture/compile/pr34334.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "*" } { "-O0" } } */ __extension__ typedef __SIZE_TYPE__ size_t; __extension__ typedef long long int __quad_t; __extension__ typedef unsigned int __mode_t; Index: gcc/testsuite/gcc.c-torture/compile/pr37056.c =================================================================== --- gcc/testsuite/gcc.c-torture/compile/pr37056.c.orig +++ gcc/testsuite/gcc.c-torture/compile/pr37056.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O2" "-Os" } { "" } } */ extern void abort (void); static union { Index: gcc/testsuite/gcc.c-torture/compile/pr39423-1.c =================================================================== --- gcc/testsuite/gcc.c-torture/compile/pr39423-1.c.orig +++ gcc/testsuite/gcc.c-torture/compile/pr39423-1.c @@ -1,4 +1,5 @@ /* PR target/39423 */ +/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O2" } { "" } } */ int foo (const char *name, int nmlen, char *flags) Index: gcc/testsuite/gcc.c-torture/compile/pr42717.c =================================================================== --- gcc/testsuite/gcc.c-torture/compile/pr42717.c.orig +++ gcc/testsuite/gcc.c-torture/compile/pr42717.c @@ -1,3 +1,4 @@ +/* { dg-xfail-if "ptxas crashes" { nvptx-*-* } { "-O0" } { "" } } */ static signed char foo (signed char si1, unsigned char si2) { Index: gcc/testsuite/gcc.c-torture/compile/pr46534.c =================================================================== --- gcc/testsuite/gcc.c-torture/compile/pr46534.c.orig +++ gcc/testsuite/gcc.c-torture/compile/pr46534.c @@ -1,4 +1,4 @@ -/* { dg-skip-if "too big" { avr-*-* pdp11-*-* } { "*" } { "" } } */ +/* { dg-skip-if "too big" { avr-*-* nvptx-*-* pdp11-*-* } { "*" } { "" } } */ /* PR middle-end/46534 */ extern int printf (const char *, ...); Index: gcc/testsuite/gcc.c-torture/compile/pr49049.c =================================================================== --- gcc/testsuite/gcc.c-torture/compile/pr49049.c.orig +++ gcc/testsuite/gcc.c-torture/compile/pr49049.c @@ -1,3 +1,5 @@ +/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-Os" } { "" } } */ + __extension__ typedef unsigned long long int uint64_t; static int Index: gcc/testsuite/gcc.c-torture/compile/pr59417.c =================================================================== --- gcc/testsuite/gcc.c-torture/compile/pr59417.c.orig +++ gcc/testsuite/gcc.c-torture/compile/pr59417.c @@ -1,4 +1,5 @@ /* PR tree-optimization/59417 */ +/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" "-O2" "-Os" } { "" } } */ int a, b, d; short c; Index: gcc/testsuite/gcc.c-torture/compile/pr61684.c =================================================================== --- gcc/testsuite/gcc.c-torture/compile/pr61684.c.orig +++ gcc/testsuite/gcc.c-torture/compile/pr61684.c @@ -1,4 +1,5 @@ /* PR tree-optimization/61684 */ +/* { dg-xfail-if "ptxas crashes" { nvptx-*-* } { "*" } { "-O0" "-O1" "-Os" } } */ int a, c; static int *b = 0; Index: gcc/testsuite/gcc.c-torture/execute/pr20601-1.c =================================================================== --- gcc/testsuite/gcc.c-torture/execute/pr20601-1.c.orig +++ gcc/testsuite/gcc.c-torture/execute/pr20601-1.c @@ -1,4 +1,5 @@ /* PR tree-optimization/20601 */ +/* { dg-xfail-if "ptxas crashes" { nvptx-*-* } { "-O1" } { "" } } */ extern void abort (void); extern void exit (int); Index: gcc/testsuite/gcc.c-torture/execute/pr59221.c =================================================================== --- gcc/testsuite/gcc.c-torture/execute/pr59221.c.orig +++ gcc/testsuite/gcc.c-torture/execute/pr59221.c @@ -1,3 +1,4 @@ +/* { dg-xfail-if "ptxas crashes" { nvptx-*-* } { "*" } { "-O0" "-Os" } } */ int a = 1, b, d; Index: gcc/testsuite/gcc.c-torture/compile/20060208-1.c =================================================================== --- gcc/testsuite/gcc.c-torture/compile/20060208-1.c.orig +++ gcc/testsuite/gcc.c-torture/compile/20060208-1.c @@ -1,4 +1,5 @@ /* PR middle-end/26092 */ +/* { dg-skip-if "can't take address of malloc" { nvptx-*-* } { "*" } { "" } } */ typedef __SIZE_TYPE__ size_t; extern void *malloc (size_t); Index: gcc/testsuite/gcc.c-torture/compile/20080721-1.c =================================================================== --- gcc/testsuite/gcc.c-torture/compile/20080721-1.c.orig +++ gcc/testsuite/gcc.c-torture/compile/20080721-1.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "can't read function data" { nvptx-*-* } { "*" } { "" } } */ void foo(void); void bar(void); Index: gcc/testsuite/gcc.c-torture/compile/920501-4.c =================================================================== --- gcc/testsuite/gcc.c-torture/compile/920501-4.c.orig +++ gcc/testsuite/gcc.c-torture/compile/920501-4.c @@ -1,4 +1,5 @@ /* { dg-do assemble } */ +/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" } { "" } } */ foo () { Index: gcc/testsuite/gcc.c-torture/compile/921011-1.c =================================================================== --- gcc/testsuite/gcc.c-torture/compile/921011-1.c.orig +++ gcc/testsuite/gcc.c-torture/compile/921011-1.c @@ -1,3 +1,5 @@ +/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" } { "" } } */ + void fun (nb) int nb; Index: gcc/testsuite/gcc.c-torture/execute/20101011-1.c =================================================================== --- gcc/testsuite/gcc.c-torture/execute/20101011-1.c.orig +++ gcc/testsuite/gcc.c-torture/execute/20101011-1.c @@ -71,6 +71,9 @@ __aeabi_idiv0 (int return_value) /* Nios II requires both hardware support and user configuration to raise an exception on divide by zero. */ # define DO_TEST 0 +#elif defined (__nvptx__) +/* There isn't even a signal function. */ +# define DO_TEST 0 #else # define DO_TEST 1 #endif Index: gcc/testsuite/gcc.c-torture/execute/pr52129.c =================================================================== --- gcc/testsuite/gcc.c-torture/execute/pr52129.c.orig +++ gcc/testsuite/gcc.c-torture/execute/pr52129.c @@ -1,4 +1,5 @@ /* PR target/52129 */ +/* { dg-xfail-if "ptxas crashes" { nvptx-*-* } { "-O1" } { "" } } */ extern void abort (void); struct S { void *p; unsigned int q; }; Index: gcc/testsuite/gcc.dg/20020310-1.c =================================================================== --- gcc/testsuite/gcc.dg/20020310-1.c.orig +++ gcc/testsuite/gcc.dg/20020310-1.c @@ -3,6 +3,7 @@ /* { dg-do run } */ /* { dg-options "-O2" } */ /* { dg-options "-O2 -mtune=i586" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ +/* { dg-xfail-if "doesn't support self-referential initializers" { nvptx-*-* } } */ struct A { Index: gcc/testsuite/gcc.dg/20020312-2.c =================================================================== --- gcc/testsuite/gcc.dg/20020312-2.c.orig +++ gcc/testsuite/gcc.dg/20020312-2.c @@ -104,6 +104,8 @@ extern void abort (void); /* No pic register. */ #elif defined(__MSP430__) /* No pic register. */ +#elif defined (__nvptx__) +/* No pic register. */ #else # error "Modify the test for your target." #endif Index: gcc/testsuite/gcc.dg/20040813-1.c =================================================================== --- gcc/testsuite/gcc.dg/20040813-1.c.orig +++ gcc/testsuite/gcc.dg/20040813-1.c @@ -2,7 +2,7 @@ /* Contributed by Devang Patel */ /* { dg-do compile } */ -/* { dg-skip-if "No stabs" { aarch64*-*-* mmix-*-* *-*-aix* alpha*-*-* hppa*64*-*-* ia64-*-* tile*-*-* nios2-*-* *-*-vxworks* } { "*" } { "" } } */ +/* { dg-skip-if "No stabs" { aarch64*-*-* mmix-*-* *-*-aix* alpha*-*-* hppa*64*-*-* ia64-*-* tile*-*-* nios2-*-* *-*-vxworks* nvptx-*-* } { "*" } { "" } } */ /* { dg-options "-gstabs" } */ int Index: gcc/testsuite/gcc.dg/pr28755.c =================================================================== --- gcc/testsuite/gcc.dg/pr28755.c.orig +++ gcc/testsuite/gcc.dg/pr28755.c @@ -3,6 +3,7 @@ /* { dg-require-effective-target ptr32plus } */ /* { dg-options "-Os" } */ /* { dg-final { scan-assembler-times "2112543726\|7deadbee" 2 } } */ +/* { dg-skip-if "integer output is different here" { nvptx-*-* } } */ struct S { Index: gcc/testsuite/gcc.dg/pr44194-1.c =================================================================== --- gcc/testsuite/gcc.dg/pr44194-1.c.orig +++ gcc/testsuite/gcc.dg/pr44194-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { { { { { { { i?86-*-* x86_64-*-* } && x32 } || lp64 } && { ! s390*-*-* } } && { ! hppa*64*-*-* } } && { ! alpha*-*-* } } && { { ! powerpc*-*-linux* } || powerpc_elfv2 } } } } */ +/* { dg-do compile { target { { { { { { { i?86-*-* x86_64-*-* } && x32 } || lp64 } && { ! s390*-*-* } } && { ! hppa*64*-*-* } } && { ! alpha*-*-* } } && { { ! powerpc*-*-linux* } || powerpc_elfv2 } && { ! nvptx-*-* } } } } */ /* { dg-options "-O2 -fdump-rtl-dse1 -fdump-rtl-final" } */ /* Restrict to 64-bit targets since 32-bit targets usually return small Index: gcc/testsuite/gcc.dg/torture/pr36400.c =================================================================== --- gcc/testsuite/gcc.dg/torture/pr36400.c.orig +++ gcc/testsuite/gcc.dg/torture/pr36400.c @@ -14,4 +14,4 @@ void baz() barptr->some_string = "Everything OK"; } -/* { dg-final { scan-assembler "Everything OK" } } */ +/* { dg-final { scan-assembler "Everything OK" { xfail nvptx-*-* } } } */ Index: gcc/testsuite/gcc.dg/const-elim-2.c =================================================================== --- gcc/testsuite/gcc.dg/const-elim-2.c.orig +++ gcc/testsuite/gcc.dg/const-elim-2.c @@ -1,7 +1,7 @@ /* The string constant in this test case should be emitted exactly once. */ /* { dg-do compile } */ /* { dg-options "-O2" } */ -/* { dg-final { scan-assembler-times "hi there" 1 } } */ +/* { dg-final { scan-assembler-times "hi there" 1 { xfail nvptx-*-* } } } */ static inline int returns_23() { return 23; }