[RTL ifcvt] PR 67786, 67787: Check that intermediate instructions in the basic block...
[official-gcc.git] / gcc / testsuite / gcc.dg / pr32573.c
blob190f5dbac691bd512661602eaf8c952bfa9458ad
1 /* PR tree-optimization/32573 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3" } */
5 long long bar (void *);
7 int
8 foo (void *x, long long *y)
10 char a[256];
11 int i = 0;
12 long long b;
13 int c;
14 int d = 0;
15 int e = 0;
16 unsigned f = 0;
17 b = bar (x);
18 c = (unsigned) b;
19 while (d < b && d < 65557)
21 f = *(unsigned *) &a[0];
22 for (i = c - 4; i > 0; i--)
23 if (a[i + 0] == 0x50
24 && a[i + 1] == 0x4B
25 && a[i + 3] == 0x06)
27 e = 1;
28 break;
31 return !e;