1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-rtl-loop2_unroll-details-blocks -funroll-loops" } */
3 /* { dg-require-effective-target int32plus } */
7 /* Fails on MIPS16 because equality checks are implemented using XOR.
8 It's unlikely MIPS16 users would want unrolling anyway. */
10 __attribute__((nomips16
))
15 for (i
=0;i
<1000000;i
++)
21 __attribute__((nomips16
))
26 for (i
=0;i
<3000000;i
++)
31 /* { dg-final { scan-rtl-dump-times " upper bound: 999999" 1 "loop2_unroll" } } */
32 /* { dg-final { scan-rtl-dump-not "realistic bound: 999999" "loop2_unroll" } } */
33 /* { dg-final { scan-rtl-dump-times " upper bound: 2999999" 1 "loop2_unroll" } } */
34 /* { dg-final { scan-rtl-dump-times "realistic bound: 2999999" 1 "loop2_unroll" } } */
35 /* { dg-final { scan-rtl-dump-not "Invalid sum" "loop2_unroll" { xfail *-*-* } } } */