diff options
| author | Nirav Dave <niravd@google.com> | 2017-01-31 17:00:27 +0000 |
|---|---|---|
| committer | Nirav Dave <niravd@google.com> | 2017-01-31 17:00:27 +0000 |
| commit | a7c041d1477bdfd753f7155b2cb1fb739eaddb0f (patch) | |
| tree | aae0d257c08f5dfe97a7e8820d81e23986524b5e /llvm/test/CodeGen/X86/fentry-insertion.ll | |
| parent | 62b83ede84f5965358a6f91e52d0f9fc841ff556 (diff) | |
| download | bcm5719-llvm-a7c041d1477bdfd753f7155b2cb1fb739eaddb0f.tar.gz bcm5719-llvm-a7c041d1477bdfd753f7155b2cb1fb739eaddb0f.zip | |
[X86] Implement -mfentry
Summary: Insert calls to __fentry__ at function entry.
Reviewers: hfinkel, craig.topper
Subscribers: mgorny, llvm-commits
Differential Revision: https://reviews.llvm.org/D28000
llvm-svn: 293648
Diffstat (limited to 'llvm/test/CodeGen/X86/fentry-insertion.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/fentry-insertion.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/fentry-insertion.ll b/llvm/test/CodeGen/X86/fentry-insertion.ll new file mode 100644 index 00000000000..a585d96b209 --- /dev/null +++ b/llvm/test/CodeGen/X86/fentry-insertion.ll @@ -0,0 +1,16 @@ +; RUN: llc %s -o - | FileCheck %s +target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" +target triple = "x86_64-unknown-linux-gnu" + +define void @test1() #0 { +entry: + ret void + +; CHECK-LABEL: @test1 +; CHECK: callq __fentry__ +; CHECK-NOT: mcount +; CHECK: retq +} + +attributes #0 = { "fentry-call"="true" } + |

