/* { dg-do compile } */ /* { dg-require-effective-target mbranch_protection_ok } */ /* { dg-options "-march=armv8.1-m.main+fp -mbranch-protection=pac-ret+bti -mfloat-abi=hard --save-temps" } */ #if !defined (__ARM_FEATURE_BTI_DEFAULT) #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined." #endif #if !defined (__ARM_FEATURE_PAC_DEFAULT) #error "Feature test macro __ARM_FEATURE_PAC_DEFAULT should be defined." #endif /* { dg-final { scan-assembler-not "\.arch_extension pacbti" } } */ /* { dg-final { scan-assembler "\.eabi_attribute 50, 1" } } */ /* { dg-final { scan-assembler "\.eabi_attribute 52, 1" } } */ /* { dg-final { scan-assembler "\.eabi_attribute 74, 1" } } */ /* { dg-final { scan-assembler "\.eabi_attribute 76, 1" } } */