[MemProf] Templatize CallStackRadixTreeBuilder (NFC) (#117014)
[llvm-project.git] / lld / test / COFF / arm64ec-import-range-ext.test
blob701d4c11cc56462a1f046c0e6954db7c9cf54bc5
1 REQUIRES: aarch64, x86
2 RUN: split-file %s %t.dir && cd %t.dir
4 RUN: llvm-mc -filetype=obj -triple=arm64ec-windows test.s -o test.obj
5 RUN: llvm-mc -filetype=obj -triple=arm64ec-windows %S/Inputs/loadconfig-arm64ec.s -o loadconfig-arm64ec.obj
6 RUN: llvm-lib -machine:arm64ec -def:test.def -out:test.lib
8 RUN: lld-link -machine:arm64ec -dll -noentry -out:out.dll loadconfig-arm64ec.obj test.obj test.lib
10 RUN: llvm-objdump -d out.dll | FileCheck --check-prefix=DISASM %s
11 DISASM:      0000000180001000 <.text>:
12 DISASM-NEXT: 180001000: 52800000     mov     w0, #0x0                // =0
13 DISASM-NEXT: 180001004: d65f03c0     ret
14 DISASM-NEXT:                 ...
15 DISASM-NEXT: 188001008: b000000b     adrp    x11, 0x188002000
16 DISASM-NEXT: 18800100c: f940016b     ldr     x11, [x11]
17 DISASM-NEXT: 188001010: f0fbffea     adrp    x10, 0x180000000
18 DISASM-NEXT: 188001014: 9100014a     add     x10, x10, #0x0
19 DISASM-NEXT: 188001018: 90fc0010     adrp    x16, 0x180001000 <.text>
20 DISASM-NEXT: 18800101c: 91000210     add     x16, x16, #0x0
21 DISASM-NEXT: 188001020: d61f0200     br      x16
23 #--- test.s
24     .text
25     .globl __icall_helper_arm64ec
26     .p2align 2, 0x0
27 __icall_helper_arm64ec:
28     mov w0, #0
29     ret
31     .space 0x8000000
33     .data
34     .rva __imp_func
36 #--- test.def
37 NAME test.dll
38 EXPORTS
39     func