[nvptx, testsuite] Xfail stack atomics
authorTom de Vries <tdevries@suse.de>
Thu, 15 Oct 2020 13:55:24 +0000 (15:55 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 15 Oct 2020 14:00:15 +0000 (16:00 +0200)
Nvptx currently doesn't support atomics if it involves a stack address.
PR97444 is open about.

Xfail corresponding execution fails in gcc.dg/atomic.  Tested on nvptx.

gcc/testsuite/ChangeLog:

2020-10-15  Tom de Vries  <tdevries@suse.de>

* gcc.dg/atomic/c11-atomic-exec-6.c: Xfail execution for nvptx.
* gcc.dg/atomic/c11-atomic-exec-7.c: Same.
* gcc.dg/atomic/stdatomic-op-5.c: Same.

gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-6.c
gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-7.c
gcc/testsuite/gcc.dg/atomic/stdatomic-op-5.c

index 2dc91c510bae703f806bd4296e557aaf3b6f1b38..900559b81b9ac5376858759520567dc13487a910 100644 (file)
@@ -3,6 +3,7 @@
    still occurs.  */
 /* { dg-do run } */
 /* { dg-options "-std=c11 -pedantic-errors" } */
+/* { dg-xfail-run-if "PR97444: stack atomics" { nvptx*-*-* } }*/
 
 #define TEST_POINTER_ADD_SUB(TYPE)                     \
   do                                                   \
index eb7082d8d33b0329b24289e5fdc5bc89256978f3..d000083f186185556a2250e321c2a9993f3f201a 100644 (file)
@@ -2,6 +2,7 @@
    we generate correct code.  */
 /* { dg-do run } */
 /* { dg-options "-std=c11 -pedantic-errors -fdump-tree-original" } */
+/* { dg-xfail-run-if "PR97444: stack atomics" { nvptx*-*-* } }*/
 
 #include <stdatomic.h>
 #include <limits.h>
index daba8ec351310e8ab609d8b844d15837649921e0..f0e8581fda914ea41ebc5f874832e0cffd4f1900 100644 (file)
@@ -2,6 +2,7 @@
    we generate correct code.  */
 /* { dg-do run } */
 /* { dg-options "-std=c11 -pedantic-errors -fdump-tree-original" } */
+/* { dg-xfail-run-if "PR97444: stack atomics" { nvptx*-*-* } }*/
 
 #include <stdatomic.h>