diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2022-01-27 14:17:28 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2022-03-10 12:06:19 +0100 |
commit | 687091257820f4a6a005186437917270ecd27416 (patch) | |
tree | 4689404248fe1972be8e87fb009f7a74f7dbb923 /gcc | |
parent | 1d9dc3dd74eddd192bec1ac6f4d6548a81deb9a5 (diff) | |
download | gcc-687091257820f4a6a005186437917270ecd27416.zip gcc-687091257820f4a6a005186437917270ecd27416.tar.gz gcc-687091257820f4a6a005186437917270ecd27416.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gfortran.dg/goacc-gomp/pr102330-1.f90 | 20 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/goacc-gomp/pr102330-2.f90 | 20 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/goacc-gomp/pr102330-3.f90 | 22 |
3 files changed, 62 insertions, 0 deletions
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 0000000..fba8c71 --- /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 0000000..7a1ce8b --- /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 0000000..b8b1479 --- /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 } |