diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2022-01-18 17:22:14 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2022-03-12 12:58:48 +0100 |
commit | 9781ae3a254a8c17ef4ffa70f21ed1728ff3c707 (patch) | |
tree | f8113047827b4de5f770cdc7f5fe45b41b47089d | |
parent | 828335beb77676acffb5911e575672cb55beb2e9 (diff) | |
download | gcc-9781ae3a254a8c17ef4ffa70f21ed1728ff3c707.zip gcc-9781ae3a254a8c17ef4ffa70f21ed1728ff3c707.tar.gz gcc-9781ae3a254a8c17ef4ffa70f21ed1728ff3c707.tar.bz2 |
Add 'c-c++-common/goacc/kernels-decompose-pr104086-1.c' [PR104086]
..., currently XFAILed with 'dg-ice', as it runs into
'gcc/omp-low.cc:lower_omp_target':
13125 else if (is_gimple_reg (var))
13126 {
13127 gcc_assert (offloaded);
This means, the recent PR100280 etc. changes are still not sufficient.
gcc/testsuite/
PR middle-end/104086
* c-c++-common/goacc/kernels-decompose-pr104086-1.c: New file.
-rw-r--r-- | gcc/testsuite/c-c++-common/goacc/kernels-decompose-pr104086-1.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-decompose-pr104086-1.c b/gcc/testsuite/c-c++-common/goacc/kernels-decompose-pr104086-1.c new file mode 100644 index 0000000..eab10cf --- /dev/null +++ b/gcc/testsuite/c-c++-common/goacc/kernels-decompose-pr104086-1.c @@ -0,0 +1,25 @@ +/* Reduced from 'libgomp.oacc-c-c++-common/declare-vla.c'. */ + +/* { dg-additional-options "-fchecking" } + { dg-ice TODO } + { dg-prune-output {during GIMPLE pass: omplower} } */ + +/* { dg-additional-options "--param openacc-kernels=decompose" } */ + +/* { dg-additional-options "-fopt-info-all-omp" } */ + +/* { dg-additional-options "--param=openacc-privatization=noisy" } */ + +void +foo (void) +{ +#pragma acc data /* { dg-line l_data1 } */ + /* { dg-bogus {note: variable 'i' declared in block isn't candidate for adjusting OpenACC privatization level: not addressable} {TODO 'data'} { xfail *-*-* } l_data1 } */ + { + int i; + +#pragma acc kernels + /* { dg-note {beginning 'gang-single' part in OpenACC 'kernels' region} {} { target *-*-* } .+1 } */ + i = 0; + } +} |