aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/s390/20041109-1.c
blob: bf768439cd1187e6efdd834e0ddb75cc3176310d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* This used to ICE due to a literal pool handling bug on s390x.  */

/* { dg-do compile } */
/* { dg-options "-O2 -fno-omit-frame-pointer" } */

static struct table { int x; } table[3];

int test (void)
{
  struct table *t;

  for (t = table; t < &table[3]; t++)
    asm volatile ("" : : : "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "12");

  for (t = table; t < &table[3]; t++)
    if (t->x)
      return 1;

  return 0;
}