2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr71148.c
blob6aa4920d1d9fd8858cc5183bf3169279cde1dd33
1 /* PR rtl-optimization/71148 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3 -funroll-loops" } */
5 int rh, ok, kq, fu;
7 void
8 js (int cs)
10 rh = fu;
11 if (fu != 0)
13 cs /= 3;
14 if (cs <= 0)
16 int z9;
17 for (z9 = 0; z9 < 2; ++z9)
19 z9 += cs;
20 ok += z9;
21 fu += ok;
27 void
28 vy (int s3)
30 int yo, g2 = 0;
31 sd:
32 js (g2);
33 for (yo = 0; yo < 2; ++yo)
35 if (fu != 0)
36 goto sd;
37 kq += (s3 != (g2 ? s3 : 0));
38 for (s3 = 0; s3 < 72; ++s3)
39 g2 *= (~0 - 1);
40 g2 -= yo;
42 for (fu = 0; fu < 18; ++fu)
43 for (yo = 0; yo < 17; ++yo)
44 if (g2 < 0)
45 goto sd;