1/* This used to ICE due to a literal pool handling bug on s390x.  */
2
3/* { dg-do compile } */
4/* { dg-options "-O2 -fno-omit-frame-pointer" } */
5
6static struct table { int x; } table[3];
7
8int test (void)
9{
10  struct table *t;
11
12  for (t = table; t < &table[3]; t++)
13    asm volatile ("" : : : "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "12");
14
15  for (t = table; t < &table[3]; t++)
16    if (t->x)
17      return 1;
18
19  return 0;
20}
21
22