PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / stack-check-12.c
blob74d3a26cad1f2592a558fcd6045bdbebb122cce7
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fstack-clash-protection -mtune=generic -fomit-frame-pointer" } */
3 /* { dg-require-effective-target supports_stack_clash_protection } */
5 __attribute__ ((noreturn)) void exit (int);
7 __attribute__ ((noreturn)) void
8 f (void)
10 exit (1);
13 /* { dg-final { scan-assembler-not "or\[ql\]" } } */
14 /* { dg-final { scan-assembler "pushl %esi" { target ia32 } } } */
15 /* { dg-final { scan-assembler "popl %esi" { target ia32 } } }*/
16 /* { dg-final { scan-assembler "pushq %rax" { target { ! ia32 } } } } */
17 /* { dg-final { scan-assembler "popq %rax" { target { ! ia32 } } } }*/