aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/stack-check-12.c
blob: 74d3a26cad1f2592a558fcd6045bdbebb122cce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection -mtune=generic -fomit-frame-pointer" } */
/* { dg-require-effective-target supports_stack_clash_protection } */

__attribute__ ((noreturn)) void exit (int);

__attribute__ ((noreturn)) void
f (void)
{
  exit (1);
}

/* { dg-final { scan-assembler-not "or\[ql\]" } } */
/* { dg-final { scan-assembler "pushl	%esi" { target ia32 } } } */
/* { dg-final { scan-assembler "popl	%esi" { target ia32 } } }*/
/* { dg-final { scan-assembler "pushq	%rax" { target { ! ia32 } } } } */
/* { dg-final { scan-assembler "popq	%rax" { target { ! ia32 } } } }*/