Fix unused warnings.
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.c-torture / compile / 20020120-1.c
blobe049a9720ee1981fad6b7731e74d43a3c634aad3
1 /* This ICEed on IA-32 with -O2 -mcpu=i386, because reload was trying
2 to reload into %sil register. */
4 struct A
6 void *a;
7 unsigned int b, c, d;
8 };
10 struct B
12 struct A *e;
15 void bar (struct A *);
16 void baz (struct A *);
18 static inline unsigned int
19 inl (unsigned int v, unsigned char w, unsigned char x, unsigned char y,
20 unsigned char z)
22 switch (v)
24 case 2:
25 return ((w & 0xf8) << 8) | ((x & 0xfc) << 3) | ((y & 0xf8) >> 3);
26 case 4:
27 return (z << 24) | (w << 16) | (x << 8) | y;
28 default:
29 return 0;
33 void foo (struct B *x, int y, const float *z)
35 struct A *a = x->e;
37 if (y)
39 if (x->e->a)
40 bar (x->e);
42 else
44 unsigned char c[4];
45 unsigned int b;
47 c[0] = z[0]; c[1] = z[1]; c[2] = z[2]; c[3] = z[3];
48 b = inl (a->b, c[0], c[1], c[2], c[3] );
49 if (a->a)
50 bar (a);
51 else
52 baz (a);
53 a->c = b;