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

#define SIZE 65 * 1024
#include "stack-check-prologue.h"

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

/* SIZE is more than guard-size - 1Kb and remainder is equal to 1kB,
   1 probe expected.  */