2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / interrupt-2.c
blob3899d529a5f4353784791e575c8029b541b4c279
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mgeneral-regs-only -mno-cld -Wall -g" } */
4 void
5 __attribute__((interrupt))
6 fn (void *frame)
10 typedef void (*fn_t) (void *) __attribute__((interrupt));
12 fn_t fns[] =
14 fn,
17 /* { dg-final { scan-assembler-not "add(l|q)\[\\t \]*\\$\[0-9\]*,\[\\t \]*%\[re\]?sp" } } */
18 /* { dg-final { scan-assembler-times "iret" 1 { target ia32 } } } */
19 /* { dg-final { scan-assembler-times "iretq" 1 { target { ! ia32 } } } } */
20 /* { dg-final { scan-assembler-not "\tcld" } } */