blob: 0882dad74069f2464d751187eedf39dd8c67efc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* Testing return address signing. */
/* { dg-do compile } */
/* { dg-require-effective-target arm_arch_v8_1m_main_pacbti_ok } */
/* { dg-require-effective-target mbranch_protection_ok } */
/* { dg-options "-mbranch-protection=pac-ret -mfloat-abi=hard --save-temps -O0" } */
/* { dg-add-options arm_arch_v8_1m_main_pacbti } */
#include "pac.h"
/* { dg-final { scan-assembler "\tpac\tip, lr, sp" } } */
/* { dg-final { scan-assembler "\taut\tip, lr, sp" } } */
/* { dg-final { scan-assembler-not "\tbti" } } */
|