From f2ff7d26722297558601fd943f8165a59833e8f9 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 15 Oct 2020 15:55:24 +0200 Subject: [PATCH] [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. --- gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-6.c | 1 + gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-7.c | 1 + gcc/testsuite/gcc.dg/atomic/stdatomic-op-5.c | 1 + 3 files changed, 3 insertions(+) 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 -- 2.30.2