]> gcc.gnu.org Git - gcc.git/commitdiff
XFAILs and such for ptx.
authorBernd Schmidt <bernds@codesourcery.com>
Mon, 10 Nov 2014 16:30:33 +0000 (16:30 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Mon, 10 Nov 2014 16:30:33 +0000 (16:30 +0000)
* 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.

From-SVN: r217298

27 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20060208-1.c
gcc/testsuite/gcc.c-torture/compile/20080721-1.c
gcc/testsuite/gcc.c-torture/compile/920501-4.c
gcc/testsuite/gcc.c-torture/compile/921011-1.c
gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c
gcc/testsuite/gcc.c-torture/compile/pr34334.c
gcc/testsuite/gcc.c-torture/compile/pr37056.c
gcc/testsuite/gcc.c-torture/compile/pr39423-1.c
gcc/testsuite/gcc.c-torture/compile/pr42717.c
gcc/testsuite/gcc.c-torture/compile/pr46534.c
gcc/testsuite/gcc.c-torture/compile/pr49049.c
gcc/testsuite/gcc.c-torture/compile/pr59417.c
gcc/testsuite/gcc.c-torture/compile/pr60655-1.c
gcc/testsuite/gcc.c-torture/compile/pr61684.c
gcc/testsuite/gcc.c-torture/execute/20101011-1.c
gcc/testsuite/gcc.c-torture/execute/pr20601-1.c
gcc/testsuite/gcc.c-torture/execute/pr52129.c
gcc/testsuite/gcc.c-torture/execute/pr59221.c
gcc/testsuite/gcc.dg/20020310-1.c
gcc/testsuite/gcc.dg/20020312-2.c
gcc/testsuite/gcc.dg/20040813-1.c
gcc/testsuite/gcc.dg/const-elim-2.c
gcc/testsuite/gcc.dg/pr28755.c
gcc/testsuite/gcc.dg/pr44194-1.c
gcc/testsuite/gcc.dg/torture/pr36400.c
gcc/testsuite/lib/target-supports.exp

index 8038759604b8dca4daa0c1d41d48864cad3e9ee0..ef35dbfdd16aaaa50cac9988261b58b6995a4106 100644 (file)
@@ -1,5 +1,35 @@
 2014-11-10  Bernd Schmidt  <bernds@codesourcery.com>
 
+       * 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.
+
        * lib/target-supports.exp
        (check_effective_target_untyped_assembly): New function.
        * gcc.c-torture/compile/20091215-1.c: Require untyped_assembly.
index 01e471a7b0ca7a93bdc20563b87a5276b2f87e52..18724fb3ebef785106476ed50eb072d26d06fbb6 100644 (file)
@@ -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 35ef352bc6dac8ace3840f907c678aeeadf94e6b..6ee9ed95b93e11eba2c2498b63166157d3d72366 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-skip-if "can't read function data" { nvptx-*-* } { "*" } { "" } } */
 void foo(void);
 void bar(void);
 
index 48314cc78987980af2ea79b322530124dba9f6ca..362f2b764d88be7029ef6bbec5a8d96fac8c3057 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do assemble } */
+/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" } { "" } } */
 
 foo ()
 {
index 6cc707dc74c6dded681e3713f8b41f696675e42c..5955b4c527dc0ccca1a901705fbc56ac792b38cb 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" } { "" } } */
+
 void
 fun (nb)
      int nb;
index 0b6e6c7756775a8ef2f57f87fa893c55514597e3..228c5d9ef292653619d73be891de4704b146d8fe 100644 (file)
@@ -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 30bb782626f8e652a77ae98f47fa20595cebfa10..5fa60a35604984e393b365600931ac0502b5d079 100644 (file)
@@ -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 f9285e2c78438809d9b131a220e65f9d8185920e..e709fdc1ffb24c9ba15e8420c69ea5e22c432dc4 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O2" "-Os" } { "" } } */
 extern void abort (void);
 
 static union {
index 34ebb66381a158e6b754ae4da4efa932fb853831..c604738b9cb63ea6230a4ceca619ad9e8f924b34 100644 (file)
@@ -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 4fe6f93e79770195b2a4d88be1e4366a1c971138..7f6fb9db5cf82c14ca45b6546eb25502c95294d4 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-xfail-if "ptxas crashes" { nvptx-*-* } { "-O0" } { "" } } */
 static signed char
 foo (signed char si1, unsigned char si2)
 {
index 67c8ad21ebfdf58f0d40996bb22f968103235873..8300ca7f2cfa94c990aba236835d12cd91f6bce2 100644 (file)
@@ -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 a24b2a41c752d1f42741514bcb6f1b1795c41fb4..f396e056fb308bad1936532d6caf59ff98090f79 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-Os" } { "" } } */
+
 __extension__ typedef unsigned long long int uint64_t;
 
 static int
index 227c5d8410597981a187fa3d23f52c0ad365e7dd..891ba66718a42282951f6bf355629ea706ad14be 100644 (file)
@@ -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 1e1e460739ac81e8d9a02e10a2128bcd509472ce..31efb4ba8221db316940b6d852cd5a6c39d1f887 100644 (file)
@@ -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 f5b53b73a0d347cb6c3f2b1fd33ce1b9d268dd7c..9a7b52feb9ea4f47700f8ef9a4f48e931455d92c 100644 (file)
@@ -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 85b910df31c8c7f79113038c4e8f360920b9d114..34d03137e26e62b62810978adb5416cc7b454f4a 100644 (file)
@@ -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 7c13c9138193fbd3ac8170fc347ecc0773d8cb90..6eab1ef1ea76d580b98e89a3e462a062e61adbf3 100644 (file)
@@ -1,4 +1,5 @@
 /* PR tree-optimization/20601 */
+/* { dg-xfail-if "ptxas crashes" { nvptx-*-* } { "-O1" } { "" } } */
 extern void abort (void);
 extern void exit (int);
 
index a60bfa8bb6af30ad6c7e5458cd3eac245341ff2d..ab43ca60cfe67243644c925a796ff9cb03fc57e8 100644 (file)
@@ -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 0cd425948fcb58f9524be08f584860273733994d..b3072271bfb91b088e9f992d2c98cf26d6d89394 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-xfail-if "ptxas crashes" { nvptx-*-* } { "*" } { "-O0" "-Os" } } */
 
 
 int a = 1, b, d;
index 7f35e9b0953f63780c1b4631703a18478765bab6..09b83225ad0b2e9e0f4d8db8ede4b4afcac3e3da 100644 (file)
@@ -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 63fbfcc5c4bfeadaa5618e205d49d41fe85e9d14..de217412af5c2d12802518a14a7bbd3cb8df0078 100644 (file)
@@ -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 8be831d96b6a8dcc78ca833e29e8c5c6ef1d208b..782fccb086b85e2f5a6cf2ea12c7f8085bc8edc3 100644 (file)
@@ -2,7 +2,7 @@
 /* Contributed by Devang Patel  <dpatel@apple.com>  */
 
 /* { 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 ce55ba1c8242d2f60fafef718643a3df2b4a457d..a6cc1a406a8849114818041fb62b02ac6e4d8ab4 100644 (file)
@@ -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; }
 
index 9cd1330d1dd725319456f45c6a6d21e710f82c71..50b56fb8907cd057a2f04fad26e55c79a53dca85 100644 (file)
@@ -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 2b50e279fe9257fe8043c02b14fef24b9e16121f..e43bab5df3cfc253759f27c80d4d1d92fba3c9a9 100644 (file)
@@ -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 1dedc0aa1ca835be6e1bd8d6d5ef342644bee41e..fa2591e1b7c34f104f5bec75206dfab07adc704a 100644 (file)
@@ -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 a395f5ff8c91bd78dbc1224a08e461447dd00dd3..f2bf6390e5d42c3d50d31d6c1e70fa1bfa87f0cf 100644 (file)
@@ -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_what } {
             || [istarget msp430-*-*]
             || [istarget nds32*-*-elf]
             || [istarget nios2-*-elf]
+            || [istarget nvptx-*-*]
             || [istarget powerpc-*-eabi*]
             || [istarget powerpc-*-elf]
             || [istarget rx-*-*]       
@@ -4190,7 +4192,8 @@ proc check_effective_target_vect_natural_alignment { } {
         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
         }
     }
@@ -5660,6 +5663,9 @@ proc check_effective_target_gld { } {
 
 proc check_effective_target_lto { } {
     global ENABLE_LTO
+    if { [istarget nvptx-*-*] } {
+       return 0;
+    }
     return [info exists ENABLE_LTO]
 }
 
This page took 0.097432 seconds and 5 git commands to generate.