Debian Codegraph @

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

raw
1 /* Although ip is not available, we can make use of a hole in the
2 argument list for the indirect address (r1 is unused). */
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 -std=c99" } */
8
9 void fail(void (*f)(int, ...))
10 {
11 f(1, 2LL);
12 }
13
14 /* { dg-final { scan-assembler "bx\tr1\t@ indirect register sibling call" } } */