Files
clang-p2996/llvm/test/CodeGen/X86/fentry-ibt.ll
Fangrui Song ad94b5c54f [X86][test] Use Min behavior for "cf-protection-{branch,return}" tests
The behavior does not match that much. Min is the new Clang codegen behavior
since D130065.
2022-07-19 21:25:55 -07:00

18 lines
353 B
LLVM

; RUN: llc %s -o - -verify-machineinstrs -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
define void @test1() #0 {
entry:
ret void
; CHECK-LABEL: @test1
; CHECK: endbr64
; CHECK: callq __fentry__
; CHECK-NOT: mcount
; CHECK: retq
}
!llvm.module.flags = !{!0}
attributes #0 = { "fentry-call"="true" }
!0 = !{i32 8, !"cf-protection-branch", i32 1}