3 # RUN: llvm-mc -filetype=obj -triple=arm64ec-windows %s -o %t.obj
4 # RUN: llvm-mc -filetype=obj -triple=arm64ec-windows %S/Inputs/loadconfig-arm64ec.s -o %t-loadconfig.obj
6 # RUN: lld-link -machine:arm64ec -dll -noentry %t.obj %t-loadconfig.obj -out:%t.dll
8 # RUN: llvm-readobj --coff-load-config %t.dll | FileCheck --check-prefix=LOADCFG %s
9 # LOADCFG: CHPEMetadata [
10 # LOADCFG-NEXT: Version: 0x2
11 # LOADCFG-NEXT: CodeMap: 4096
12 # LOADCFG-NEXT: CodeRangesToEntryPoints: 4096
13 # LOADCFG-NEXT: RedirectionMetadata: 12288
14 # LOADCFG-NEXT: __os_arm64x_dispatch_call_no_redirect: 0x1158
15 # LOADCFG-NEXT: __os_arm64x_dispatch_ret: 0x1160
16 # LOADCFG-NEXT: __os_arm64x_dispatch_call: 0x1168
17 # LOADCFG-NEXT: __os_arm64x_dispatch_icall: 0x1170
18 # LOADCFG-NEXT: __os_arm64x_dispatch_icall_cfg: 0x1188
19 # LOADCFG-NEXT: AlternateEntryPoint: 0x0
20 # LOADCFG-NEXT: AuxiliaryIAT: 0x0
21 # LOADCFG-NEXT: GetX64InformationFunctionPointer: 0x1178
22 # LOADCFG-NEXT: SetX64InformationFunctionPointer: 0x1180
23 # LOADCFG-NEXT: ExtraRFETable: 0x0
24 # LOADCFG-NEXT: ExtraRFETableSize: 0x0
25 # LOADCFG-NEXT: __os_arm64x_dispatch_fptr: 0x1190
26 # LOADCFG-NEXT: AuxiliaryIATCopy: 0x0
27 # LOADCFG-NEXT: AuxiliaryDelayloadIAT: 0x0
28 # LOADCFG-NEXT: AuxiliaryDelayloadIATCopy: 0x0
29 # LOADCFG-NEXT: HybridImageInfoBitfield: 0x0
32 # RUN: llvm-readobj --hex-dump=.test %t.dll | FileCheck --check-prefix=TEST %s
33 # TEST: 0x180004000 00000000 00000000 00000000
35 # RUN: llvm-readobj --hex-dump=.a64xrm %t.dll | FileCheck --check-prefix=A64XRM %s
36 # A64XRM: 0x180003000 00000000 00000000 ........
39 .rva __arm64x_native_entrypoint
40 .rva __guard_check_icall_a64n_fptr
41 .word __hybrid_image_info_bitfield