Debian Codegraph @

gcc/testsuite/gcc.dg/tree-prof/unroll-1.c

raw
1 /* { dg-options "-O3 -fdump-rtl-loop2_unroll-details-blocks -funroll-loops -fno-peel-loops" } */
2 void abort ();
3
4 int a[1000];
5 int
6 __attribute__ ((noinline))
7 t()
8 {
9 int i;
10 for (i=0;i<1000;i++)
11 if (!a[i])
12 return 1;
13 abort ();
14 }
15 int
16 main()
17 {
18 int i;
19 for (i=0;i<1000;i++)
20 t();
21 return 0;
22 }
23 /* { dg-final-use-not-autofdo { scan-rtl-dump "considering unrolling loop with constant number of iterations" "loop2_unroll" } } */
24 /* { dg-final-use-not-autofdo { scan-rtl-dump-not "Invalid sum" "loop2_unroll" } } */