From patchwork Tue Aug 23 10:34:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tobias Burnus X-Patchwork-Id: 673 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:ecc5:0:0:0:0:0 with SMTP id s5csp882159wro; Tue, 23 Aug 2022 03:35:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR4hsT2PNjK7iiVKcZGqLYXIsFYYLUf0uoCBmkKkW7xLgJ1gehR/a5l/uq8TK5ZnInlMSgxv X-Received: by 2002:a17:907:16a4:b0:73d:6d5f:3e3e with SMTP id hc36-20020a17090716a400b0073d6d5f3e3emr9002939ejc.24.1661250937272; Tue, 23 Aug 2022 03:35:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661250937; cv=none; d=google.com; s=arc-20160816; b=lT0LujctfgjImxEmMNyAj/lCmcICZ+vKRrp/hLqOhr2EWyxIqIe8O0kusWNg6LCxzU QOewAb12MFe3JDe5mSTzEpz/COvvW6lOdbrcjXZwvdPS+ginAk3IJghLlkS9qemz9PBv 2qmFYwXJAILAIu4K9I5OHht6GYV9yBzR2bkyV+GXlSf3T4shTZ0ORREMzhuKoWVCSXy3 TvPbvLaPhB2d3IEtUHXFo2Y9648jwuORD8FvZOLhJ7UUmZM/3SIkx9VxxIS3Dya7dzrv TDVoOCnEaWj76OkEScLjwi3wAs36JmblLL+EVaKM121VxwngKI/i6kygVBEuf53XhEtK BEFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:from:to :content-language:user-agent:mime-version:date:message-id :ironport-sdr:dmarc-filter:delivered-to; bh=z/DVHPBA/aysK38m8T7b4IEbYxqlIMy1qywjqyc9cR4=; b=n5K9cYhzW0RekdpnGqqdivxiRc26OCFhlVCTHyHsb9+mzLOQg7Qv0iEdJ5IJNOZWFC bZYepmCqq11EygxZHuVWMc3v/2in8kZqKVaLN2FBpsZ+RADDNcyu7pq/1LYLHJtpU/yu UI/BEUWR7DTkSRHVXLW4RND2Bf+EI90l+4fWcmL7rRYmpJ/K2cbZiP07d1LcnebjVnWN BleHF99bm4YnKfqiu06Akgr1a1xp9a4M2YeRJRwZ53D+IUwlOjyieWL7RGW9/WLbqqwz lvLpdNQCkRkRLKZBpkmnp12ror4L3a3bTYWLc/vi66WNdrkh6bwKg5DOthd+UgWZ0qFr QtRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id hr30-20020a1709073f9e00b0073d626e2ef8si7863398ejc.461.2022.08.23.03.35.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 03:35:37 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 562A33857BAB for ; Tue, 23 Aug 2022 10:35:32 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id D31103858D32 for ; Tue, 23 Aug 2022 10:35:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D31103858D32 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-IronPort-AV: E=Sophos;i="5.93,257,1654588800"; d="diff'?scan'208,217";a="81745465" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 23 Aug 2022 02:35:05 -0800 IronPort-SDR: o9jRRwummnDpVdglvYwkLKIFb87qbJqaEehzIxMsemHV0tYIsRs66BeCKedAc00Yd6LuYZpcW7 MUFrlGYtzeYXnGf42UevxBIwhSwa8bQmcoAwJcBT/JOPwuIFm1waGU6o1qymuf7p5+hWKbvLFG M7A3PLcIPpxL+FgK5QkljhMi12qhUJqyHn7b2504sorbHOejO31CAYwBQ47E2LQTI9rLmz+0oE DLDwALqztwlxGy2IJAQfbQPZVO2giUEpNOcRroLKWWVb/HQ6cmDcVw30RKiIaVuPDwhGEzmdsZ 6gU= Message-ID: <19b1f3b1-648e-2538-5eb4-86404c33f3ec@codesourcery.com> Date: Tue, 23 Aug 2022 12:34:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Content-Language: en-US To: gcc-patches From: Tobias Burnus Subject: [committed] gfortran.dg/gomp/depend-4.f90: Minor fix 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.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1741947862764279395?= X-GMAIL-MSGID: =?utf-8?q?1741947862764279395?= Not really crucial as it is a compile-time test, but there was an off-by-one typo: !$omp depobj(elem(5)) depend(in: daaa(2)) !$omp depobj(elem(6)) depend(in: daap(2)) - !$omp depobj(elem(6)) depend(in: doaa(2)) + !$omp depobj(elem(7)) depend(in: doaa(2)) !$omp depobj(elem(8)) depend(in: doaaa(2)) Committed as https://gcc.gnu.org/r13-2151-g6b2a584ed5bed1b851ee7b4668ac705f20cbb2c4 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 6b2a584ed5bed1b851ee7b4668ac705f20cbb2c4 Author: Tobias Burnus Date: Tue Aug 23 12:31:43 2022 +0200 gfortran.dg/gomp/depend-4.f90: Minor fix gcc/testsuite/ * gfortran.dg/gomp/depend-4.f90: Fix array index use for depobj var + update scan-tree-dump-times. --- gcc/testsuite/gfortran.dg/gomp/depend-4.f90 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gfortran.dg/gomp/depend-4.f90 b/gcc/testsuite/gfortran.dg/gomp/depend-4.f90 index f6cf2fd2dd4..edc30fe7291 100644 --- a/gcc/testsuite/gfortran.dg/gomp/depend-4.f90 +++ b/gcc/testsuite/gfortran.dg/gomp/depend-4.f90 @@ -52,7 +52,7 @@ subroutine foo(dss, dsp, dsa, daa, daaa, daap, doss, dosp, dosa, doaa, doaaa, do !$omp depobj(elem(4)) depend(in: daa(2)) !$omp depobj(elem(5)) depend(in: daaa(2)) !$omp depobj(elem(6)) depend(in: daap(2)) - !$omp depobj(elem(6)) depend(in: doaa(2)) + !$omp depobj(elem(7)) depend(in: doaa(2)) !$omp depobj(elem(8)) depend(in: doaaa(2)) !$omp depobj(elem(9)) depend(in: doaap(2)) @@ -199,7 +199,7 @@ end ! { dg-final { scan-tree-dump-times "&elem\\\[3\\\] = &\\(\\*daa\\)\\\[1\\\];" 1 "original" } } ! { dg-final { scan-tree-dump-times "&elem\\\[4\\\] = &\\(\\*\\(integer.kind=4.\\\[0:\\\] \\* restrict\\) daaa->data\\)\\\[daaa->offset \\+ 2\\\];" 1 "original" } } ! { dg-final { scan-tree-dump-times "&elem\\\[5\\\] = \\(integer.kind=4. \\*\\) \\(daap->data \\+ .sizetype. \\(\\(daap->offset \\+ daap->dim\\\[0\\\].stride \\* 2\\) \\* daap->span\\)\\);" 1 "original" } } -! { dg-final { scan-tree-dump-times "&elem\\\[5\\\] = &\\(\\*doaa\\)\\\[1\\\];" 1 "original" } } +! { dg-final { scan-tree-dump-times "&elem\\\[6\\\] = &\\(\\*doaa\\)\\\[1\\\];" 1 "original" } } ! { dg-final { scan-tree-dump-times "&elem\\\[7\\\] = &\\(\\*\\(integer.kind=4.\\\[0:\\\] \\* restrict\\) doaaa->data\\)\\\[doaaa->offset \\+ 2\\\];" 1 "original" } } ! { dg-final { scan-tree-dump-times "&elem\\\[8\\\] = \\(integer.kind=4. \\*\\) \\(doaap->data \\+ .sizetype. \\(\\(doaap->offset \\+ doaap->dim\\\[0\\\].stride \\* 2\\) \\* doaap->span\\)\\);" 1 "original" } }