OSDN Git Service

2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / s390 / pr36822.c
1 /* This used to ICE on s390 due to bug in the definition of the 'R'
2    constraint which replaced the 'm' constraint (together with 'T')
3    while adding z10 support.  */
4
5 /* { dg-do compile } */
6 /* { dg-options "-O" } */
7
8 int boo()
9 {
10   struct {
11     unsigned char pad[4096];
12     unsigned long long bar;
13   } *foo;
14   asm volatile( "" : "=m" (*(unsigned long long*)(foo->bar))
15                 : "a" (&foo->bar));
16 }