PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / interrupt-10.c
bloba88e948ec4ca7fae3c7a350a4b597c184c940201
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mgeneral-regs-only -mno-cld" } */
4 extern int check_int (int *i, void *, int align);
5 typedef int aligned __attribute__((aligned(64)));
7 __attribute__((interrupt))
8 void
9 foo (void *frame)
11 aligned j;
12 if (check_int (frame, &j, __alignof__(j)))
13 __builtin_abort ();
16 /* { dg-final { scan-assembler-times "and\[lq\]?\[^\\n\]*-64,\[^\\n\]*sp" 1 } } */
17 /* { dg-final { scan-assembler-times "iret" 1 { target ia32 } } } */
18 /* { dg-final { scan-assembler-times "iretq" 1 { target { ! ia32 } } } } */
19 /* { dg-final { scan-assembler-times "\tcld" 1 } } */