Skip to content

Commit 192d2f2

Browse files
committed
add test
1 parent b15d39c commit 192d2f2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

llvm/test/CodeGen/X86/fentry.mir

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# RUN: llc -mtriple=x86_64-- -passes=fentry-insert %s -o - | FileCheck %s
2+
3+
--- |
4+
target triple = "x86_64--"
5+
define i32 @with_fentry() #1 {
6+
entry:
7+
ret i32 0
8+
}
9+
10+
attributes #1 = { "fentry-call"="true" }
11+
---
12+
13+
name: with_fentry
14+
body: |
15+
bb.0:
16+
; CHECK-LABEL: name: with_fentry
17+
; CHECK: FENTRY_CALL
18+
; CHECK-NEXT: RET 0
19+
RET 0

0 commit comments

Comments
 (0)