[gcc(refs/users/marxin/heads/marxin-gcc-benchmark-branch)] Add xfails to libgomp tests target-{33, 34}.c, target-link-1.c

Martin Liska marxin@gcc.gnu.org
Mon Mar 30 10:55:27 GMT 2020


https://gcc.gnu.org/g:fd789c816b06235b04698636db69e302b24c83ba

commit fd789c816b06235b04698636db69e302b24c83ba
Author: Frederik Harwath <frederik@codesourcery.com>
Date:   Mon Feb 10 08:08:00 2020 +0100

    Add xfails to libgomp tests target-{33,34}.c, target-link-1.c
    
    Add xfails for nvptx offloading because
    "no GOMP_OFFLOAD_async_run implemented in plugin-nvptx.c"
    (https://gcc.gnu.org/PR81688) and because
    "omp target link not implemented for nvptx"
    (https://gcc.gnu.org/PR81689).
    
    libgomp/
            * testsuite/libgomp.c/target-33.c: Add xfail for execution on
            offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
            * testsuite/libgomp.c/target-34.c: Likewise.
            * testsuite/libgomp.c/target-link-1.c: Add xfail for
            offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.

Diff:
---
 libgomp/ChangeLog                           | 9 +++++++++
 libgomp/testsuite/libgomp.c/target-33.c     | 3 +++
 libgomp/testsuite/libgomp.c/target-34.c     | 3 +++
 libgomp/testsuite/libgomp.c/target-link-1.c | 3 +++
 4 files changed, 18 insertions(+)

diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index 0740df8b2a1..f77ce955ac7 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,3 +1,12 @@
+
+2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
+
+	* testsuite/libgomp.c/target-33.c: Add xfail for execution on
+	offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
+	* testsuite/libgomp.c/target-34.c: Likewise.
+	* testsuite/libgomp.c/target-link-1.c: Add xfail for
+	offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
+
 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
 
 	* testsuite/libgomp.c/target-38.c: New test.
diff --git a/libgomp/testsuite/libgomp.c/target-33.c b/libgomp/testsuite/libgomp.c/target-33.c
index 1bed4b6bc67..15d2d7e38ab 100644
--- a/libgomp/testsuite/libgomp.c/target-33.c
+++ b/libgomp/testsuite/libgomp.c/target-33.c
@@ -1,3 +1,6 @@
+/* { dg-xfail-run-if "GOMP_OFFLOAD_async_run not implemented" { offload_target_nvptx } }
+   Cf. https://gcc.gnu.org/PR81688.  */
+
 extern void abort (void);
 
 int
diff --git a/libgomp/testsuite/libgomp.c/target-34.c b/libgomp/testsuite/libgomp.c/target-34.c
index 66d9f54202b..5a3596424d8 100644
--- a/libgomp/testsuite/libgomp.c/target-34.c
+++ b/libgomp/testsuite/libgomp.c/target-34.c
@@ -1,3 +1,6 @@
+/* { dg-xfail-run-if "GOMP_OFFLOAD_async_run not implemented" { offload_target_nvptx } }
+   Cf. https://gcc.gnu.org/PR81688.  */
+
 extern void abort (void);
 
 int
diff --git a/libgomp/testsuite/libgomp.c/target-link-1.c b/libgomp/testsuite/libgomp.c/target-link-1.c
index 681677cc2aa..99ce33bc9b4 100644
--- a/libgomp/testsuite/libgomp.c/target-link-1.c
+++ b/libgomp/testsuite/libgomp.c/target-link-1.c
@@ -1,3 +1,6 @@
+/* { dg-xfail-if "#pragma omp target link not implemented" { offload_target_nvptx } }
+   Cf. https://gcc.gnu.org/PR81689.  */
+
 struct S { int s, t; };
 
 int a = 1, b = 1;


More information about the Gcc-cvs mailing list