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
5
6define dso_local i32 @f() #0 {
7entry:
8  ret i32 0
9}
10
11define dso_local i32 @g() #1 {
12entry:
13  ret i32 0
14}
15
16attributes #0 = { "branch-target-enforcement" "sign-return-address"="non-leaf" }
17
18attributes #1 = { "branch-target-enforcement" }
19
20; Only the common atttribute (BTI)
21; ASM:	    .word	3221225472
22; ASM-NEXT:	.word	4
23; ASM-NEXT:	.word	1
24
25; OBJ: Properties: aarch64 feature: BTI
26