Debian Codegraph @

gcc/testsuite/gcc.target/arm/pac-3.c

raw
1 /* Testing return address signing. */
2 /* { dg-do run } */
3 /* { dg-require-effective-target arm_arch_v8_1m_main_pacbti_link } */
4 /* { dg-require-effective-target mbranch_protection_ok } */
5 /* { dg-require-effective-target arm_pacbti_hw } */
6 /* { dg-options "-mbranch-protection=bti+pac-ret+leaf -mfloat-abi=hard --save-temps -O2" } */
7 /* { dg-add-options arm_arch_v8_1m_main_pacbti } */
8
9 #include "pac.h"
10
11 /* { dg-final { scan-assembler-times "\tpacbti\tip, lr, sp" 2 } } */
12 /* { dg-final { scan-assembler-times "\taut\tip, lr, sp" 2 } } */
13 /* { dg-final { scan-assembler-not "\tbti" } } */