1 /* { dg-do compile { target *-*-linux* } } */
2 /* { dg-options "-O2 -mgeneral-regs-only -mno-cld -mno-iamcu -mpush-args -mno-accumulate-outgoing-args" } */
4 extern void bar (int) __attribute__ ((no_caller_saved_registers
));
7 __attribute__ ((interrupt
))
14 __attribute__ ((interrupt
))
20 /* { dg-final { scan-assembler-not "movups\[\\t .\]*%(x|y|z)mm\[0-9\]+" } } */
21 /* { dg-final { scan-assembler-not "(push|pop)(l|q)\[\\t \]*%(r|e)(a|b|c|d)x" { target nonpic } } } */
22 /* { dg-final { scan-assembler-not "(push|pop)l\[\\t \]*%edi" { target ia32 } } } */
23 /* { dg-final { scan-assembler-not "(push|pop)(l|q)\[\\t \]*%(r|e)si" } } */
24 /* { dg-final { scan-assembler-not "(push|pop)q\[\\t \]*%r\[8-9\]+" { target { ! ia32 } } } } */
25 /* { dg-final { scan-assembler-not "(push|pop)q\[\\t \]*%r1\[0-5\]+" { target { ! ia32 } } } } */
26 /* { dg-final { scan-assembler-times "push(?:l|q)\[\\t \]*%(?:r|e)bp" 2 } } */
27 /* { dg-final { scan-assembler-times "leave" 2 { target ia32 } } } */
28 /* { dg-final { scan-assembler-times "pushq\[\\t \]*%rdi" 2 { target { ! ia32 } } } } */
29 /* { dg-final { scan-assembler-times "movq\[\\t \]*-8\\(%(?:r|e)bp\\),\[\\t \]*%rdi" 2 { target { { ! ia32 } && nonpic } } } } */
30 /* { dg-final { scan-assembler-times "iret" 2 { target ia32 } } } */
31 /* { dg-final { scan-assembler-times "iretq" 2 { target { ! ia32 } } } } */
32 /* { dg-final { scan-assembler-times "\tcld" 2 } } */