From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1534) id D5A573885500; Thu, 20 Oct 2022 11:28:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D5A573885500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666265317; bh=j6z2P6n4KACD3kPxW5HRvvwJWU8jeuDwMyHFuhAV6lU=; h=From:To:Subject:Date:From; b=r2k5Io9EhqHL0uGmFiK/iOzuAVoxSXuH+2khyYoOyjlqT3qTKthryeeOrN5S+crUF jxY91Lczvxi7lOwfjxpMBoTNeqMADEMgtSlSnjfDZvpdcHUwDMUIkoiYtdwKjHUn2m JTNOC97uo17crAOFjkZMS/knHAoRuhn516uCNDpU= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Tobias Burnus To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/omp/gcc-12] libgomp.c-c++-common/requires-4.c: dg-xfail-run-if for USM with -foffload-memory= X-Act-Checkin: gcc X-Git-Author: Tobias Burnus X-Git-Refname: refs/heads/devel/omp/gcc-12 X-Git-Oldrev: ffc6267a829068f49fd4346a0495d3f3fc51c89e X-Git-Newrev: 0c47ae1c9283a812f832e80e451bfa82519c21e8 Message-Id: <20221020112837.D5A573885500@sourceware.org> Date: Thu, 20 Oct 2022 11:28:37 +0000 (GMT) List-Id: https://gcc.gnu.org/g:0c47ae1c9283a812f832e80e451bfa82519c21e8 commit 0c47ae1c9283a812f832e80e451bfa82519c21e8 Author: Tobias Burnus Date: Thu Oct 20 13:25:25 2022 +0200 libgomp.c-c++-common/requires-4.c: dg-xfail-run-if for USM with -foffload-memory= 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. Diff: --- libgomp/testsuite/libgomp.c-c++-common/requires-4.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libgomp/testsuite/libgomp.c-c++-common/requires-4.c b/libgomp/testsuite/libgomp.c-c++-common/requires-4.c index 5883eff0d93..c6b28d5442f 100644 --- a/libgomp/testsuite/libgomp.c-c++-common/requires-4.c +++ b/libgomp/testsuite/libgomp.c-c++-common/requires-4.c @@ -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 */