36 lines · plain
1// REQUIRES: aarch642// RUN: split-file %s %t.dir && cd %t.dir3 4// RUN: llvm-mc -filetype=obj -triple=arm64ec-windows test.s -o test-arm64ec.obj5// RUN: llvm-mc -filetype=obj -triple=aarch64-windows test.s -o test-arm64.obj6// RUN: llvm-mc -filetype=obj -triple=arm64ec-windows other.s -o other-arm64ec.obj7// RUN: llvm-mc -filetype=obj -triple=aarch64-windows other.s -o other-arm64.obj8// RUN: llvm-mc -filetype=obj -triple=arm64ec-windows %S/Inputs/loadconfig-arm64ec.s -o loadconfig-arm64ec.obj9// RUN: llvm-mc -filetype=obj -triple=aarch64-windows %S/Inputs/loadconfig-arm64.s -o loadconfig-arm64.obj10 11// RUN: lld-link -machine:arm64x -dll -noentry test-arm64.obj test-arm64ec.obj other-arm64.obj other-arm64ec.obj \12// RUN: loadconfig-arm64.obj loadconfig-arm64ec.obj -out:out.dll -wrap:sym -wrap:nosuchsym13 14// RUN: llvm-readobj --hex-dump=.test out.dll | FileCheck %s15// CHECK: 0x180004000 02000000 02000000 01000000 0200000016// CHECK: 0x180004010 02000000 0100000017 18// RUN: lld-link -machine:arm64ec -dll -noentry test-arm64.obj test-arm64ec.obj other-arm64.obj other-arm64ec.obj \19// RUN: loadconfig-arm64.obj loadconfig-arm64ec.obj -out:out-ec.dll -wrap:sym -wrap:nosuchsym20// RUN: llvm-readobj --hex-dump=.test out-ec.dll | FileCheck %s21 22#--- test.s23 .section .test,"dr"24 .word sym25 .word __wrap_sym26 .word __real_sym27 28#--- other.s29 .global sym30 .global __wrap_sym31 .global __real_sym32 33sym = 134__wrap_sym = 235__real_sym = 336