@@ -37,7 +37,7 @@ ARM64X-DATA: 03030303 01010101 02020202
3737
3838RUN: not lld-link -out:test.dll -machine:arm64 arm64-data-sym.obj arm64ec-data-sym.obj \
3939RUN: -dll -noentry 2>&1 | FileCheck -check-prefix=INCOMPAT1 %s
40- INCOMPAT1: arm64ec-data-sym.obj: machine type arm64ec conflicts with arm64
40+ INCOMPAT1: lld-link: error: arm64ec-data-sym.obj: machine type arm64ec conflicts with arm64
4141
4242RUN: not lld-link -out:test.dll -machine:arm64ec arm64ec-data-sym.obj arm64-data-sym.obj \
4343RUN: -dll -noentry 2>&1 | FileCheck -check-prefix=INCOMPAT2 %s
@@ -55,17 +55,17 @@ INCOMPAT4: lld-link: error: arm64ec-data-sym.obj: machine type arm64ec is ambigu
5555RUN: not lld-link -out:test.dll x86_64-data-sym.obj arm64ec-data-sym.obj \
5656RUN: -dll -noentry 2>&1 | FileCheck -check-prefix=INCOMPAT4 %s
5757
58- RUN: not lld-link -out:test.dll aarch64 -data-sym.obj arm64ec-data-sym.obj \
58+ RUN: not lld-link -out:test.dll arm64 -data-sym.obj arm64ec-data-sym.obj \
5959RUN: -dll -noentry 2>&1 | FileCheck -check-prefix=INCOMPAT4 %s
6060
6161RUN: not lld-link -out:test.dll i686-data-sym.obj arm64ec-data-sym.obj \
6262RUN: -dll -noentry 2>&1 | FileCheck -check-prefix=INCOMPAT5 %s
63- INCOMPAT5: arm64ec-data-sym.obj: machine type arm64ec conflicts with x86
63+ INCOMPAT5: lld-link: error: arm64ec-data-sym.obj: machine type arm64ec conflicts with x86
6464
65- arm64x input implies arm64 target
66- RUN: lld-link -out:test.dll -machine:arm64 arm64x-resource.obj -dll -noentry
67- RUN: llvm-readobj --file-headers test.dll | FileCheck -check-prefix=ARM64-HEADER %s
68- ARM64-HEADER: Machine: IMAGE_FILE_MACHINE_ARM64 (0xAA64)
65+ arm64x can be inferred and when mixed with ARM64, the first one wins
66+ RUN: lld-link -out:test.dll -dll -noentry arm64x-resource.obj arm64-data-sym.obj x86_64-data-sym.obj arm64ec-data-sym.obj
67+ RUN: not lld-link -out:test.dll -dll -noentry arm64-data-sym.obj arm64x-resource.obj x86_64-data-sym.obj 2>&1 | FileCheck -check-prefix=INCOMPAT3 %s
68+ RUN: not lld-link -out:test.dll -dll -noentry arm64-data-sym.obj arm64x-resource.obj arm64ec-data-sym.obj 2>&1 | FileCheck -check-prefix=INCOMPAT4 %s
6969
7070#--- arm64ec-data-sym.s
7171 .data
0 commit comments