Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / vrp-min-max-3.c
blob1fffee7bbd97da7e66393151442f88095a04f515
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-evrp -fdump-tree-fre1" } */
4 int bar (void);
6 int foo1 (int x, int y)
8 if (y < 10) return bar ();
9 if (x > 9) return bar ();
11 return x < y ? x : y;
14 int foo2 (int x, int y)
16 if (y < 10) return bar ();
17 if (x > 9) return bar ();
19 return x > y ? x : y;
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" } } */