1 /* PRs target/15569, rtl-optimization/15681 */
2 /* { dg-do compile } */
3 /* { dg-options "-Os -frename-registers" } */
4 /* { dg-options "-mconstant-gp -Os -frename-registers" { target ia64-*-* } } */
6 struct S { struct S *a, *b; };
7 struct T { struct S e; unsigned long a; int b, c; void *d; } f;
9 unsigned long f1 (unsigned long);
10 void f2 (int, struct T *);
12 unsigned long volatile g;
17 f1 (f1 (((unsigned long) g - p->a) >> 20));
25 for (g = p = &f; (g = p = (struct T *) (g->e.a)) != &f;)