1 /* { dg-do "compile" } */
2 /* { dg-options "-O1" } */
3
4 /* Test the placement of the .LPFE0 label. */
5
6 void
7 __attribute__ ((target("branch-protection=bti+pac-ret+leaf"),
8 patchable_function_entry (1, 0)))
9 f10_pac ()
10 {
11 }
12 /* { dg-final { scan-assembler "hint\t34 // bti c\n.*\.LPFE0:\n\tnop\n.*\thint\t25 // paciasp\n.*\thint\t29 // autiasp\n.*\tret\n" } } */