[libc] Deprecate LLVM_ENABLE_PROJECTS in favor of LLVM_ENABLE_RUNTIMES. (#117265)
[llvm-project.git] / llvm / test / Bitcode / upgrade-branch-protection.ll
blob1b33e3901198ea23cdb5bf2fd5c6b46dfe3418df
1 ;; Test that module flags "branch-target-enforcement" and "sign-return-address"  can be upgraded to
2 ;; are upgraded from Error to Min.
4 ; RUN: llvm-as %s -o - | llvm-dis - | FileCheck %s
6 !llvm.module.flags = !{!0, !1, !2, !3}
8 !0 = !{i32 1, !"branch-target-enforcement", i32 1}
9 !1 = !{i32 1, !"sign-return-address", i32 1}
10 !2 = !{i32 1, !"sign-return-address-all", i32 1}
11 !3 = !{i32 1, !"sign-return-address-with-bkey", i32 1}
13 ;CHECK: !0 = !{i32 8, !"branch-target-enforcement", i32 1}
14 ;CHECK: !1 = !{i32 8, !"sign-return-address", i32 1}
15 ;CHECK: !2 = !{i32 8, !"sign-return-address-all", i32 1}
16 ;CHECK: !3 = !{i32 8, !"sign-return-address-with-bkey", i32 1}