1; RUN: llc -mtriple=aarch64-linux %s               -o - 2>&1 | \
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 = { "sign-return-address"="all" }
19
20; Only the common atttribute (PAC)
21; ASM: warning: not setting BTI in feature flags
22; ASM:	    .word	3221225472
23; ASM-NEXT:	.word	4
24; ASM-NEXT	.word	2
25
26; OBJ: Properties: aarch64 feature: PAC
27