Check in right version of stack-check-12.c
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / stack-check-12.c
blob6ae0782f10baafda4c45d5d27d2e41c4a44d736a
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fstack-clash-protection -mtune=generic" } */
3 /* { dg-require-effective-target supports_stack_clash_protection } */
5 __attribute__ ((noreturn)) void exit (int);
7 __attribute__ ((noreturn)) void
8 f (void)
10 asm volatile ("nop" ::: "edi");
11 exit (1);
14 /* { dg-final { scan-assembler-not "or\[ql\]" } } */
15 /* { dg-final { scan-assembler "pushl %esi" { target ia32 } } } */
16 /* { dg-final { scan-assembler "popl %esi" { target ia32 } } }*/
17 /* { dg-final { scan-assembler "pushq %rax" { target ! { ia32 } } } } */
18 /* { dg-final { scan-assembler "popq %rax" { target ! { ia32 } } } }*/