| 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 } */ |
| 4 |
|
| 5 |
void |
| 6 |
f (void) |
| 7 |
{ |
| 8 |
volatile int x[16384 + 1000]; |
| 9 |
x[0] = 0; |
| 10 |
} |
| 11 |
|
| 12 |
/* { dg-final { scan-assembler-times {str\s+xzr, \[sp, 1024\]} 1 } } */ |
| 13 |
|
| 14 |
/* SIZE is more than 1 guard-size, but only one 64KB page is used, expect only 1 |
| 15 |
probe. Leaf function and omitting leaf pointers. */ |