| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-require-effective-target arm_arch_v8_1m_main_pacbti_ok } */ |
| 3 |
/* { dg-add-options arm_arch_v8_1m_main_pacbti } */ |
| 4 |
/* { dg-additional-options "--save-temps -mfloat-abi=hard" } */ |
| 5 |
|
| 6 |
#if defined (__ARM_FEATURE_BTI_DEFAULT) |
| 7 |
#error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be undefined." |
| 8 |
#endif |
| 9 |
|
| 10 |
#if defined (__ARM_FEATURE_PAC_DEFAULT) |
| 11 |
#error "Feature test macro __ARM_FEATURE_PAC_DEFAULT should be undefined." |
| 12 |
#endif |
| 13 |
|
| 14 |
/* { dg-final { scan-assembler "\.arch_extension pacbti" } } */ |
| 15 |
/* { dg-final { scan-assembler "\.eabi_attribute 50, 2" } } */ |
| 16 |
/* { dg-final { scan-assembler "\.eabi_attribute 52, 2" } } */ |
| 17 |
/* { dg-final { scan-assembler-not "\.eabi_attribute 74" } } */ |
| 18 |
/* { dg-final { scan-assembler-not "\.eabi_attribute 76" } } */ |