Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr32573.c
blobd6897fbc22f601dd7fba7d3fc81f905225399482
1 /* PR tree-optimization/32573 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3" } */
5 int
6 foo (void *x, long long *y)
8 char a[256];
9 int i = 0;
10 long long b;
11 int c;
12 int d = 0;
13 int e = 0;
14 unsigned f = 0;
15 b = bar (x);
16 c = (unsigned) b;
17 while (d < b && d < 65557)
19 f = *(unsigned *) &a[0];
20 for (i = c - 4; i > 0; i--)
21 if (a[i + 0] == 0x50
22 && a[i + 1] == 0x4B
23 && a[i + 3] == 0x06)
25 e = 1;
26 break;
29 return !e;