[C++20][Modules][Serialization] Add an additional test case for #120277. (#126349)
[llvm-project.git] / llvm / test / CodeGen / AArch64 / aarch64-build-attributes-pauthabi.ll
blob35ad514c943a5a3ce95bb57740bc426451ce7f88
1 ; RUN: llc < %s | FileCheck %s --check-prefix=ASM
2 ; RUN: llc %s -filetype=obj -o - | llvm-readelf --hex-dump=.ARM.attributes - | FileCheck %s --check-prefix=ELF
4 ; ASM: .aeabi_subsection        aeabi_pauthabi, required, uleb128
5 ; ASM-NEXT: .aeabi_attribute    Tag_PAuth_Platform, 2
6 ; ASM-NEXT: .aeabi_attribute    Tag_PAuth_Schema, 31
8 ; ELF: Hex dump of section '.ARM.attributes':
9 ; ELF-NEXT: 0x00000000 41190000 00616561 62695f70 61757468 A....aeabi_pauth
10 ; ELF-NEXT: 0x00000010 61626900 00000102 021f
13 target triple = "aarch64-unknown-none-elf"
15 !llvm.module.flags = !{!1, !2}
17 !1 = !{i32 1, !"aarch64-elf-pauthabi-platform", i32 2}
18 !2 = !{i32 1, !"aarch64-elf-pauthabi-version", i32 31}