From patchwork Mon Oct 11 13:41:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Brown X-Patchwork-Id: 46103 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1CDA53857819 for ; Mon, 11 Oct 2021 14:10:01 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 5DD243858D3C for ; Mon, 11 Oct 2021 13:41:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5DD243858D3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: jwuvpUwIK7luDQ2St/hKqIcNsjWR+5LKfZiygy34Z2k3biHFhe5yuUOQkkEttd4J0CB63kQkRp Xiib+ZKHCRjLV8e2vi4RjytRtuzD956Stgi1ygAEANRQ6oBPo+spqlZeajv9Ss54Bguk4tu3GW FbbBYEQYYAXuqtRfJURU91RSUJzi/iZ5YVmaG/l597w/EfNH/E7bSxJVMXPSwk3Cm5hGK6HSLb MME/qI/qYpNvBtENMtXrvIU9ezMGQlMv9+aLLJD3LfgOPPrkW+UTFxjJR6uxQ0j8MDmowRU+v9 N8nX+aLR/4G/jFrCRi5RRdxs X-IronPort-AV: E=Sophos;i="5.85,364,1624348800"; d="scan'208";a="69506255" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 11 Oct 2021 05:41:32 -0800 IronPort-SDR: OI2tli6MzLPDgb1+pLRNZsQN2MOxbdbSXdEnA/7ySLl+0i5vdKbpb8QOz3GIqfODKXX8CQpmXv 1z4ZL07EKK7LW/E9WaitShavY6z5AsLeIZg1+P93RP42A9evV2AhmsqShIYDVVFyzBM1apdmkg A4jHfvhttHIkchAd+vQssn7b3cCd2xsfO7m7hjW5LVV5YS5ZFeqIiUQCYzJKqf1kAgmZ5IwOGs 80H6Byl8G1KEJmCjZlw51RW5sDgHEsJxkzuu5TxkTsqMz+tDDB8DwfN1tmEJiG1DKp4kxWlHyR Efs= From: Julian Brown To: Subject: [PATCH 2/2] OpenACC: Make deep-copy-arrayofstruct.c a libgomp/runtime test Date: Mon, 11 Oct 2021 06:41:08 -0700 Message-ID: <20211011134108.129856-2-julian@codesourcery.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20211011134108.129856-1-julian@codesourcery.com> References: <20211011134108.129856-1-julian@codesourcery.com> MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jakub Jelinek , Thomas Schwinge Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" I noticed that the test in question now compiles properly, and in fact runs properly too. Thus it's more useful as a runtime test than a passing compilation test that otherwise doesn't do much. This patch moves it to libgomp. Tested with offloading to NVPTX and bootstrapped. (I can probably self-approve as a testsuite-only change, but the patch depends on previously-posted series). Julian 2021-10-11 Julian Brown gcc/testsuite/ * libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move test from here. libgomp/ * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move test to here. --- .../libgomp.oacc-c-c++-common}/deep-copy-arrayofstruct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename {gcc/testsuite/c-c++-common/goacc => libgomp/testsuite/libgomp.oacc-c-c++-common}/deep-copy-arrayofstruct.c (98%) diff --git a/gcc/testsuite/c-c++-common/goacc/deep-copy-arrayofstruct.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c similarity index 98% rename from gcc/testsuite/c-c++-common/goacc/deep-copy-arrayofstruct.c rename to libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c index 4247607b61c..a11c64749cc 100644 --- a/gcc/testsuite/c-c++-common/goacc/deep-copy-arrayofstruct.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do run } */ #include #include