1 /* { dg-do run { target i?86-*-linux* } } */
2 /* { dg-options "-O2 -fomit-frame-pointer" } */
4 extern void abort (void);
5 extern void exit (int);
10 struct { struct { int a; } a; struct t { struct t *a, *b; } b; } c;
13 int bar(int (*fn)(void *), void *arg, unsigned long flags)
23 void do_check (struct s *) asm ("do_check") __attribute__((regparm(1)));
25 void __attribute__((regparm(1))) do_check(struct s *x)
27 if (x->a.a || x->b || x->c.a.a)
29 if (x->c.b.a != &x->c.b || x->c.b.b != &x->c.b)
37 NT "pushl %eax; pushl %ebx; pushl %ecx; pushl %edx; pushl %esi; pushl %edi"
39 NT "pushl $0; pushl $0; pushl $0; pushl $0; pushl $0"
40 NT "pushl $0; pushl $0; pushl $0; pushl $0; pushl $0"
45 NT "popl %eax; popl %eax; popl %eax; popl %eax; popl %eax"
46 NT "popl %eax; popl %eax; popl %eax; popl %eax; popl %eax"
48 NT "popl %edi; popl %esi; popl %edx; popl %ecx; popl %ebx; popl %eax"
52 extern inline void do_asm(struct s * x)
54 asm volatile("call ___checkme" : : "c" (x) : "memory");
59 struct s x = { { 0 }, 0, { { 0 }, { &x.c.b, &x.c.b } } };