diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2021-05-21 09:03:43 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2021-05-21 16:22:46 +0200 |
commit | 5d42db533324e80a7382b20b94cace5b202d41ea (patch) | |
tree | 157182872d2a061ef40724bd8874ff497f3b4dcf | |
parent | 61796dc03befa9b7426d5bc7c336cca585944143 (diff) | |
download | gcc-5d42db533324e80a7382b20b94cace5b202d41ea.zip gcc-5d42db533324e80a7382b20b94cace5b202d41ea.tar.gz gcc-5d42db533324e80a7382b20b94cace5b202d41ea.tar.bz2 |
Don't skip 'libgomp.oacc-fortran/privatized-ref-2.f90' for nvptx offloading
libgomp/
* testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
for nvptx offloading.
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-2.f90 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-2.f90 b/libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-2.f90 index 6c3e1dc..907f024 100644 --- a/libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-2.f90 +++ b/libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-2.f90 @@ -1,4 +1,11 @@ -! { dg-do run { target { ! openacc_nvidia_accel_selected } } } +! { dg-do run } + +! PR65181 "Support for alloca in nvptx" +! { dg-excess-errors "lto1, mkoffload and lto-wrapper fatal errors" { target openacc_nvidia_accel_selected } } +! Aside from restricting this testcase to non-nvptx offloading, and duplicating +! it with 'dg-do link' for nvptx offloading, there doesn't seem to be a way to +! XFAIL the "UNRESOLVED: [...] compilation failed to produce executable", or +! get rid of it, unfortunately. program main implicit none (type, external) @@ -24,6 +31,7 @@ contains !$acc parallel copyout(array) array = [(-i, i = 1, nn)] !$acc loop gang private(array) + ! { dg-message {sorry, unimplemented: target cannot support alloca} PR65181 { target openacc_nvidia_accel_selected } .-1 } do i = 1, 10 array(i) = i end do @@ -37,6 +45,7 @@ contains !$acc parallel copyout(array) array = [(-2*i, i = 1, size(array))] !$acc loop gang private(array) + ! { dg-message {sorry, unimplemented: target cannot support alloca} PR65181 { target openacc_nvidia_accel_selected } .-1 } do i = 1, 10 array(i) = 9*i end do @@ -50,6 +59,7 @@ contains !$acc parallel copyout(str) str = "abcdefghij" !$acc loop gang private(str) + ! { dg-message {sorry, unimplemented: target cannot support alloca} PR65181 { target openacc_nvidia_accel_selected } .-1 } do i = 1, 10 str(i:i) = achar(ichar('A') + i) end do |