summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/s390/pr36822.c
blob: fb021f21490ae86ee0f07bd73bb379dde3503714 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* This used to ICE on s390 due to bug in the definition of the 'R'
   constraint which replaced the 'm' constraint (together with 'T')
   while adding z10 support.  */

/* { dg-do compile } */
/* { dg-options "-O" } */

int boo()
{
  struct {
    unsigned char pad[4096];
    unsigned long bar;
  } *foo;
  asm volatile( "" : "=m" (*(unsigned long long*)(foo->bar))
		: "a" (&foo->bar));
}