From: Tom de Vries Date: Thu, 15 Oct 2020 13:55:24 +0000 (+0200) Subject: [nvptx, testsuite] Xfail stack atomics X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f2ff7d26722297558601fd943f8165a59833e8f9;p=gcc.git [nvptx, testsuite] Xfail stack atomics 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 * 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. --- diff --git a/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-6.c b/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-6.c index 2dc91c510ba..900559b81b9 100644 --- a/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-6.c +++ b/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-6.c @@ -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 \ diff --git a/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-7.c b/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-7.c index eb7082d8d33..d000083f186 100644 --- a/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-7.c +++ b/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-7.c @@ -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 #include diff --git a/gcc/testsuite/gcc.dg/atomic/stdatomic-op-5.c b/gcc/testsuite/gcc.dg/atomic/stdatomic-op-5.c index daba8ec3513..f0e8581fda9 100644 --- a/gcc/testsuite/gcc.dg/atomic/stdatomic-op-5.c +++ b/gcc/testsuite/gcc.dg/atomic/stdatomic-op-5.c @@ -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