PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp80.c
blob2d0004010cb477bc7b529ca66e5c94fbe6ba5e42
1 /* { dg-do link } */
2 /* { dg-options "-O2 -fno-tree-switch-conversion" } */
4 extern void link_error (void);
6 /* Test <<. */
8 void
9 f3 (int s, int b)
11 if (s >> 3 == -2)
12 /* s in range [-16, -9]. */
14 s += 17;
15 /* s in range [1, 8]. */
16 b = (b & 1) + 1;
17 /* b in range [1, 2]. */
18 b = b << s;
19 /* b in range [bmin << smin, bmax << smax],
20 == [1 << 1, 2 << 8]
21 == [2, 512]. */
22 if (b == 1 || b == 513)
23 link_error ();
27 int
28 main ()
30 return 0;