| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -march=rv64gc -mabi=lp64d -fstack-clash-protection -fno-asynchronous-unwind-tables -fno-unwind-tables" } */ |
| 3 |
/* { dg-skip-if "" { *-*-* } { "-g"} } */ |
| 4 |
/* { dg-require-effective-target supports_stack_clash_protection } */ |
| 5 |
|
| 6 |
#define ARG32(X) X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X |
| 7 |
#define ARG384(X) ARG32(X),ARG32(X),ARG32(X),ARG32(X),ARG32(X),ARG32(X), ARG32(X),ARG32(X),ARG32(X),ARG32(X),ARG32(X),ARG32(X) |
| 8 |
void out1(ARG384(__int128)); |
| 9 |
int t1(int); |
| 10 |
|
| 11 |
int t3(int x) |
| 12 |
{ |
| 13 |
if (x < 1000) |
| 14 |
return t1 (x) + 1; |
| 15 |
|
| 16 |
out1 (ARG384(1)); |
| 17 |
return 0; |
| 18 |
} |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
/* This test creates a large (> 1k) outgoing argument area that needs |
| 23 |
to be probed. We don't test the exact size of the space or the |
| 24 |
exact offset to make the test a little less sensitive to trivial |
| 25 |
output changes. */ |
| 26 |
/* { dg-final { scan-assembler-times "sub\\tsp,sp,t0\\n\\tsd\\tzero,1024\\(sp\\)" 1 } } */ |