1 ; This test uses symlinks.
2 ; UNSUPPORTED: system-windows
4 ; RUN: rm -rf %t && mkdir %t
6 ; Check that a triple prefix on the executable gets picked up as target triple.
8 ; RUN: ln -fs llvm-windres %t/aarch64-w64-mingw32-windres
9 ; RUN: ln -fs llvm-windres %t/arm64ec-w64-mingw32-windres
10 ; RUN: %t/aarch64-w64-mingw32-windres -### %p/Inputs/empty.rc %t.res | FileCheck %s --check-prefix=CHECK-PREPROC
11 ; RUN: %t/arm64ec-w64-mingw32-windres -### %p/Inputs/empty.rc %t.res | FileCheck %s --check-prefix=CHECK-PREPROC-EC
12 ; CHECK-PREPROC: "clang" "--driver-mode=gcc" "-target" "aarch64-w64-mingw32"
13 ; CHECK-PREPROC-EC: "clang" "--driver-mode=gcc" "-target" "arm64ec-w64-mingw32"
15 ; Check that the triple prefix also affects the output object file type.
17 ; RUN: %t/aarch64-w64-mingw32-windres --no-preprocess %p/Inputs/tag-stringtable-basic.rc %t.o
18 ; RUN: %t/arm64ec-w64-mingw32-windres --no-preprocess %p/Inputs/tag-stringtable-basic.rc %t-ec.o
19 ; RUN: llvm-readobj --coff-resources %t.o | FileCheck %s --check-prefix=CHECK-OBJ
20 ; RUN: llvm-readobj --coff-resources %t-ec.o | FileCheck %s --check-prefix=CHECK-OBJ-EC
22 ; CHECK-OBJ: Format: COFF-ARM64
23 ; CHECK-OBJ: Resources [
24 ; CHECK-OBJ: Total Number of Resources:
25 ; CHECK-OBJ-EC: Format: COFF-ARM64EC
26 ; CHECK-OBJ-EC: Resources [
27 ; CHECK-OBJ-EC: Total Number of Resources: