1 ;; RUN: llc -mtriple=aarch64-eabi -mattr=+v8.5a %s -o - | FileCheck %s
5 define i32 @f0(i32 %x) #0 {
7 %call = tail call i32 @g(i32 %x) #5
8 %add = add nsw i32 %call, 1
16 define i32 @f1(i32 %x) #1 {
18 %call = tail call i32 @g(i32 %x) #5
19 %add = add nsw i32 %call, 1
26 define i32 @f2(i32 %x) #2 {
28 %call = tail call i32 @g(i32 %x) #5
29 %add = add nsw i32 %call, 1
36 define i32 @f3(i32 %x) #3 {
38 %call = tail call i32 @g(i32 %x) #5
39 %add = add nsw i32 %call, 1
46 define i32 @f4(i32 %x) #4 {
54 define i32 @f5(i32 %x) #5 {
56 %call = tail call i32 @g(i32 %x) #5
57 %add = add nsw i32 %call, 1
64 attributes #0 = { nounwind "branch-target-enforcement"="false" "sign-return-address"="none" }
65 attributes #1 = { nounwind "branch-target-enforcement"="true" "sign-return-address"="none" }
66 attributes #2 = { nounwind "branch-target-enforcement"="false" "sign-return-address"="non-leaf" "sign-return-address-key"="a_key" }
67 attributes #3 = { nounwind "branch-target-enforcement"="false" "sign-return-address"="non-leaf" "sign-return-address-key"="b_key" }
68 attributes #4 = { nounwind "branch-target-enforcement"="false" "sign-return-address"="all" "sign-return-address-key"="a_key" }
69 attributes #5 = { nounwind }
71 !llvm.module.flags = !{!0, !1, !2, !3, !4}
73 !0 = !{i32 1, !"wchar_size", i32 4}
74 !1 = !{i32 8, !"branch-target-enforcement", i32 1}
75 !2 = !{i32 8, !"sign-return-address", i32 1}
76 !3 = !{i32 8, !"sign-return-address-all", i32 0}
77 !4 = !{i32 8, !"sign-return-address-with-bkey", i32 0}