xref: /llvm-project/llvm/test/MC/AArch64/aarch64-build-attributes-asm-none.s (revision ee99c4d4845db66c4daa2373352133f4b237c942)
1// RUN: llvm-mc -triple=aarch64 %s -o - | FileCheck %s --check-prefix=ASM
2// RUN: llvm-mc -triple=aarch64 -filetype=obj %s -o - | llvm-readelf --hex-dump=.ARM.attributes - | FileCheck %s --check-prefix=ELF
3
4// ASM: .aeabi_subsection aeabi_pauthabi, required, uleb128
5// ASM: .aeabi_attribute Tag_PAuth_Platform, 0
6// ASM: .aeabi_attribute Tag_PAuth_Schema, 0
7// ASM: .aeabi_subsection aeabi_feature_and_bits, optional, uleb128
8// ASM: .aeabi_attribute Tag_Feature_BTI, 0
9// ASM: .aeabi_attribute Tag_Feature_PAC, 0
10// ASM: .aeabi_attribute Tag_Feature_GCS, 0
11
12// ELF: Hex dump of section '.ARM.attributes':
13// ELF-NEXT: 0x00000000 41190000 00616561 62695f70 61757468 A....aeabi_pauth
14// ELF-NEXT: 0x00000010 61626900 00000100 02002300 00006165 abi.......#...ae
15// ELF-NEXT: 0x00000020 6162695f 66656174 7572655f 616e645f abi_feature_and_
16// ELF-NEXT: 0x00000030 62697473 00010000 00010002 00
17
18
19.aeabi_subsection aeabi_pauthabi, required, uleb128
20.aeabi_attribute Tag_PAuth_Platform, 0
21.aeabi_attribute Tag_PAuth_Schema, 0
22.aeabi_subsection aeabi_feature_and_bits, optional, uleb128
23.aeabi_attribute Tag_Feature_BTI, 0
24.aeabi_attribute Tag_Feature_PAC, 0
25.aeabi_attribute Tag_Feature_GCS, 0
26