* gcc.dg/ucnid-[23456].c: XFAIL on AIX.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20000720-1.c
blob89b570d750adc87a3ff7ddbdbc903383f56b5dd0
1 /* { dg-do compile { target i?86-*-* } } */
2 /* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */
3 /* { dg-options "-mpreferred-stack-boundary=2 -march=i586 -O2 -fomit-frame-pointer" } */
5 extern void *foo(void *a, const void *b, unsigned c);
7 extern inline void *
8 bar(void *a, const void *b, unsigned c)
10 int d0, d1, d2;
11 __asm__ __volatile__(
12 "" :
13 "=&c" (d0), "=&D" (d1), "=&S" (d2) :
14 "0" (c/4), "q" (c), "1" (a), "2" (b) :
15 "memory");
16 return a;
19 typedef struct {
20 unsigned char a;
21 unsigned b : 2;
22 unsigned c : 4;
23 unsigned d : 2;
24 } *baz;
26 static int
27 dead(unsigned short *v, char *w, unsigned char *x, int y, int z)
29 int i = 0;
30 unsigned short j = *v;
32 while (y > 0) {
33 ((baz)x)->a = j;
34 ((baz)x)->b = 0;
35 ((baz)x)->c = 0;
36 ((baz)x)->d = 0;
37 __builtin_constant_p(i) ? foo(x, w, i) : bar(x, w, i);
39 return z - y;