(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
stack-check-14.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
       3  /* { dg-require-effective-target supports_stack_clash_protection } */
       4  
       5  int t1(int);
       6  
       7  int t2(int x)
       8  {
       9    char *p = __builtin_alloca (4050);
      10    x = t1 (x);
      11    return p[x];
      12  }
      13  
      14  
      15  /* This test has a constant sized alloca that is smaller than the
      16     probe interval.  Only one probe is required since the value is larger
      17     than 1024 bytes but smaller than 63k.
      18  
      19     The form can change quite a bit so we just check for two
      20     probes without looking at the actual address.  */
      21  /* { dg-final { scan-assembler-times "str\\txzr," 1 } } */
      22  
      23  
      24