Debian Codegraph @

gcc/testsuite/gcc.target/riscv/stack-check-cfa-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -march=rv64gc -mabi=lp64d -fstack-clash-protection -funwind-tables -fno-stack-protector" } */
3 /* { dg-require-effective-target supports_stack_clash_protection } */
4
5 #define SIZE 80*1024 + 512
6 #include "stack-check-prologue.h"
7
8 /* { dg-final { scan-assembler-times {\.cfi_def_cfa [0-9]+, 81920} 1 } } */
9 /* { dg-final { scan-assembler-times {\.cfi_def_cfa_register 2} 1 } } */
10 /* { dg-final { scan-assembler-times {\.cfi_def_cfa_offset 82432} 1 } } */
11 /* { dg-final { scan-assembler-times {\.cfi_def_cfa_offset 0} 1 } } */
12
13 /* Checks that the CFA notes are correct for every sp adjustment. */