]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
nvptx: Re-enable "ptxas times out" test cases
authorThomas Schwinge <thomas@codesourcery.com>
Mon, 28 Nov 2022 09:05:06 +0000 (10:05 +0100)
committerThomas Schwinge <tschwinge@baylibre.com>
Mon, 7 Oct 2024 08:13:11 +0000 (10:13 +0200)
These are all quick to compile and generally PASS with:

    $ ptxas --version
    ptxas: NVIDIA (R) Ptx optimizing assembler
    Copyright (c) 2005-2018 NVIDIA Corporation
    Built on Sun_Sep__9_21:06:46_CDT_2018
    Cuda compilation tools, release 10.0, V10.0.145

Only 'gcc.c-torture/compile/limits-fndefn.c' at '-O0' still has an issue, as
indicated.  Working around that with '-Wa,--no-verify', for now.

gcc/testsuite/
* gcc.c-torture/compile/920501-4.c: Re-enable nvptx
"ptxas times out" variants.
* gcc.c-torture/compile/921011-1.c: Likewise.
* 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/pr49049.c: Likewise.
* gcc.c-torture/compile/pr59417.c: Likewise.
* gcc.c-torture/compile/limits-fndefn.c: Likewise.
Specify '-Wa,--no-verify' for nvptx '-O0'.

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/pr49049.c
gcc/testsuite/gcc.c-torture/compile/pr59417.c

index 1924a708d0986922075516bcfbd4188f756185bd..cc6e6820af535b7a202f46bba62aec5011465f2f 100644 (file)
@@ -1,5 +1,4 @@
 /* { dg-do assemble } */
-/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" } { "" } } */
 /* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
 /* { dg-require-stack-size "8196*4" } */
 
index 5955b4c527dc0ccca1a901705fbc56ac792b38cb..6cc707dc74c6dded681e3713f8b41f696675e42c 100644 (file)
@@ -1,5 +1,3 @@
-/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" } { "" } } */
-
 void
 fun (nb)
      int nb;
index 53204735493860c3f66cc6d6d81a7bff933c53f2..5d2c41d05a264ffa37368bc343f155212408f309 100644 (file)
@@ -1,6 +1,10 @@
 /* { dg-skip-if "too complex for avr" { avr-*-* } } */
-/* { dg-skip-if "ptxas times out" { nvptx-*-* } } */
 /* { dg-skip-if "no chance for bpf" { bpf-*-* } } */
+/* { dg-additional-options -Wa,--no-verify { target { nvptx-*-* && { ! __OPTIMIZE__ } } } }
+   For the very long list of formal parameters, the nvptx back end generates
+   very much boilerplate code.  Without optimizations enabled, that doesn't get
+   cleaned up, and 'ptxas' runs into timeout or gets OOM-killed after a few
+   minutes.  */
 /* { 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 b9337e995edefebbcdc35ad6219c88b01a8c8de0..37f9f6b6a8baf2e85da42c2c0df57f57bee9a066 100644 (file)
@@ -1,4 +1,3 @@
-/* { 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 e709fdc1ffb24c9ba15e8420c69ea5e22c432dc4..f9285e2c78438809d9b131a220e65f9d8185920e 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O2" "-Os" } { "" } } */
 extern void abort (void);
 
 static union {
index c604738b9cb63ea6230a4ceca619ad9e8f924b34..34ebb66381a158e6b754ae4da4efa932fb853831 100644 (file)
@@ -1,5 +1,4 @@
 /* PR target/39423 */
-/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O2" } { "" } } */
 
 int
 foo (const char *name, int nmlen, char *flags)
index f396e056fb308bad1936532d6caf59ff98090f79..a24b2a41c752d1f42741514bcb6f1b1795c41fb4 100644 (file)
@@ -1,5 +1,3 @@
-/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-Os" } { "" } } */
-
 __extension__ typedef unsigned long long int uint64_t;
 
 static int
index 891ba66718a42282951f6bf355629ea706ad14be..227c5d8410597981a187fa3d23f52c0ad365e7dd 100644 (file)
@@ -1,5 +1,4 @@
 /* PR tree-optimization/59417 */
-/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" "-O2" "-Os" } { "" } } */
 
 int a, b, d;
 short c;