[ORC] Fail materialization in tasks that are destroyed before running.
[llvm-project.git] / llvm / test / CodeGen / Thumb2 / bti-entry-blocks.ll
blob5fcbf6e741494ec0277a95de6d0557a41f1f2259
1 ; RUN: llc < %s -mtriple=thumbv7m-arm-none-eabi | FileCheck %s
3 define hidden i32 @linkage_external() local_unnamed_addr "branch-target-enforcement" {
4 ; CHECK-LABEL: linkage_external:
5 ; CHECK: bti
6 ; CHECK-NEXT: movs r0, #1
7 ; CHECK-NEXT: bx lr
8 entry:
9   ret i32 1
12 define internal i32 @linkage_internal() unnamed_addr "branch-target-enforcement" {
13 ; CHECK-LABEL: linkage_internal:
14 ; CHECK: bti
15 ; CHECK: movs r0, #2
16 ; CHECK-NEXT: bx lr
17 entry:
18   ret i32 2