diff options
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/X86/fentry-insertion.ll | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/fentry-insertion.ll b/llvm/test/CodeGen/X86/fentry-insertion.ll index a585d96b209..c5fb3b254b2 100644 --- a/llvm/test/CodeGen/X86/fentry-insertion.ll +++ b/llvm/test/CodeGen/X86/fentry-insertion.ll @@ -12,5 +12,19 @@ entry: ; CHECK: retq } -attributes #0 = { "fentry-call"="true" } +define void @test2() #1 { +entry: + br label %bb1 +bb1: + call void @address_taken(i64 ptrtoint (i8* blockaddress(@test2, %bb1) to i64), i32 512) + ret void +; CHECK-LABEL: @test2 +; CHECK: callq __fentry__ +; CHECK-NOT: mcount +; CHECK: retq +} + +declare void @address_taken(i64, i32) local_unnamed_addr +attributes #0 = { "fentry-call"="true" } +attributes #1 = { inlinehint minsize noredzone nounwind optsize sspstrong "fentry-call"="true" } |

