| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -mtune-ctrl=^prologue_using_move,^epilogue_using_move" } */ |
| 3 |
/* { dg-additional-options "-fno-PIE" { target ia32 } } */ |
| 4 |
|
| 5 |
extern void foo (void) __attribute__ ((no_caller_saved_registers)); |
| 6 |
|
| 7 |
__attribute__ ((no_callee_saved_registers)) |
| 8 |
void |
| 9 |
bar (void) |
| 10 |
{ |
| 11 |
foo (); |
| 12 |
} |
| 13 |
|
| 14 |
/* { dg-final { scan-assembler-not "push" } } */ |
| 15 |
/* { dg-final { scan-assembler-not "pop" } } */ |
| 16 |
/* { dg-final { scan-assembler-not "call\[\\t \]+_?foo" } } */ |
| 17 |
/* { dg-final { scan-assembler "jmp\[\\t \]+_?foo" } } */ |