]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
amdgcn, libgomp: use xfail for gfx908 requires tests
authorAndrew Stubbs <ams@baylibre.com>
Wed, 3 Dec 2025 17:53:07 +0000 (17:53 +0000)
committerAndrew Stubbs <ams@baylibre.com>
Thu, 4 Dec 2025 12:14:48 +0000 (12:14 +0000)
Use a different way to remove the "FAIL" cases for gfx908.  It really isn't
working with fall-back, as intended, so XFAIL is appropriate.

libgomp/ChangeLog:

* testsuite/libgomp.c-c++-common/requires-4.c: Change dg-excess-errors
to dg-xfail-if.
* testsuite/libgomp.c-c++-common/requires-4a.c: Likewise.
* testsuite/libgomp.c-c++-common/requires-5.c: Likewise.

libgomp/testsuite/libgomp.c-c++-common/requires-4.c
libgomp/testsuite/libgomp.c-c++-common/requires-4a.c
libgomp/testsuite/libgomp.c-c++-common/requires-5.c

index 2ebd9c1c8ce64e7cd07198f7adfbd3d74b04549e..9eae66a89ab1b7a9282b340db88430605dec11e4 100644 (file)
@@ -5,7 +5,7 @@
 
 /* GCC explicitly disables XNACK for gfx908 (and others) as the hardware
    support is limited, which results in a diagnostic.  */
-/* { dg-excess-errors "Unified Shared Memory is enabled, but XNACK is disabled" { target offload_target_amdgcn } } */
+/* { dg-xfail-if "gfx908 xnack broken" { offload_target_amdgcn } "-foffload=-march=gfx908" } */
 
 /* Check no diagnostic by device-compiler's or host compiler's lto1.
    Other file uses: 'requires reverse_offload', but that's inactive as
index 85301cf31d9700c374ea2750d96365c13cf8d574..845d4b31c8f9e9abea17bbb5137b43b04fddedd4 100644 (file)
@@ -5,7 +5,7 @@
 
 /* GCC explicitly disables XNACK for gfx908 (and others) as the hardware
    support is limited, which results in a diagnostic.  */
-/* { dg-excess-errors "Unified Shared Memory is enabled, but XNACK is disabled" { target offload_target_amdgcn } } */
+/* { dg-xfail-if "Unified Shared Memory is enabled, but XNACK is disabled" { offload_target_amdgcn } "-foffload=-march=gfx908" } */
 
 /* Same as requires-4.c, but uses heap memory for 'a'.  */
 
index 4fd7f1c7885cd1125befed74397f89dc40fb2346..cddd4643a1b1a46eef2583ed347b7e70c5b5f69b 100644 (file)
@@ -1,6 +1,9 @@
 /* { dg-additional-options "-foffload-options=nvptx-none=-misa=sm_35" { target { offload_target_nvptx } } } */
 /* { dg-additional-sources requires-5-aux.c } */
-/* { dg-excess-errors "Unified Shared Memory is enabled, but XNACK is disabled" { target offload_target_amdgcn } } */
+
+/* GCC explicitly disables XNACK for gfx908 (and others) as the hardware
+   support is limited, which results in a diagnostic.  */
+/* { dg-xfail-if "Unified Shared Memory is enabled, but XNACK is disabled" { offload_target_amdgcn } "-foffload=-march=gfx908" } */
 
 /* Depending on offload device capabilities, it may print something like the
    following (only) if GOMP_DEBUG=1: