40 lines · plain
1REQUIRES: aarch64, x862RUN: split-file %s %t.dir && cd %t.dir3 4RUN: llvm-mc -filetype=obj -triple=arm64ec-windows test.s -o test.obj5RUN: llvm-mc -filetype=obj -triple=arm64ec-windows %S/Inputs/loadconfig-arm64ec.s -o loadconfig-arm64ec.obj6RUN: llvm-lib -machine:arm64ec -def:test.def -out:test.lib7 8RUN: lld-link -machine:arm64ec -dll -noentry -out:out.dll loadconfig-arm64ec.obj test.obj test.lib9 10RUN: llvm-objdump -d out.dll | FileCheck --check-prefix=DISASM %s11DISASM: 0000000180001000 <.text>:12DISASM-NEXT: 180001000: 52800000 mov w0, #0x0 // =013DISASM-NEXT: 180001004: d65f03c0 ret14DISASM-NEXT: ...15DISASM-NEXT: 188001008: b000000b adrp x11, 0x18800200016DISASM-NEXT: 18800100c: f940016b ldr x11, [x11]17DISASM-NEXT: 188001010: f0fbffea adrp x10, 0x18000000018DISASM-NEXT: 188001014: 9100014a add x10, x10, #0x019DISASM-NEXT: 188001018: 90fc0010 adrp x16, 0x180001000 <.text>20DISASM-NEXT: 18800101c: 91000210 add x16, x16, #0x021DISASM-NEXT: 188001020: d61f0200 br x1622 23#--- test.s24 .text25 .globl __icall_helper_arm64ec26 .p2align 2, 0x027__icall_helper_arm64ec:28 mov w0, #029 ret30 31 .space 0x800000032 33 .data34 .rva __imp_func35 36#--- test.def37NAME test.dll38EXPORTS39 func40