Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-thread-16.c
blob78c349ca14d99ee9648c988aa376727c74fa15c2
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-vrp1-details" } */
4 /* We should thread the if (exp == 2) conditional on the
5 the path from inside the if (x) THEN arm. It is the only
6 jump threading opportunity in this code. */
8 /* { dg-final { scan-tree-dump-times "Threaded" 1 "vrp1" } } */
11 extern void abort (void) __attribute__ ((__nothrow__, __leaf__))
12 __attribute__ ((__noreturn__));
14 int x;
17 int code;
18 void
19 do_jump (int exp)
21 switch (code)
23 case 4:
24 if ((exp) == 1)
25 goto normal;
26 if (x)
28 if (exp != 0)
29 abort ();
31 if ((exp) == 2)
32 goto normal;
33 case 3:
34 abort ();
36 normal: