summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/fentry-insertion.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/fentry-insertion.ll')
-rw-r--r--test/CodeGen/X86/fentry-insertion.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fentry-insertion.ll b/test/CodeGen/X86/fentry-insertion.ll
new file mode 100644
index 000000000000..a585d96b209c
--- /dev/null
+++ b/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" }
+