From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id A8435385742D; Wed, 2 Nov 2022 21:07:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A8435385742D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667423276; bh=FlVGwpDZgyai1lrN0sRe8XcQtPorKM8VSY0SKoBlRcA=; h=From:To:Subject:Date:From; b=LxWvbyxJXXIxnaGWyD+cGVCa+uWmft40rJr4Tkk+g7pK+An5/lt7kuEy//sDBMglJ +Quvttos29N+3pQUFwUvth0F5gyGZE3gdF7KqCe+vdl9qumJboZcTXoQT+XS7B8L1v 3qG4gO05ClU3ZVOeti2SNCPZkyaxHHjLBoi2oV+4= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/omp/gcc-12] XFAIL some OpenACC 'kernels' confusion in 'libgomp.oacc-fortran/declare-allocatable-1*.f90' X-Act-Checkin: gcc X-Git-Author: Thomas Schwinge X-Git-Refname: refs/heads/devel/omp/gcc-12 X-Git-Oldrev: 5a9e5a7d20ed1866b6602d8d5620664973271203 X-Git-Newrev: 5a3111c3d60ee8e8630f1f6ed200b0b4e0c5e490 Message-Id: <20221102210756.A8435385742D@sourceware.org> Date: Wed, 2 Nov 2022 21:07:56 +0000 (GMT) List-Id: https://gcc.gnu.org/g:5a3111c3d60ee8e8630f1f6ed200b0b4e0c5e490 commit 5a3111c3d60ee8e8630f1f6ed200b0b4e0c5e490 Author: Thomas Schwinge Date: Wed Nov 2 15:44:46 2022 +0100 XFAIL some OpenACC 'kernels' confusion in 'libgomp.oacc-fortran/declare-allocatable-1*.f90' Seen only for certain optimizations levels, as indicated; so there are a few XPASSes otherwise. There are neither OpenACC 'kernels' constructs here, nor other 'loop' constructs with 'auto' clause, so I'm not sure what's going on. libgomp/ * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90: XFAIL some OpenACC 'kernels' confusion. * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90: Likewise. * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: Likewise. Diff: --- libgomp/ChangeLog.omp | 7 +++++++ .../libgomp.oacc-fortran/declare-allocatable-1-directive.f90 | 10 ++++++++++ .../libgomp.oacc-fortran/declare-allocatable-1-runtime.f90 | 10 ++++++++++ .../testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90 | 10 ++++++++++ 4 files changed, 37 insertions(+) diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp index 2784b37bf19..38048785174 100644 --- a/libgomp/ChangeLog.omp +++ b/libgomp/ChangeLog.omp @@ -1,5 +1,12 @@ 2022-11-02 Thomas Schwinge + * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90: + XFAIL some OpenACC 'kernels' confusion. + * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90: + Likewise. + * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: + Likewise. + Backported from master: 2022-11-02 Thomas Schwinge diff --git a/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90 b/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90 index 759873bad67..6dd6f480519 100644 --- a/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90 +++ b/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90 @@ -79,6 +79,8 @@ program test ! { dg-note {variable 'i' ought to be adjusted for OpenACC privatization level: 'vector'} {} { target *-*-* } l$c } ! { dg-note {variable 'i' adjusted for OpenACC privatization level: 'vector'} {} { target { ! openacc_host_selected } } l$c } ! { dg-note {variable 'i\.[0-9]+' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l$c } + ! { dg-bogus {missed: 'auto' loop has not been analyzed} TODO { xfail __OPTIMIZE__ } l$c } + ! '-O1', '-O3', '-Os' only. ! { dg-optimized {assigned OpenACC gang vector loop parallelism} {} { target *-*-* } l$c } do i = 1, n b(i) = i * a @@ -152,6 +154,8 @@ program test ! { dg-note {variable 'i' ought to be adjusted for OpenACC privatization level: 'vector'} {} { target *-*-* } l$c } ! { dg-note {variable 'i' adjusted for OpenACC privatization level: 'vector'} {} { target { ! openacc_host_selected } } l$c } ! { dg-note {variable 'i\.[0-9]+' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l$c } + ! { dg-bogus {missed: 'auto' loop has not been analyzed} TODO { xfail __OPTIMIZE__ } l$c } + ! '-O1', '-O2', '-O3', '-Os' only. ! { dg-optimized {assigned OpenACC gang vector loop parallelism} {} { target *-*-* } l$c } do i = 1, n b(i) = 1.0 @@ -162,6 +166,8 @@ program test ! { dg-note {variable 'i' ought to be adjusted for OpenACC privatization level: 'vector'} {} { target *-*-* } l$c } ! { dg-note {variable 'i' adjusted for OpenACC privatization level: 'vector'} {} { target { ! openacc_host_selected } } l$c } ! { dg-note {variable 'i\.[0-9]+' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l$c } + ! { dg-bogus {missed: 'auto' loop has not been analyzed} TODO { xfail __OPTIMIZE__ } l$c } + ! '-O1', '-O3', '-Os' only. ! { dg-optimized {assigned OpenACC gang vector loop parallelism} {} { target *-*-* } l$c } do i = 1, n b(i) = fun1 (i) ! { dg-line l[incr c] } @@ -193,6 +199,8 @@ program test ! { dg-note {variable 'i' ought to be adjusted for OpenACC privatization level: 'vector'} {} { target *-*-* } l$c } ! { dg-note {variable 'i' adjusted for OpenACC privatization level: 'vector'} {} { target { ! openacc_host_selected } } l$c } ! { dg-note {variable 'i\.[0-9]+' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l$c } + ! { dg-bogus {missed: 'auto' loop has not been analyzed} TODO { xfail __OPTIMIZE__ } l$c } + ! '-O1', '-O3', '-Os' only. ! { dg-optimized {assigned OpenACC gang vector loop parallelism} {} { target *-*-* } l$c } do i = 1, n b(i) = 1.0 @@ -250,6 +258,8 @@ subroutine sub2 !$acc parallel loop ! { dg-line l[incr c] } ! { dg-note {variable 'i' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l$c } + ! { dg-bogus {missed: 'auto' loop has not been analyzed} TODO { xfail __OPTIMIZE__ } l$c } + ! '-O1', '-O3', '-Os' only. ! { dg-optimized {assigned OpenACC gang vector loop parallelism} {} { target *-*-* } l$c } do i = 1, n b(i) = 1.0 diff --git a/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90 b/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90 index e4cb9c378a3..f86413b6b11 100644 --- a/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90 +++ b/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90 @@ -79,6 +79,8 @@ program test ! { dg-note {variable 'i' ought to be adjusted for OpenACC privatization level: 'vector'} {} { target *-*-* } l$c } ! { dg-note {variable 'i' adjusted for OpenACC privatization level: 'vector'} {} { target { ! openacc_host_selected } } l$c } ! { dg-note {variable 'i\.[0-9]+' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l$c } + ! { dg-bogus {missed: 'auto' loop has not been analyzed} TODO { xfail __OPTIMIZE__ } l$c } + ! '-O1', '-O3', '-Os' only. ! { dg-optimized {assigned OpenACC gang vector loop parallelism} {} { target *-*-* } l$c } do i = 1, n b(i) = i * a @@ -152,6 +154,8 @@ program test ! { dg-note {variable 'i' ought to be adjusted for OpenACC privatization level: 'vector'} {} { target *-*-* } l$c } ! { dg-note {variable 'i' adjusted for OpenACC privatization level: 'vector'} {} { target { ! openacc_host_selected } } l$c } ! { dg-note {variable 'i\.[0-9]+' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l$c } + ! { dg-bogus {missed: 'auto' loop has not been analyzed} TODO { xfail __OPTIMIZE__ } l$c } + ! '-O1', '-O2', '-O3', '-Os' only. ! { dg-optimized {assigned OpenACC gang vector loop parallelism} {} { target *-*-* } l$c } do i = 1, n b(i) = 1.0 @@ -162,6 +166,8 @@ program test ! { dg-note {variable 'i' ought to be adjusted for OpenACC privatization level: 'vector'} {} { target *-*-* } l$c } ! { dg-note {variable 'i' adjusted for OpenACC privatization level: 'vector'} {} { target { ! openacc_host_selected } } l$c } ! { dg-note {variable 'i\.[0-9]+' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l$c } + ! { dg-bogus {missed: 'auto' loop has not been analyzed} TODO { xfail __OPTIMIZE__ } l$c } + ! '-O1', '-O3', '-Os' only. ! { dg-optimized {assigned OpenACC gang vector loop parallelism} {} { target *-*-* } l$c } do i = 1, n b(i) = fun1 (i) ! { dg-line l[incr c] } @@ -193,6 +199,8 @@ program test ! { dg-note {variable 'i' ought to be adjusted for OpenACC privatization level: 'vector'} {} { target *-*-* } l$c } ! { dg-note {variable 'i' adjusted for OpenACC privatization level: 'vector'} {} { target { ! openacc_host_selected } } l$c } ! { dg-note {variable 'i\.[0-9]+' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l$c } + ! { dg-bogus {missed: 'auto' loop has not been analyzed} TODO { xfail __OPTIMIZE__ } l$c } + ! '-O1', '-O3', '-Os' only. ! { dg-optimized {assigned OpenACC gang vector loop parallelism} {} { target *-*-* } l$c } do i = 1, n b(i) = 1.0 @@ -250,6 +258,8 @@ subroutine sub2 !$acc parallel loop ! { dg-line l[incr c] } ! { dg-note {variable 'i' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l$c } + ! { dg-bogus {missed: 'auto' loop has not been analyzed} TODO { xfail __OPTIMIZE__ } l$c } + ! '-O1', '-O3', '-Os' only. ! { dg-optimized {assigned OpenACC gang vector loop parallelism} {} { target *-*-* } l$c } do i = 1, n b(i) = 1.0 diff --git a/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90 b/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90 index 1c8ccd9f61f..fb2ede13465 100644 --- a/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90 +++ b/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90 @@ -78,6 +78,8 @@ program test ! { dg-note {variable 'i' ought to be adjusted for OpenACC privatization level: 'vector'} {} { target *-*-* } l$c } ! { dg-note {variable 'i' adjusted for OpenACC privatization level: 'vector'} {} { target { ! openacc_host_selected } } l$c } ! { dg-note {variable 'i\.[0-9]+' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l$c } + ! { dg-bogus {missed: 'auto' loop has not been analyzed} TODO { xfail __OPTIMIZE__ } l$c } + ! '-O1', '-O3', '-Os' only. ! { dg-optimized {assigned OpenACC gang vector loop parallelism} {} { target *-*-* } l$c } do i = 1, n b(i) = i * a @@ -146,6 +148,8 @@ program test ! { dg-note {variable 'i' ought to be adjusted for OpenACC privatization level: 'vector'} {} { target *-*-* } l$c } ! { dg-note {variable 'i' adjusted for OpenACC privatization level: 'vector'} {} { target { ! openacc_host_selected } } l$c } ! { dg-note {variable 'i\.[0-9]+' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l$c } + ! { dg-bogus {missed: 'auto' loop has not been analyzed} TODO { xfail __OPTIMIZE__ } l$c } + ! '-O1', '-O2', '-O3', '-Os' only. ! { dg-optimized {assigned OpenACC gang vector loop parallelism} {} { target *-*-* } l$c } do i = 1, n b(i) = 1.0 @@ -156,6 +160,8 @@ program test ! { dg-note {variable 'i' ought to be adjusted for OpenACC privatization level: 'vector'} {} { target *-*-* } l$c } ! { dg-note {variable 'i' adjusted for OpenACC privatization level: 'vector'} {} { target { ! openacc_host_selected } } l$c } ! { dg-note {variable 'i\.[0-9]+' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l$c } + ! { dg-bogus {missed: 'auto' loop has not been analyzed} TODO { xfail __OPTIMIZE__ } l$c } + ! '-O1', '-O3', '-Os' only. ! { dg-optimized {assigned OpenACC gang vector loop parallelism} {} { target *-*-* } l$c } do i = 1, n b(i) = fun1 (i) ! { dg-line l[incr c] } @@ -185,6 +191,8 @@ program test ! { dg-note {variable 'i' ought to be adjusted for OpenACC privatization level: 'vector'} {} { target *-*-* } l$c } ! { dg-note {variable 'i' adjusted for OpenACC privatization level: 'vector'} {} { target { ! openacc_host_selected } } l$c } ! { dg-note {variable 'i\.[0-9]+' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l$c } + ! { dg-bogus {missed: 'auto' loop has not been analyzed} TODO { xfail __OPTIMIZE__ } l$c } + ! '-O1', '-O3', '-Os' only. ! { dg-optimized {assigned OpenACC gang vector loop parallelism} {} { target *-*-* } l$c } do i = 1, n b(i) = 1.0 @@ -240,6 +248,8 @@ subroutine sub2 !$acc parallel loop ! { dg-line l[incr c] } ! { dg-note {variable 'i' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l$c } + ! { dg-bogus {missed: 'auto' loop has not been analyzed} TODO { xfail __OPTIMIZE__ } l$c } + ! '-O1', '-O3', '-Os' only. ! { dg-optimized {assigned OpenACC gang vector loop parallelism} {} { target *-*-* } l$c } do i = 1, n b(i) = 1.0