llvm.org GIT mirror llvm / a813b38 test / CodeGen / AArch64 / machine-outliner-outline-bti.ll
a813b38

Tree @a813b38 (Download .tar.gz)

machine-outliner-outline-bti.ll @a813b38raw · history · blame

; RUN: llc -mtriple aarch64--none-eabi < %s | FileCheck %s

; The BTI instruction cannot be outlined, because it needs to be the very first
; instruction executed after an indirect call.

@g = hidden global i32 0, align 4

define hidden void @foo() minsize "branch-target-enforcement" {
entry:
; CHECK: hint #34
; CHECK: b       OUTLINED_FUNCTION_0
  store volatile i32 1, i32* @g, align 4
  ret void
}

define hidden void @bar() minsize "branch-target-enforcement" {
entry:
; CHECK: hint #34
; CHECK: b       OUTLINED_FUNCTION_0
  store volatile i32 1, i32* @g, align 4
  ret void
}