* doc/generic.texi (ANNOTATE_EXPR): Document 3rd operand.
[official-gcc.git] / gcc / testsuite / gcc.dg / unroll-2.c
blob46126c303562e9640ce44ec0d8262e4bcf5be922
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-cunrolli-details=stderr -fno-peel-loops -fno-tree-vrp -fdisable-tree-cunroll -fenable-tree-cunrolli" } */
4 /* Blank lines can occur in the output of
5 -fdump-tree-cunrolli-details=stderr. */
6 /* { dg-allow-blank-lines-in-output 1 } */
8 unsigned a[100], b[100];
9 inline void bar()
11 a[10] = b[10];
14 int foo(void)
16 int i;
17 bar();
18 for (i = 0; i < 2; i++) /* { dg-message "note: loop with 2 iterations completely unrolled" } */
20 a[i]= b[i] + 1;
22 return 1;
25 int foo2(void)
27 int i;
28 for (i = 0; i < 2; i++) /* { dg-message "note: loop with 2 iterations completely unrolled" } */
30 a[i]= b[i] + 1;
32 return 1;
34 /* { dg-prune-output ".*" } */