1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-evrp -fdump-tree-fre1" } */
6 int foo1 (int x
, int y
)
8 if (y
< 10) return bar ();
9 if (x
> 9) return bar ();
14 int foo2 (int x
, int y
)
16 if (y
< 10) return bar ();
17 if (x
> 9) return bar ();
22 /* We expect to optimiz min/max in EVRP */
24 /* { dg-final { scan-tree-dump-times "MIN_EXPR" 1 "fre1" } } */
25 /* { dg-final { scan-tree-dump-times "MAX_EXPR" 1 "fre1" } } */
26 /* { dg-final { scan-tree-dump-not "MIN_EXPR" "evrp" } } */
27 /* { dg-final { scan-tree-dump-not "MAX_EXPR" "evrp" } } */