| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16 -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-stack-protector" } */ |
| 3 |
/* { dg-require-effective-target supports_stack_clash_protection } */ |
| 4 |
|
| 5 |
typedef unsigned __attribute__((mode(DI))) uint64_t; |
| 6 |
|
| 7 |
extern void arf (uint64_t *, uint64_t *); |
| 8 |
void |
| 9 |
frob () |
| 10 |
{ |
| 11 |
uint64_t num[10000]; |
| 12 |
uint64_t den[10000]; |
| 13 |
arf (den, num); |
| 14 |
} |
| 15 |
|
| 16 |
/* This verifies that the scheduler did not break the dependencies |
| 17 |
by adjusting the offsets within the probe and that the scheduler |
| 18 |
did not reorder around the stack probes. */ |
| 19 |
/* { dg-final { scan-assembler-times {sub\tsp, sp, #65536\n\tstr\txzr, \[sp, 1024\]} 2 } } */ |
| 20 |
/* There is some residual allocation, but we don't care about that. Only that it's not probed. */ |
| 21 |
/* { dg-final { scan-assembler-times {str\txzr, } 2 } } */ |
| 22 |
|
| 23 |
|
| 24 |
|