PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr46470.c
blobc66a378a1ad91ecf0465f5ca9931154e9dee93d9
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 -mno-red-zone" } */
8 /* { dg-options "-Os -fomit-frame-pointer -mpreferred-stack-boundary=3 -fasynchronous-unwind-tables" { target ia32 } } */
9 /* ms_abi has reserved stack-region. */
10 /* { dg-skip-if "" { x86_64-*-mingw* } } */
11 void f();
12 void g() { f(); f(); }
14 /* Both stack allocate and deallocate should be converted to push/pop. */
15 /* { dg-final { scan-assembler-not "sp" } } */