Debian Codegraph @

gcc/testsuite/gcc.target/arm/pac-sibcall-2.c

raw
1 /* If all call-clobbered general registers are live (r0-r3, ip), disable
2 indirect tail-call for a PAC-enabled function. */
3
4 /* { dg-do compile } */
5 /* { dg-require-effective-target arm_arch_v8_1m_main_pacbti_ok } */
6 /* { dg-add-options arm_arch_v8_1m_main_pacbti } */
7 /* { dg-additional-options "-mbranch-protection=pac-ret+leaf -O2" } */
8
9 void fail(void (*f)(int, ...))
10 {
11 f(1, 2, 3, 4);
12 }
13
14 /* { dg-final { scan-assembler-not "bx\tip\t@ indirect register sibling call" } } */