libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp-float-relations-6.c
bloba75ae5d64fff5ac415b82cba1dd5f43a228c4a58
1 // { dg-do compile }
2 // { dg-options "-O2 -fgimple -fdump-tree-evrp" }
4 void link_error();
6 void __GIMPLE (ssa,startwith("evrp"))
7 foo1 (float x, float y)
9 __BB(2):
10 if (x_4(D) >= y_5(D))
11 goto __BB5;
12 else
13 goto __BB3;
15 __BB(3):
16 // Relation at this point is VREL_LT.
17 if (x_4(D) __UNLT y_5(D))
18 goto __BB5;
19 else
20 goto __BB4;
22 __BB(4):
23 link_error ();
24 goto __BB5;
26 __BB(5):
27 return;
30 void __GIMPLE (ssa,startwith("evrp"))
31 foo2 (float x, float y)
33 __BB(2):
34 if (x_4(D) >= y_5(D))
35 goto __BB5;
36 else
37 goto __BB3;
39 __BB(3):
40 // Relation at this point is VREL_LT.
41 if (x_4(D) __UNLE y_5(D))
42 goto __BB5;
43 else
44 goto __BB4;
46 __BB(4):
47 link_error ();
48 goto __BB5;
50 __BB(5):
51 return;
54 // { dg-final { scan-tree-dump-not "link_error" "evrp" } }