Debian Codegraph @

llvm/test/LTO/AArch64/Inputs/bar.ll

raw
1 ;; This file contains the new semantic of the branch-target-enforcement, sign-return-address.
2 ;; Used for test mixing a mixed link case and also verify the import too in llc.
3
4 ; RUN: llc -mattr=+pauth -mattr=+bti %s -o - | FileCheck %s
5
6 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
7 target triple = "aarch64-unknown-linux-gnu"
8
9 define dso_local void @bar() #0 {
10 entry:
11 ret void
12 }
13 ; CHECK-LABEL: bar:
14 ; CHECK-NOT: hint
15 ; CHECK-NOT: bti
16 ; CHECK: ret
17
18 define dso_local void @baz() #1 {
19 entry:
20 ret void
21 }
22
23 ; CHECK-LABEL: baz:
24 ; CHECK: bti c
25 ; CHECK: ret
26
27 attributes #0 = { noinline nounwind optnone uwtable }
28 attributes #1 = { noinline nounwind optnone uwtable "branch-target-enforcement" }
29
30 !llvm.module.flags = !{!0, !1, !2, !3}
31
32 !0 = !{i32 8, !"branch-target-enforcement", i32 2}
33 !1 = !{i32 8, !"sign-return-address", i32 2}
34 !2 = !{i32 8, !"sign-return-address-all", i32 2}
35 !3 = !{i32 8, !"sign-return-address-with-bkey", i32 2}