gcc/testsuite/gcc.target/i386/pr93492-3.c
raw| 1 | /* { dg-do "compile" { target *-*-linux* } } */ |
| 2 | /* { dg-require-effective-target mfentry } */ |
| 3 | /* { dg-options "-O1 -fcf-protection -mmanual-endbr -mfentry -pg -fasynchronous-unwind-tables" } */ |
| 4 | |
| 5 | /* Test the placement of the .LPFE0 label. */ |
| 6 | |
| 7 | void |
| 8 | __attribute__ ((cf_check,patchable_function_entry (1, 0))) |
| 9 | f10_endbr (void) |
| 10 | { |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-assembler "\t\.cfi_startproc\n\tendbr(32|64)\n.*\.LPFE0:\n\tnop\n1:\tcall\t\[^\n\]*__fentry__\[^\n\]*\n\tret\n" } } */ |