gcc/
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / 20030129-1.c
blob1cbd8b4829755e3c3be88d906c77a0571f6ffcc0
1 /* This used to ICE due to a reload bug on s390*. */
3 /* { dg-do compile } */
4 /* { dg-options "-O2" } */
6 int f (unsigned int);
7 void g (void *);
9 void test (void *p, void *dummy)
11 unsigned int flags = 0;
13 if (dummy)
14 g (dummy);
16 if (p)
17 flags |= 0x80000000;
19 asm volatile ("" : : : "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12");
21 if (dummy)
22 g (dummy);
24 if (p)
26 flags |= 0x20000000|0x80000000;
28 if (!f (0))
29 flags &= ~0x80000000;
32 f (flags);
34 if (dummy)
35 g (dummy);