testcase: Add testcase for PR 117330 [PR117330]
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / stack-check-prologue-13.c
blob1f1a6c497bec9976e296ea31e6dd343627f8d11d
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16 -fomit-frame-pointer -momit-leaf-frame-pointer -fno-stack-protector" } */
3 /* { dg-require-effective-target supports_stack_clash_protection } */
5 void h (void) __attribute__ ((noreturn));
7 void
8 f (void)
10 volatile int x[16384 + 1000];
11 x[30]=0;
12 h ();
15 /* { dg-final { scan-assembler-times {str\s+xzr, \[sp, 1024\]} 1 } } */
16 /* { dg-final { scan-assembler-times {str\s+x30, \[sp\]} 1 } } */
18 /* SIZE is more than 1 guard-size, but only one 64KB page is used, expect only 1
19 probe. Leaf function and omitting leaf pointers, tail call to noreturn which
20 may only omit an epilogue and not a prologue. Checking for LR saving. */