PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20051110-2.c
blob57bfeeb03bb963de8fe9571316cc19b3fe2af26e
1 void add_unwind_adjustsp (long);
2 void abort (void);
4 unsigned char bytes[5];
6 int flag;
8 void
9 add_unwind_adjustsp (long offset)
11 int n;
12 unsigned long o;
14 o = (long) ((offset - 0x204) >> 2);
16 n = 0;
20 bytes[n] = o & 0x7f;
21 o >>= 7;
22 if (o)
24 bytes[n] |= 0x80;
25 if (flag)
26 goto a;
28 n++;
30 while (o);
33 int main(void)
35 add_unwind_adjustsp (4132);
36 if (bytes[0] != 0x88 || bytes[1] != 0x07)
37 abort ();
38 return 0;