24 lines
653 B
LLVM
24 lines
653 B
LLVM
; RUN: llc -mtriple=aarch64-linux %s -o - | \
|
|
; RUN: FileCheck %s --check-prefix=ASM
|
|
; RUN: llc -mtriple=aarch64-linux %s -filetype=obj -o - | \
|
|
; RUN: llvm-readelf --notes - | FileCheck %s --check-prefix=OBJ
|
|
|
|
define dso_local i32 @f() {
|
|
entry:
|
|
ret i32 0
|
|
}
|
|
|
|
!llvm.module.flags = !{!0, !1, !2, !3}
|
|
|
|
!0 = !{i32 1, !"branch-target-enforcement", i32 0}
|
|
!1 = !{i32 1, !"sign-return-address", i32 1}
|
|
!2 = !{i32 1, !"sign-return-address-all", i32 0}
|
|
!3 = !{i32 1, !"sign-return-address-with-bkey", i32 0}
|
|
|
|
; PAC attribute present
|
|
; ASM: .word 3221225472
|
|
; ASM-NEXT: .word 4
|
|
; ASM-NEXT: .word 2
|
|
|
|
; OBJ: Properties: aarch64 feature: PAC
|