public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-7578] Add 'gfortran.dg/goacc-gomp/pr102330-{1, 2, 3}.f90' [PR102330]
Date: Thu, 10 Mar 2022 11:07:04 +0000 (GMT)	[thread overview]
Message-ID: <20220310110704.CFF4B3857C44@sourceware.org> (raw)

https://gcc.gnu.org/g:687091257820f4a6a005186437917270ecd27416

commit r12-7578-g687091257820f4a6a005186437917270ecd27416
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Thu Jan 27 14:17:28 2022 +0100

    Add 'gfortran.dg/goacc-gomp/pr102330-{1,2,3}.f90' [PR102330]
    
    ..., currently XFAILed with 'dg-ice'.
    
            PR middle-end/102330
            gcc/testsuite/
            * gfortran.dg/goacc-gomp/pr102330-1.f90: New file.
            * gfortran.dg/goacc-gomp/pr102330-2.f90: Likewise.
            * gfortran.dg/goacc-gomp/pr102330-3.f90: Likewise.

Diff:
---
 .../gfortran.dg/goacc-gomp/pr102330-1.f90          | 20 ++++++++++++++++++++
 .../gfortran.dg/goacc-gomp/pr102330-2.f90          | 20 ++++++++++++++++++++
 .../gfortran.dg/goacc-gomp/pr102330-3.f90          | 22 ++++++++++++++++++++++
 3 files changed, 62 insertions(+)

diff --git a/gcc/testsuite/gfortran.dg/goacc-gomp/pr102330-1.f90 b/gcc/testsuite/gfortran.dg/goacc-gomp/pr102330-1.f90
new file mode 100644
index 00000000000..fba8c718dc2
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/goacc-gomp/pr102330-1.f90
@@ -0,0 +1,20 @@
+! { dg-additional-options -fchecking }
+! { dg-ice TODO }
+
+! { dg-additional-options -fopt-info-omp-note }
+
+! { dg-additional-options --param=openacc-privatization=noisy }
+
+program p
+  !$omp master taskloop simd
+  do i = 1, 8
+  end do
+  !$acc parallel loop ! { dg-line l_compute1 }
+  ! { dg-note {variable 'i' in 'private' clause is candidate for adjusting OpenACC privatization level} {} { target *-*-* } l_compute1 }
+  do i = 1, 8
+  end do
+end
+! { dg-bogus {Error: non-register as LHS of binary operation} TODO { target { ! offloading_enabled } xfail *-*-* } .-1 }
+! { dg-bogus {error: non-register as LHS of binary operation} TODO { target offloading_enabled xfail *-*-* } .-2 }
+! TODO See PR101551 for 'offloading_enabled' differences.
+! { dg-excess-errors ICE }
diff --git a/gcc/testsuite/gfortran.dg/goacc-gomp/pr102330-2.f90 b/gcc/testsuite/gfortran.dg/goacc-gomp/pr102330-2.f90
new file mode 100644
index 00000000000..7a1ce8b088c
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/goacc-gomp/pr102330-2.f90
@@ -0,0 +1,20 @@
+! { dg-additional-options -fchecking }
+! { dg-ice TODO }
+
+! { dg-additional-options -fopt-info-omp-note }
+
+! { dg-additional-options --param=openacc-privatization=noisy }
+
+program p
+  !$omp taskloop lastprivate(i)
+  do i = 1, 8
+  end do
+  !$acc parallel loop ! { dg-line l_compute1 }
+  ! { dg-note {variable 'i' in 'private' clause is candidate for adjusting OpenACC privatization level} {} { target *-*-* } l_compute1 }
+  do i = 1, 8
+  end do
+end
+! { dg-bogus {Error: non-register as LHS of binary operation} TODO { target { ! offloading_enabled } xfail *-*-* } .-1 }
+! { dg-bogus {error: non-register as LHS of binary operation} TODO { target offloading_enabled xfail *-*-* } .-2 }
+! TODO See PR101551 for 'offloading_enabled' differences.
+! { dg-excess-errors ICE }
diff --git a/gcc/testsuite/gfortran.dg/goacc-gomp/pr102330-3.f90 b/gcc/testsuite/gfortran.dg/goacc-gomp/pr102330-3.f90
new file mode 100644
index 00000000000..b8b1479c7ea
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/goacc-gomp/pr102330-3.f90
@@ -0,0 +1,22 @@
+! { dg-additional-options -fchecking }
+! { dg-ice TODO }
+
+! { dg-additional-options -fopt-info-omp-note }
+
+! { dg-additional-options --param=openacc-privatization=noisy }
+
+program p
+  i = 0
+  !$omp task shared(i)
+  i = 1
+  !$omp end task
+  !$omp taskwait
+  !$acc parallel loop ! { dg-line l_compute1 }
+  ! { dg-note {variable 'i' in 'private' clause is candidate for adjusting OpenACC privatization level} {} { target *-*-* } l_compute1 }
+  do i = 1, 8
+  end do
+end
+! { dg-bogus {Error: non-register as LHS of binary operation} TODO { target { ! offloading_enabled } xfail *-*-* } .-1 }
+! { dg-bogus {error: non-register as LHS of binary operation} TODO { target offloading_enabled xfail *-*-* } .-2 }
+! TODO See PR101551 for 'offloading_enabled' differences.
+! { dg-excess-errors ICE }


                 reply	other threads:[~2022-03-10 11:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220310110704.CFF4B3857C44@sourceware.org \
    --to=tschwinge@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).