1 /* { dg-do compile } */
2 /* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-optimized --param max-unswitch-insns=100" } */
5 void foo (int a
, int b
, int c
, int n
)
7 for (int i
= 0; i
< n
; ++i
)
18 /* Verify we can unswitch all permutations of the predicates. */
19 /* { dg-final { scan-tree-dump-times "unswitching loop . on .if. with condition" 7 "unswitch" } } */
20 /* { dg-final { scan-tree-dump "unswitching loop . on .if. with condition: a" "unswitch" } } */
21 /* { dg-final { scan-tree-dump "unswitching loop . on .if. with condition: b" "unswitch" } } */
22 /* { dg-final { scan-tree-dump "unswitching loop . on .if. with condition: c" "unswitch" } } */