diff --git a/lld/test/COFF/arm64ec-patchable-thunks.test b/lld/test/COFF/arm64ec-patchable-thunks.test index 5cebe7cc27ad6..1e1ff1f7f2ee4 100644 --- a/lld/test/COFF/arm64ec-patchable-thunks.test +++ b/lld/test/COFF/arm64ec-patchable-thunks.test @@ -5,6 +5,7 @@ RUN: llvm-mc -filetype=obj -triple=arm64ec-windows arm64ec-patchable.s -o arm64e RUN: llvm-mc -filetype=obj -triple=arm64ec-windows arm64ec-alias.s -o arm64ec-alias.obj RUN: llvm-mc -filetype=obj -triple=arm64ec-windows test-sec.s -o test-sec.obj RUN: llvm-mc -filetype=obj -triple=arm64ec-windows %S/Inputs/loadconfig-arm64ec.s -o loadconfig-arm64ec.obj +RUN: llvm-mc -filetype=obj -triple=aarch64-windows %S/Inputs/loadconfig-arm64.s -o loadconfig-arm64.obj RUN: lld-link -out:test.dll -machine:arm64ec arm64ec-patchable.obj test-sec.obj loadconfig-arm64ec.obj -dll -noentry @@ -59,6 +60,18 @@ RUN: not lld-link -out:test4.dll -machine:arm64ec test-sec.obj loadconfig-arm64e ERR: error: undefined symbol: EXP+#patchable_func +RUN: lld-link -out:testx.dll -machine:arm64x arm64ec-patchable.obj test-sec.obj \ +RUN: loadconfig-arm64.obj loadconfig-arm64ec.obj -dll -noentry +RUN: llvm-objdump -d testx.dll | FileCheck -check-prefix=PATCH-DISASM %s +RUN: llvm-readobj --coff-load-config testx.dll | FileCheck -check-prefix=PATCH-CHPE %s + + +RUN: lld-link -out:testx2.dll -machine:arm64x arm64ec-alias.obj loadconfig-arm64.obj \ +RUN: loadconfig-arm64ec.obj -dll -noentry +RUN: llvm-objdump -d testx2.dll | FileCheck -check-prefix=PATCH-DISASM %s +RUN: llvm-readobj --coff-load-config testx2.dll | FileCheck -check-prefix=PATCH-CHPE %s + + #--- arm64ec-patchable.s .section ".text", "x", discard, "#patchable_func$hp_target" .globl "#patchable_func$hp_target"