[committed] [RISC-V] Skip zbs-ext-2.c for -Oz as well
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pac-3.c
blob47e290a5840dcacb17612745fabedaff7c5e8f8a
1 /* Testing return address signing. */
2 /* { dg-do run } */
3 /* { dg-require-effective-target mbranch_protection_ok } */
4 /* { dg-require-effective-target arm_pacbti_hw } */
5 /* { dg-options "-march=armv8.1-m.main+pacbti+fp -mbranch-protection=bti+pac-ret+leaf -mthumb -mfloat-abi=hard --save-temps -O2" } */
7 #include "pac.h"
9 /* { dg-final { scan-assembler-times "pacbti\tip, lr, sp" 2 } } */
10 /* { dg-final { scan-assembler-times "aut\tip, lr, sp" 2 } } */
11 /* { dg-final { scan-assembler-not "\tbti" } } */