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-7579] Add 'c-c++-common/goacc/kernels-decompose-pr104774-1.c' [PR104774] Date: Thu, 10 Mar 2022 11:07:10 +0000 (GMT) [thread overview] Message-ID: <20220310110710.0E3A73857C69@sourceware.org> (raw) https://gcc.gnu.org/g:448741533a75862ebf51d8e73eb1dd1f6a47eec5 commit r12-7579-g448741533a75862ebf51d8e73eb1dd1f6a47eec5 Author: Thomas Schwinge <thomas@codesourcery.com> Date: Thu Mar 3 18:00:52 2022 +0100 Add 'c-c++-common/goacc/kernels-decompose-pr104774-1.c' [PR104774] ..., currently XFAILed with 'dg-ice'. PR middle-end/104774 gcc/testsuite/ * c-c++-common/goacc/kernels-decompose-pr104774-1.c: New file. Diff: --- .../goacc/kernels-decompose-pr104774-1.c | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-decompose-pr104774-1.c b/gcc/testsuite/c-c++-common/goacc/kernels-decompose-pr104774-1.c new file mode 100644 index 00000000000..776f4d6befa --- /dev/null +++ b/gcc/testsuite/c-c++-common/goacc/kernels-decompose-pr104774-1.c @@ -0,0 +1,41 @@ +/* { dg-additional-options "--param openacc-kernels=decompose" } */ + +/* { dg-additional-options "-fchecking" } + { dg-ice TODO } */ + +/* { dg-additional-options "-fopt-info-all-omp" } */ + +/* { dg-additional-options "--param=openacc-privatization=noisy" } + Prune a few: uninteresting, and potentially varying depending on GCC configuration (data types): + { dg-prune-output {note: variable 'D\.[0-9]+' declared in block isn't candidate for adjusting OpenACC privatization level: not addressable} } */ + +int arr_0; + +void +foo (void) +{ +#pragma acc kernels /* { dg-line l_compute1 } */ + /* { dg-note {OpenACC 'kernels' decomposition: variable 'k' declared in block requested to be made addressable} {} { target *-*-* } l_compute1 } */ + /* { dg-note {variable 'k' made addressable} {} { target *-*-* } l_compute1 } */ + /* { dg-note {variable 'k' declared in block is candidate for adjusting OpenACC privatization level} {} { target *-*-* } l_compute1 } */ + /* { dg-note {variable 'arr_0\.0' declared in block isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l_compute1 } */ + { + int k; + + /* { dg-note {parallelized loop nest in OpenACC 'kernels' region} {} { target *-*-* } .+1 } */ +#pragma acc loop seq /* { dg-line l_loop_k1 } */ + /* { dg-note {variable 'k' in 'private' clause is candidate for adjusting OpenACC privatization level} {} { target *-*-* } l_loop_k1 } */ + for (k = 0; k < 2; k++) + arr_0 = k; + + /* { dg-note {parallelized loop nest in OpenACC 'kernels' region} {} { target *-*-* } .+1 } */ +#pragma acc loop independent reduction(+: arr_0) /* { dg-line l_loop_k2 } */ + /* { dg-note {variable 'k' in 'private' clause is candidate for adjusting OpenACC privatization level} {} { target *-*-* } l_loop_k2 } */ + for (k = 0; k < 2; k++) + arr_0 += k; + } +} +/* { dg-bogus {error: non-register as LHS of binary operation} {} { xfail *-*-* } .-1 } + { dg-bogus {error: invalid RHS for gimple memory store: 'var_decl'} {} { xfail *-*-* } .-2 } + { dg-allow-blank-lines-in-output 1 } + { 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=20220310110710.0E3A73857C69@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: linkBe 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).