xref: /llvm-project/llvm/test/CodeGen/X86/fentry-ibt.ll (revision ad94b5c54f82e7bddc4253ccbf0bdaa9442411cf)
1; RUN: llc %s -o - -verify-machineinstrs -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
2
3define void @test1() #0 {
4entry:
5  ret void
6
7; CHECK-LABEL: @test1
8; CHECK: endbr64
9; CHECK: callq __fentry__
10; CHECK-NOT: mcount
11; CHECK: retq
12}
13
14!llvm.module.flags = !{!0}
15
16attributes #0 = { "fentry-call"="true" }
17!0 = !{i32 8, !"cf-protection-branch", i32 1}
18