xref: /llvm-project/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-2.ll (revision b0343a38a5910e980bb031e4014655d77cd0c162)
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() {
7entry:
8  ret i32 0
9}
10
11!llvm.module.flags = !{!0, !1, !2, !3}
12
13!0 = !{i32 8, !"branch-target-enforcement", i32 0}
14!1 = !{i32 8, !"sign-return-address", i32 1}
15!2 = !{i32 8, !"sign-return-address-all", i32 0}
16!3 = !{i32 8, !"sign-return-address-with-bkey", i32 0}
17
18; PAC attribute present
19; ASM:	    .word	3221225472
20; ASM-NEXT:	.word	4
21; ASM-NEXT:	.word	2
22
23; OBJ: Properties: aarch64 feature: PAC
24