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