Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / gomp / workshare-reduction-33.c
blobd39467ed333439025cc95196b75d39da9d0a6615
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fopenmp -fdump-tree-optimized" } */
3 /* { dg-final { scan-tree-dump-times "__builtin_GOMP_loop_start \[^\n\r]*, (?:2147483649|-2147483647), 0, 0B, 0B, " 1 "optimized" } } */
4 /* { dg-final { scan-tree-dump-times "__builtin_GOMP_loop_end " 1 "optimized" } } */
5 /* { dg-final { scan-tree-dump-not "__builtin_GOMP_loop_ull\[^\n\r]*_next " "optimized" } } */
6 /* { dg-final { scan-tree-dump-times "__builtin_GOMP_workshare_task_reduction_unregister \\(0\\)" 1 "optimized" } } */
7 /* { dg-final { scan-tree-dump-times "__builtin_GOMP_parallel " 1 "optimized" } } */
9 unsigned long long int j;
10 void bar (unsigned long long int *);
12 void
13 foo (unsigned long long int a, unsigned long long int b, unsigned long long int c)
15 unsigned long long int i;
16 #pragma omp parallel
17 #pragma omp for reduction (task, *: j) schedule (static, 2)
18 for (i = a; i < b; i += c)
20 j++;
21 bar (&j);