PR middle-end/83654
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / stack-check-18.c
blob6dbff4402da1288a1c3185d4367c471c79c2905b
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fstack-clash-protection -mtune=generic -fdump-rtl-expand" } */
3 /* { dg-require-effective-target supports_stack_clash_protection } */
5 int f1 (char *);
7 int
8 f2 (void)
10 const int size = 4096;
11 char buffer[size];
12 return f1 (buffer);
15 /* So we want to verify that at expand time that we probed the main
16 VLA allocation as well as the residuals. Then we want to verify
17 there was only one probe in the final assembly (implying the
18 residual probe was optimized away). */
19 /* { dg-final { scan-rtl-dump-times "allocation and probing in loop" 1 "expand" } } */
20 /* { dg-final { scan-rtl-dump-times "allocation and probing residuals" 1 "expand" } } */
22 /* { dg-final { scan-assembler-times "or\[ql\]" 1 } } */