1 // RUN: %libomp-compile-and-run
3 // Non-rectangular loop collapsing.
5 // Nested loops conform to OpenMP 5.2 standard,
6 // inner loops bounds may depend on outer loops induction variables.
10 for (i = iLB; i <= iUB; i += iStep) \
11 for (j = i + jA0; j <= i + jB0; j += jStep) \
12 for (k = j + kA0; k <= j + kB0; k += kStep)
14 #include "collapse_test.inc"
27 PRINTF("\nOne off iLB=%d; iUB=%d; jA0=%d; jB0=%d; kA0=%d; kB0=%d; iStep=%d; "
28 "jStep=%d; kStep=%d;\n",
29 iLB
, iUB
, jA0
, jB0
, kA0
, kB0
, iStep
, jStep
, kStep
);