• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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@x = common dso_local global i32 0, align 4
6
7attributes #0 = { "branch-target-enforcement"="true" }
8
9!llvm.module.flags = !{!0, !1, !2, !3}
10
11!0 = !{i32 1, !"branch-target-enforcement", i32 1}
12!1 = !{i32 1, !"sign-return-address", i32 1}
13!2 = !{i32 1, !"sign-return-address-all", i32 0}
14!3 = !{i32 1, !"sign-return-address-with-bkey", i32 0}
15
16; Both attributes present in a file with no functions.
17; ASM:	    .word	3221225472
18; ASM-NEXT:	.word	4
19; ASM-NEXT:	.word	3
20
21; OBJ: Properties: aarch64 feature: BTI, PAC
22