1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-cunroll-details -fdump-rtl-loop2_unroll-details" } */
11 for (unsigned long i
= 1; i
<= 8; ++i
)
13 /* { dg-final { scan-tree-dump "11:.*: note: loop with 7 iterations completely unrolled" "cunroll" } } */
16 for (unsigned long i
= 1; i
<= 7; ++i
)
18 /* { dg-final { scan-tree-dump "16:.*: note: loop with 6 iterations completely unrolled" "cunroll" } } */
21 for (unsigned long i
= 1; i
<= 15; ++i
)
23 /* { dg-final { scan-rtl-dump "21:.*: note: loop unrolled 7 times" "loop2_unroll" } } */
26 for (unsigned long i
= 1; i
<= j
; ++i
)
28 /* { dg-final { scan-rtl-dump "26:.*: note: loop unrolled 7 times" "loop2_unroll" } } */
31 for (unsigned long i
= 1; i
<= j
; ++i
)
33 /* { dg-final { scan-rtl-dump "31:.*: note: loop unrolled 3 times" "loop2_unroll" } } */
40 /* { dg-final { scan-rtl-dump "3\[79\]:.*: note: loop unrolled 2 times" "loop2_unroll" } } */