* gcc.target/i386/pr70021.c: Add -mtune=skylake.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / 20011107-1.c
blobc1cfe88a4e0f8bdc11ae61c9b4bc8ff2f27f64a5
1 /* { dg-do compile } */
2 /* { dg-require-effective-target ia32 } */
3 /* { dg-options "-O2 -mtune=k6" } */
5 void
6 foo (unsigned char *x, const unsigned char *y)
8 int a = 6;
9 unsigned char *b;
10 for (;;)
12 unsigned char *c = x;
14 while (1)
16 if (c + 2 < y)
17 c += 3;
18 else
19 break;
21 b = x + a;
22 if (*c == 4 || *c == 5)
24 unsigned char d = c[2];
26 if (b[3] == 7 || b[3] == 8)
28 int e = b[3] == 8;
29 if (d < b[4] * 8 && b[5 + d / 8] & (1 << (d % 8)))
30 e = !e;
31 if (!e)
32 x[-3] = 26;
35 else if (*c == 7 && b[3] == 8)
37 int f;
38 for (f = 0; f < (int) c[1]; f++)
39 if (!(c[2 + f] == 0))
40 break;
41 if (f == c[1])
42 x[-3] = 26;
44 x -= 2;