2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20010605-3.c
bloba43c0b1e462e1c9b039800de04e7433584473e00
1 struct A { unsigned long buf[100]; };
2 int foo(unsigned int *x)
4 unsigned int a;
6 if (!x)
7 return -22;
9 #ifdef __ia64__
10 if (({
11 register long b asm ("r8") = 0;
12 register long c asm ("r9") = 0;
13 asm ("" : "=r"(c), "=r"(b) : "m"(*(struct A *)x), "1"(b));
14 a = (unsigned int) c;
15 b; }))
16 return -14;
17 #endif
19 return 0;