]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgomp.c-c++-common/requires-4.c: dg-xfail-run-if for USM with -foffload-memory=
authorTobias Burnus <tobias@codesourcery.com>
Thu, 20 Oct 2022 11:25:25 +0000 (13:25 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 20 Oct 2022 11:25:25 +0000 (13:25 +0200)
The USM implementation uses -foffload-memory=... which allocates variables
in a special memory. This does not support static variables. Hence, XFAIL
this test on nvptx/gcn. The requires-4a.c testcase tests the same but uses
hash memory instead.

libgomp/
* testsuite/libgomp.c-c++-common/requires-4.c: dg-xfail-run-if on
nvptx and gcn.

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

index 5883eff0d9398fb80369a7b4b5f78485ee167957..c6b28d5442fa0df860c8a56faceb23b39ba2c9e6 100644 (file)
@@ -2,6 +2,8 @@
 /* { dg-additional-options "-foffload-options=nvptx-none=-misa=sm_35" { target { offload_target_nvptx } } } */
 /* { dg-additional-sources requires-4-aux.c } */
 
+/* { dg-xfail-run-if "USM via -foffload-memory=... does not support static variables" { offload_device_nvptx || offload_device_gcn } } */
+
 /* Check no diagnostic by device-compiler's or host compiler's lto1.
    Other file uses: 'requires reverse_offload', but that's inactive as
    there are no declare target directives, device constructs nor device routines  */