gcc/testsuite/gcc.target/aarch64/pr92424-2.c
raw| 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"), |
| 8 | patchable_function_entry (1, 0))) |
| 9 | f10_bti () |
| 10 | { |
| 11 | } |
| 12 | /* { dg-final { scan-assembler "hint\t34 // bti c\n.*\.LPFE0:\n\tnop\n.*\tret\n" } } */ |