2018-03-15 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / interrupt-3.c
blob6b53e1347e38ea15d0ea7065249871f9890f01b2
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mgeneral-regs-only -mno-cld -g" } */
4 typedef unsigned int uword_t __attribute__ ((mode (__word__)));
6 void
7 __attribute__((interrupt))
8 fn (void* frame, uword_t error)
12 /* { dg-final { scan-assembler "(add|lea)(?:l|q)\[\\t \]*\\\$?8.*,\[\\t \]*%\[re\]?sp" { target { ! ia32 } } } } */
13 /* { dg-final { scan-assembler "(addl|leal).*4.*%esp" { target ia32 } } } */
14 /* { dg-final { scan-assembler-times "iret" 1 { target ia32 } } } */
15 /* { dg-final { scan-assembler-times "iretq" 1 { target { ! ia32 } } } } */
16 /* { dg-final { scan-assembler-not "\tcld" } } */