llvm-project/llvm/test/CodeGen/X86/fentry-ibt.ll
David Spickett db490ad385 [llvm][X86] Add x86 triple to fentry test
When run on AArch64 hardware llc would default to native
arch.
2021-12-07 10:03:29 +00: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 4, !"cf-protection-branch", i32 1}