1 ; RUN: llc -mtriple=aarch64-linux %s -o - | \
2 ; RUN: FileCheck %s --check-prefix=ASM
3 ; RUN: llc -mtriple=aarch64-linux %s -filetype=obj -o - | \
4 ; RUN: llvm-readelf --notes - | FileCheck %s --check-prefix=OBJ
6 define dso_local i32 @f() {
11 !llvm.module.flags = !{!0, !1, !2, !3}
13 !0 = !{i32 8, !"branch-target-enforcement", i32 1}
14 !1 = !{i32 8, !"sign-return-address", i32 0}
15 !2 = !{i32 8, !"sign-return-address-all", i32 0}
16 !3 = !{i32 8, !"sign-return-address-with-bkey", i32 0}
18 ; BTI attribute present
19 ; ASM: .word 3221225472
23 ; OBJ: Properties: aarch64 feature: BTI