From patchwork Sat Oct 14 19:38:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tobias Burnus X-Patchwork-Id: 152954 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp2634545vqb; Sat, 14 Oct 2023 12:39:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGwpWtgnArJc256Pg9xDjYJJeAmy8+qjRCfh/EvayL12uco9ldNA/1C6x5/RG6adGLK1FGN X-Received: by 2002:ac8:5a0c:0:b0:3fd:dab5:9430 with SMTP id n12-20020ac85a0c000000b003fddab59430mr39522374qta.16.1697312356584; Sat, 14 Oct 2023 12:39:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697312356; cv=pass; d=google.com; s=arc-20160816; b=VwgzBtLUokghhGBaRBNOSA0j9jlF+zH5HtfKdnwbZCawYyE76MQ/uZdQ3iZxam62/o ztpjxyPr3ATQwK7vxiC8K7nx+j/cBktD3nXDOBOOhpDM+SicoIvD8B1EIpf/4AsDImbC u791dAcRscu17EqsmZJiIcd5S+29caqBSBb4yZW4Lo5+Ca18MkiXeG9OsCaQ8ahiP039 1LTD+WFlOvujeCYOA08IMH8mfAqq3ec9mXMPd4WP2SoEwhd0dFe8gYLVC9CmvwfqH7kA vmUwHdjxocuIdSplPwSCPyS0PXIDS00yjWwhMz7cfv89jN0j0p/gj8/dHH7NTttTGy7Y 1kDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :ironport-sdr:dmarc-filter:arc-filter:delivered-to; bh=PMTXBe9/zdFhMJ4K8fJP/FMMSNI+jnskjZ2XjBZhOV8=; fh=CT9ANdoiYgjVt7HQGxGdzRB+HPa196wDRuos5o/1sIg=; b=X6JTwB/nBMCxwR2Brl3udNhUH41dkKJ2kD9o8f2LGKdhilv407rtPgzTip5G95AHKw Ux4iCwyJPntccnWrKtE223ojFN486kze8sC3muFT8mJ5D4spHxuRAPEMHUwxaGbcSU19 cRlBuIr7wcm/ocrdVvKIupJLRVGsfUL5IKilD2cL18whxrPsJtWaHVHIqOKQPL3SGgEU 9NxcF/bOsU7XvFCxN3vwI+lh+OX8IdmY9s0TaB9675FLiAvT5pZbMs8fJPttVzkw76Be JQ3PZF85aQ/6vWxecmGl9mEEsluhmD6rzzaAVFXJu+AM38R3GIenc+pGL90qZCM9Pqtb XIaw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id 21-20020ac85955000000b0041996c8044dsi3119799qtz.307.2023.10.14.12.39.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 12:39:16 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 59C98385772D for ; Sat, 14 Oct 2023 19:39:16 +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 6E9103858C31 for ; Sat, 14 Oct 2023 19:38:51 +0000 (GMT) ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6E9103858C31 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=68.232.129.153 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697312333; cv=none; b=ikqMyYkVWuwGGPwDo567eYFg22qf4XUiL/zZZvdoO3sjMJHKoUPA4RHi60DHCv48ceYXgeTwLaE7fB+Wmg0yV/1T6xxEAZA4JOZxUZYC4C2prOqg+xevNwolki1DAGXaXlt5ssuI6GqWzObndlY+IJzOWpL9nVrevm6EJsgK9lU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697312333; c=relaxed/simple; bh=PMTXBe9/zdFhMJ4K8fJP/FMMSNI+jnskjZ2XjBZhOV8=; h=Message-ID:Date:MIME-Version:Subject:From:To; b=oa2DsBNwt3Xq12B5geTaU/NUhm2FxNvp32vUE6pcULZHwtPcwbbdiDadEC6I2MWO2uE9ay2+ob8lxwpQ3w6KDhJdokSOX5IgcCk2QHcMrTFOVkbKKEItR4/TVbDD6iBlragsLb4UB85IzVvpnOUr0lvZt5Kh2T3pecpn8ufokh4= ARC-Authentication-Results: i=1; server2.sourceware.org DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6E9103858C31 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-CSE-ConnectionGUID: gnD5t1yiRlKCASgPUD+s5Q== X-CSE-MsgGUID: DjA5JxgmTN6PZVNfYkAKvA== X-IronPort-AV: E=Sophos;i="6.03,224,1694764800"; d="diff'?scan'208";a="22056748" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 14 Oct 2023 11:38:49 -0800 IronPort-SDR: PE/2GI9RZYknim9pxxTqMhnc4fB1Ud8dze22lSDgGAa/p1mrlfY9z8aOctZcvD2bLC//oRB834 qFd9hP5U/2R2oNUNHVS6KskUzTpP+UUjYzXSKfNk3LUApjrdF714dWTikr85BCmyqs9lfZkmiU n9vK1Gqx4zLfW9O1PJZdVx1rG+d6725OxB5etgJ1reXP8kYKj6X+xBBqJHf/dTaqEIEgukhKHj 8LFtwiN27ml9Z5pEHIQr2pMeKVLUJG/zeg9a4fLOEihcJTCvpAdimx4FQbEnD7MF3wd7eorR1M 87o= Message-ID: <716c6c93-7ec5-465a-8505-25368e02056b@codesourcery.com> Date: Sat, 14 Oct 2023 21:38:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [committed] libgomp.fortran/allocate-6.f90: Run with -fdump-tree-gimple (was: [Patch] OpenMP: Add ME support for 'omp allocate' stack variables) Content-Language: en-US From: Tobias Burnus To: gcc-patches , Jakub Jelinek References: <98cc1611-7369-4a2b-a7df-73200eded3c9@codesourcery.com> In-Reply-To: <98cc1611-7369-4a2b-a7df-73200eded3c9@codesourcery.com> X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-14.mgc.mentorg.com (139.181.222.14) To svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) X-Spam-Status: No, score=-11.3 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.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779761001800809915 X-GMAIL-MSGID: 1779761001800809915 I wonder why I missed the following – but it now works :-/ Tobias ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955 commit fd6b17a4892684f286274d874f0029604feda7e5 Author: Tobias Burnus Date: Sat Oct 14 20:09:34 2023 +0200 libgomp.fortran/allocate-6.f90: Run with -fdump-tree-gimple libgomp/ * testsuite/libgomp.fortran/allocate-6.f90: Add missing dg-additional-options "-fdump-tree-gimple"; fix scan. diff --git a/libgomp/testsuite/libgomp.fortran/allocate-6.f90 b/libgomp/testsuite/libgomp.fortran/allocate-6.f90 index 5c32652f2a6..5034dd26b2e 100644 --- a/libgomp/testsuite/libgomp.fortran/allocate-6.f90 +++ b/libgomp/testsuite/libgomp.fortran/allocate-6.f90 @@ -1,3 +1,4 @@ +! { dg-additional-options "-fdump-tree-gimple" } module m use iso_c_binding use omp_lib @@ -23,10 +24,10 @@ subroutine one () !$omp allocate(var,var2) align(128) allocator(omp_low_lat_mem_alloc) var = 5 ! { dg-final { scan-tree-dump-times "var\\.\[0-9\]+ = __builtin_GOMP_alloc \\(128, 4, 5\\);" 1 "gimple" } } */ -! { dg-final { scan-tree-dump-times "var2\\.\[0-9\]+ = __builtin_GOMP_alloc \\(128, D\\.\[0-9\]+, 5\\);" 1 "gimple" } } */ +! { dg-final { scan-tree-dump-times "var2 = __builtin_GOMP_alloc \\(128, D\\.\[0-9\]+, 5\\);" 1 "gimple" } } */ ! { dg-final { scan-tree-dump-times "__builtin_GOMP_free \\(var\\.\[0-9\]+, 0B\\);" 1 "gimple" } } */ -! { dg-final { scan-tree-dump-times "__builtin_GOMP_free \\(var2\\.\[0-9\]+, 0B\\);" 1 "gimple" } } */ +! { dg-final { scan-tree-dump-times "__builtin_GOMP_free \\(var2, 0B\\);" 1 "gimple" } } */ if (mod(transfer(loc(var), intptr), 128_c_intptr_t) /= 0) & stop 1