PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp86.c
blobc07f69ebc9d23eb9c56d9ee92175f5c581fcdf87
1 /* PR tree-optimization/54471 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-vrp1" } */
5 #ifdef __SIZEOF_INT128__
6 #define T __int128
7 #else
8 #define T long long
9 #endif
11 void fn1call (void);
12 void fn2call (void);
14 void
15 foo (unsigned T x)
17 if (x > (unsigned T) -3)
18 return;
19 unsigned T y = 2 * x;
20 if (y == 42)
21 fn1call ();
22 else
23 fn2call ();
26 /* { dg-final { scan-tree-dump "fn1call" "vrp1"} } */
27 /* { dg-final { scan-tree-dump "fn2call" "vrp1"} } */