summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/machine-outliner-outline-bti.ll
blob: bc1521c6c80d7b60aa6d12965f107f0ace15fa26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
; 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
}
OpenPOWER on IntegriCloud