blob: 9ed64ce05911475268e9ef95e88e873e21611085 [file] [log] [blame]
/* Testing return address signing where combined instructions used. */
/* { dg-do compile } */
/* { dg-options "-O2 -mbranch-protection=pac-ret+leaf+b-key" } */
/* { dg-require-effective-target lp64 } */
int foo (int);
int bar (int, int);
int __attribute__ ((target ("arch=armv8.3-a")))
func1 (int a, int b, int c)
{
/* pacibsp */
return a + foo (b) + c;
/* retab */
}
/* { dg-final { scan-assembler-times "pacibsp" 1 } } */
/* { dg-final { scan-assembler-times "retab" 1 } } */