2019-12-14 01:37:22 +08:00
|
|
|
; RUN: llc -mtriple=aarch64-linux %s -o - | \
|
|
|
|
; RUN: FileCheck %s --check-prefix=ASM
|
|
|
|
; RUN: llc -mtriple=aarch64-linux %s -filetype=obj -o - | \
|
2020-07-20 15:39:14 +08:00
|
|
|
; RUN: llvm-readelf --notes - | FileCheck %s --check-prefix=OBJ
|
2019-12-14 01:37:22 +08:00
|
|
|
|
|
|
|
define dso_local i32 @f() #0 {
|
|
|
|
entry:
|
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
|
|
|
|
attributes #0 = { "branch-target-enforcement" }
|
|
|
|
|
|
|
|
; BTI attribute present
|
|
|
|
; ASM: .word 3221225472
|
|
|
|
; ASM-NEXT: .word 4
|
2020-04-03 06:28:32 +08:00
|
|
|
; ASM-NEXT: .word 1
|
2019-12-14 01:37:22 +08:00
|
|
|
|
|
|
|
; OBJ: Properties: aarch64 feature: BTI
|