/* 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
/* 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'. */
/* { 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: