Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/gomp/workshare-reduction-6.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -fopenmp -fdump-tree-optimized" } */ /* { dg-final { scan-tree-dump-times "__builtin_GOMP_loop_start \[^\n\r]*, (?:2147483649|-2147483647), 0, 0B, 0B, " 1 "optimized" } } */ /* { dg-final { scan-tree-dump-times "__builtin_GOMP_loop_end " 1 "optimized" } } */ /* { dg-final { scan-tree-dump-not "__builtin_GOMP_loop\[^\n\r]*_next " "optimized" } } */ /* { dg-final { scan-tree-dump-times "__builtin_GOMP_workshare_task_reduction_unregister \\(0\\)" 1 "optimized" } } */ /* { dg-final { scan-tree-dump-times "__builtin_GOMP_parallel " 1 "optimized" } } */ int j; void bar (int *); void foo (int a, int b, int c) { int i; #pragma omp parallel #pragma omp for reduction (task, *: j) schedule (monotonic: static) for (i = a; i < b; i += c) { j++; bar (&j); } }