gcc/testsuite/gcc.dg/tree-ssa/vrp-float-abs-1.c
raw| 1 | // { dg-do compile } |
| 2 | // { dg-options "-O2 -fno-thread-jumps -fdump-tree-evrp" } |
| 3 | |
| 4 | void link_error (); |
| 5 | |
| 6 | void |
| 7 | foo (double x, double y) |
| 8 | { |
| 9 | if (x > y && __builtin_signbit (y) == 0) |
| 10 | { |
| 11 | // y == +INF is impossible. |
| 12 | if (__builtin_isinf (y)) |
| 13 | link_error (); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | // { dg-final { scan-tree-dump-not "link_error" "evrp" } } |