summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/stack-check-prologue-12.c
blob: ece68003ade48799a0817c103a307a30537d6872 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16 -fomit-frame-pointer -momit-leaf-frame-pointer" } */
/* { dg-require-effective-target supports_stack_clash_protection } */

void
f (void)
{
  volatile int x[16384 + 1000];
  x[0] = 0;
}

/* { dg-final { scan-assembler-times {str\s+xzr, \[sp, 1024\]} 1 } } */

/* SIZE is more than 1 guard-size, but only one 64KB page is used, expect only 1
   probe.  Leaf function and omitting leaf pointers.  */