Merged with mainline at revision 126347.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20030129-1.c
blob0b745a901b1d0803ab3db83911ecbd1dd2337534
1 /* This used to ICE due to a reload bug on s390*. */
3 /* { dg-do compile { target s390*-*-* } } */
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);