public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7623] Add 'c-c++-common/goacc/kernels-decompose-pr104086-1.c' [PR104086]
@ 2022-03-12 12:33 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-03-12 12:33 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:9781ae3a254a8c17ef4ffa70f21ed1728ff3c707

commit r12-7623-g9781ae3a254a8c17ef4ffa70f21ed1728ff3c707
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Tue Jan 18 17:22:14 2022 +0100

    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.

Diff:
---
 .../goacc/kernels-decompose-pr104086-1.c           | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)

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 00000000000..eab10cf6c72
--- /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;
+  }
+}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-12 12:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-12 12:33 [gcc r12-7623] Add 'c-c++-common/goacc/kernels-decompose-pr104086-1.c' [PR104086] Thomas Schwinge

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).