Debian Codegraph @

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

raw
1 // { dg-do compile }
2 // { dg-options "-O2 -fgimple -fdump-tree-threadfull1-details" }
3
4 void stuff();
5
6 void __GIMPLE (ssa,startwith("threadfull1"))
7 foo (float a, float b, int cond)
8 {
9 float x;
10
11 __BB(2):
12 if (cond_3(D) != 0)
13 goto __BB4;
14 else
15 goto __BB3;
16
17 __BB(3):
18 goto __BB4;
19
20 /* We should be able to thread BB2->BB4->BB5 even though we have no knowledge
21 of the NANness of either x_1 or a_5. */
22 __BB(4):
23 x_1 = __PHI (__BB2: a_5(D), __BB3: b_4(D));
24 if (x_1 __UNEQ a_5(D))
25 goto __BB5;
26 else
27 goto __BB6;
28
29 __BB(5):
30 stuff ();
31 goto __BB6;
32
33 __BB(6):
34 return;
35
36 }
37
38 // { dg-final { scan-tree-dump "Registering jump thread: \\(2, 4\\)" "threadfull1" } }