Debian Codegraph @

gcc/testsuite/c-c++-common/gomp/unroll-3.c

raw
1 /* { dg-additional-options "-O2 -fdump-tree-cunroll -fdump-tree-original -fdump-tree-gimple" } */
2
3 extern void dummy (int);
4
5 void
6 test1 (void)
7 {
8 #pragma omp unroll full
9 for (int i = 0; i < 10; i++)
10 dummy (i);
11 }
12
13 /* Loop should be removed with 10 copies of the body remaining */
14 /* { dg-final { scan-tree-dump-times "dummy" 10 "cunroll" } } */
15 /* { dg-final { scan-tree-dump "#pragma omp unroll" "original" } } */
16 /* { dg-final { scan-tree-dump-not "#pragma omp" "gimple" } } */