summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/20041109-1.c
blob: 8b072339dd885ec1785a1264bde44c2a7f24b648 (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 { target s390*-*-* } } */
/* { 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;
}

OpenPOWER on IntegriCloud