Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/vrp-float-relations-1.c

raw
1 // { dg-do compile }
2 // { dg-options "-O2 -fdisable-tree-fre1 -fdump-tree-evrp" }
3
4 void link_error ();
5 void func ();
6
7 void foo1 (float x, float y)
8 {
9 if (x != y)
10 if (x == y)
11 link_error();
12 }
13
14 void foo2 (float a, float b)
15 {
16 if (a != b)
17 // This conditional should be folded away.
18 if (a != b)
19 func ();
20 }
21
22 // { dg-final { scan-tree-dump-not "link_error" "evrp" } }
23 // { dg-final { scan-tree-dump-times "if \\(a_2\\(D\\) != b_3\\(D\\)" 1 "evrp" } }