| 1 |
/* { dg-do compile { target { ! x32 } } } */ |
| 2 |
/* The pic register save adds unavoidable stack pointer references. */ |
| 3 |
/* { dg-skip-if "" { ia32 && { ! nonpic } } } */ |
| 4 |
/* These options are selected to ensure 1 word needs to be allocated |
| 5 |
on the stack to maintain alignment for the call. This should be |
| 6 |
transformed to push+pop. We also want to force unwind info updates. */ |
| 7 |
/* { dg-options "-Os -fomit-frame-pointer -fasynchronous-unwind-tables" } */ |
| 8 |
/* { dg-additional-options "-mno-red-zone" { target { ! ia32 } } } */ |
| 9 |
/* { dg-additional-options "-mpreferred-stack-boundary=3" { target ia32 } } */ |
| 10 |
/* ms_abi has reserved stack-region. */ |
| 11 |
/* { dg-skip-if "" { x86_64-*-mingw* } } */ |
| 12 |
void f(); |
| 13 |
void g() { f(); f(); } |
| 14 |
|
| 15 |
/* Both stack allocate and deallocate should be converted to push/pop. */ |
| 16 |
/* { dg-final { scan-assembler-not "sp" } } */ |