1/* This caused an ICE on s390x due to a reload inheritance bug.  */
2
3/* { dg-do compile } */
4/* { dg-options "-O2" } */
5
6struct point { double x, y; };
7extern void use (struct point);
8
9void test (struct point *pc, struct point p1)
10{
11  struct point p0 = *pc;
12
13  if (p0.x == p1.x && p0.y == p1.y)
14    use (p0);
15
16  asm ("" : : : "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10");
17
18  p1.y -= p0.y;
19
20  use (p0);
21  use (p1);
22}
23
24