1 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
2 /* { dg-skip-if "PR81210 sp not aligned to 16 bytes" { *-*-darwin* } } */
3 /* { dg-options "-mgeneral-regs-only" } */
7 extern void exit (int);
9 typedef unsigned int uword_t
__attribute__ ((mode (__word__
)));
10 typedef int aligned
__attribute__((aligned(64)));
14 #define FLAGS 0x12345673
18 #define STRING(x) XSTRING(x)
20 #define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname)
21 #define ASMNAME2(prefix, cname) XSTRING (prefix) cname
23 struct interrupt_frame
33 check_int (int *i
, int align
)
36 if ((((ptrdiff_t) i
) & (align
- 1)) != 0)
41 __attribute__((interrupt
, used
))
43 fn (struct interrupt_frame
*frame
)
46 if (check_int (&i
, __alignof__(i
)) != i
)
53 if (FLAGS
!= frame
->flags
)
66 asm ("push $" STRING (SS
) "; \
67 push $" STRING (SP
) "; \
68 push $" STRING (FLAGS
) "; \
69 push $" STRING (CS
) "; \
70 push $" STRING (IP
) "; \
71 jmp " ASMNAME ("fn"));