1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fstack-clash-protection -fdump-rtl-pro_and_epilogue -fno-optimize-sibling-calls --param stack-clash-protection-probe-interval=12 --param stack-clash-protection-guard-size=12" } */
3 /* { dg-require-effective-target supports_stack_clash_protection } */
6 double f2 (double, double);
1000 double d989
= f1 ();
1001 double d990
= f1 ();
1002 double d991
= f1 ();
1003 double d992
= f1 ();
1004 double d993
= f1 ();
1005 double d994
= f1 ();
1006 double d995
= f1 ();
1007 double d996
= f1 ();
1008 double d997
= f1 ();
1009 double d998
= f1 ();
1010 double d999
= f1 ();
2016 /* { dg-final { scan-rtl-dump-times "Stack clash inline probes" 1 "pro_and_epilogue" } } */
2017 /* { dg-final { scan-rtl-dump-times "Stack clash residual allocation in prologue" 1 "pro_and_epilogue" } } */
2018 /* { dg-final { scan-rtl-dump-times "Stack clash not noreturn" 1 "pro_and_epilogue" } } */
2021 /* { dg-final { scan-rtl-dump-times "Stack clash no frame pointer needed" 1 "pro_and_epilogue" { target { ! frame_pointer_for_non_leaf } } } } */
2022 /* { dg-final { scan-rtl-dump-times "Stack clash frame pointer needed" 1 "pro_and_epilogue" { target { frame_pointer_for_non_leaf } } } } */