blob: 6fe21de3025aab94d7c5dc097e7219c5b9c45fff [file] [log] [blame]
; RUN: llc < %s -O2 -mtriple=x86_64-unknown-linux-gnu -x86-indirect-branch-tracking --code-model=small | FileCheck %s --check-prefix=CHECK-SMALL-IBTSEAL
; CHECK-SMALL-IBTSEAL: foo:
; CHECK-SMALL-IBTSEAL: endbr
; CHECK-SMALL-IBTSEAL: bar:
; CHECK-SMALL-IBTSEAL: endbr
target triple = "x86_64-unknown-linux-gnu"
define dso_local void @foo() {
ret void
}
define dso_local ptr @bar() {
ret ptr @foo
}
!llvm.module.flags = !{!1}
!1 = !{i32 4, !"ibt-seal", i32 1}