1 /* Testing return address signing. */
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=pac-ret+leaf -mthumb -mfloat-abi=hard --save-temps -O0" } */
17 for (int i
= 0; i
< n
; i
++)
18 sum
+= va_arg (ptr
, int);
26 if (acc (3, 1, 2, 3) != 6)
32 /* { dg-final { scan-assembler-times "pac\tip, lr, sp" 2 } } */
33 /* { dg-final { scan-assembler-times "aut\tip, lr, sp" 2 } } */
34 /* { dg-final { scan-assembler-not "\tbti" } } */