Debian Codegraph @

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

raw
1 // { dg-do compile }
2 // { dg-options "-O2 -fdump-tree-threadfull1-details" }
3
4 void stuff();
5
6 void foo (float a, int cond)
7 {
8 float x;
9
10 if (cond)
11 x = a;
12 else
13 x = 8.0;
14
15 /* We should be able to fold this as false on the path coming out of
16 cond == TRUE conditional. */
17 if (x < a)
18 stuff();
19 }
20
21 // { dg-final { scan-tree-dump "Registering jump thread: \\(2, 4\\)" "threadfull1" } }