(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
shadow_call_stack_6.c
       1  /* Verify:
       2       * -fomit-frame-pointer -fsanitize=shadow-call-stack -fno-exceptions -ffixed-x18.
       3       * without outgoing.
       4       * total frame size <= 256.
       5       * callee-saved reg: x30 only.
       6       * optimized code should use "str   x30, [sp]" to save x30 in prologue.
       7       * optimized code should not restore x30 in epilogue.  */
       8  
       9  /* { dg-do compile } */
      10  /* { dg-options "-O2 -fomit-frame-pointer -fsanitize=shadow-call-stack -fno-exceptions -ffixed-x18 --save-temps" } */
      11  
      12  #include "test_frame_common.h"
      13  
      14  t_frame_pattern (func1, 200, )
      15  
      16  /* { dg-final { scan-assembler-times {str\tx30, \[sp\]} 1 } } */
      17  /* { dg-final { scan-assembler-not {ld[r|p]\tx30, \[sp} } } */
      18