mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-02 14:26:08 +00:00

Depends on #87545 Emit `GNU_PROPERTY_AARCH64_FEATURE_PAUTH` property in `.note.gnu.property` section depending on `aarch64-elf-pauthabi-platform` and `aarch64-elf-pauthabi-version` llvm module flags.
20 lines
488 B
LLVM
20 lines
488 B
LLVM
; RUN: rm -rf %t && split-file %s %t && cd %t
|
|
|
|
; CHECK: either both or no 'aarch64-elf-pauthabi-platform' and 'aarch64-elf-pauthabi-version' module flags must be present
|
|
|
|
;--- err1.ll
|
|
|
|
; RUN: not llvm-as err1.ll -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
!llvm.module.flags = !{!0}
|
|
|
|
!0 = !{i32 1, !"aarch64-elf-pauthabi-platform", i32 2}
|
|
|
|
;--- err2.ll
|
|
|
|
; RUN: not llvm-as err2.ll -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
!llvm.module.flags = !{!0}
|
|
|
|
!0 = !{i32 1, !"aarch64-elf-pauthabi-version", i32 31}
|