libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp-float-relations-2.c
blob76c913021679f09d664e54cad8c3cd50d9437f88
1 // { dg-do compile }
2 // { dg-options "-O2 -fdump-tree-threadfull1-details" }
4 void stuff();
6 void foo (float a, int cond)
8 float x;
10 if (cond)
11 x = a;
12 else
13 x = 8.0;
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();
21 // { dg-final { scan-tree-dump "Registering jump thread: \\(2, 4\\)" "threadfull1" } }