Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -march=rv64gcv -mabi=lp64d -fstack-clash-protection -funwind-tables -fno-stack-protector" } */
3 /* { dg-require-effective-target supports_stack_clash_protection } */
4
5 #include "stack-check-prologue-16.c"
6
7 /* Checks that the CFA notes are correct for every sp adjustment, but we also
8 need to make sure we can unwind correctly before the frame is set up. So
9 check that we're emitting t3 with a copy of sp an setting the CFA there. */
10
11 /* { dg-final { scan-assembler-times {mv\tt3,sp} 1 } } */
12 /* { dg-final { scan-assembler-times {\.cfi_def_cfa [0-9]+, 0} 1 } } */
13 /* { dg-final { scan-assembler-times {\.cfi_escape 0xf,0x9,0x72,0,0x92,0xa2,0x38,0,0x3a,0x1e,0x22} 1 } } */
14 /* { dg-final { scan-assembler-times {\.cfi_escape 0xf,0xa,0x72,0,0x92,0xa2,0x38,0,0x9,0xf6,0x1e,0x22} 1 } } */