|
6 | 6 | // RUN: %clang -### --target=spirv64 -x c -c %s 2>&1 | FileCheck --check-prefix=SPV64 %s |
7 | 7 |
|
8 | 8 | // SPV64: "-cc1" "-triple" "spirv64" |
9 | | -// SPV64-SAME: "-o" [[BC:".*bc"]] |
10 | | -// SPV64: {{llvm-spirv.*"}} [[BC]] "-o" {{".*o"}} |
| 9 | +// SPV64-SAME: "-o" {{".*o"}} |
11 | 10 |
|
12 | 11 | // RUN: %clang -### --target=spirv32 -x cl -c %s 2>&1 | FileCheck --check-prefix=SPV32 %s |
13 | 12 | // RUN: %clang -### --target=spirv32 %s 2>&1 | FileCheck --check-prefix=SPV32 %s |
|
16 | 15 | // RUN: %clang -### --target=spirv32 -x c -c %s 2>&1 | FileCheck --check-prefix=SPV32 %s |
17 | 16 |
|
18 | 17 | // SPV32: "-cc1" "-triple" "spirv32" |
19 | | -// SPV32-SAME: "-o" [[BC:".*bc"]] |
20 | | -// SPV32: {{llvm-spirv.*"}} [[BC]] "-o" {{".*o"}} |
| 18 | +// SPV32-SAME: "-o" {{".*o"}} |
21 | 19 |
|
22 | 20 | //----------------------------------------------------------------------------- |
23 | 21 | // Check Assembly emission. |
|
27 | 25 | // RUN: %clang -### --target=spirv64 -x c -S %s 2>&1 | FileCheck --check-prefix=SPT64 %s |
28 | 26 |
|
29 | 27 | // SPT64: "-cc1" "-triple" "spirv64" |
30 | | -// SPT64-SAME: "-o" [[BC:".*bc"]] |
31 | | -// SPT64: {{llvm-spirv.*"}} [[BC]] "--spirv-tools-dis" "-o" {{".*s"}} |
| 28 | +// SPT64-SAME: "-o" {{".*s"}} |
32 | 29 |
|
33 | 30 | // RUN: %clang -### --target=spirv32 -x cl -S %s 2>&1 | FileCheck --check-prefix=SPT32 %s |
34 | 31 | // RUN: %clang -### --target=spirv32 -x ir -S %s 2>&1 | FileCheck --check-prefix=SPT32 %s |
35 | 32 | // RUN: %clang -### --target=spirv32 -x clcpp -c %s 2>&1 | FileCheck --check-prefix=SPV32 %s |
36 | 33 | // RUN: %clang -### --target=spirv32 -x c -S %s 2>&1 | FileCheck --check-prefix=SPT32 %s |
37 | 34 |
|
38 | 35 | // SPT32: "-cc1" "-triple" "spirv32" |
39 | | -// SPT32-SAME: "-o" [[BC:".*bc"]] |
40 | | -// SPT32: {{llvm-spirv.*"}} [[BC]] "--spirv-tools-dis" "-o" {{".*s"}} |
| 36 | +// SPT32-SAME: "-o" {{".*s"}} |
41 | 37 |
|
42 | 38 | //----------------------------------------------------------------------------- |
43 | 39 | // Check assembly input -> object output |
|
55 | 51 | // TMP: "-cc1" "-triple" "spirv64" |
56 | 52 | // TMP-SAME: "-o" [[BC:".*bc"]] |
57 | 53 | // TMP-SAME: [[I]] |
58 | | -// TMP: {{llvm-spirv.*"}} [[BC]] "--spirv-tools-dis" "-o" [[S:".*s"]] |
| 54 | +// TMP: "-cc1" |
| 55 | +// TMP-SAME: "-o" [[S:".*s"]] |
| 56 | +// TMP-SAME: [[BC]] |
59 | 57 | // TMP: {{spirv-as.*"}} [[S]] "-o" {{".*o"}} |
60 | 58 |
|
61 | 59 | //----------------------------------------------------------------------------- |
62 | 60 | // Check linking when multiple input files are passed. |
63 | 61 | // RUN: %clang -### -target spirv64 %s %s 2>&1 | FileCheck --check-prefix=SPLINK %s |
64 | 62 |
|
65 | 63 | // SPLINK: "-cc1" "-triple" "spirv64" |
66 | | -// SPLINK-SAME: "-o" [[BC:".*bc"]] |
67 | | -// SPLINK: {{llvm-spirv.*"}} [[BC]] "-o" [[SPV1:".*o"]] |
| 64 | +// SPLINK-SAME: "-o" [[SPV1:".*o"]] |
68 | 65 | // SPLINK: "-cc1" "-triple" "spirv64" |
69 | | -// SPLINK-SAME: "-o" [[BC:".*bc"]] |
70 | | -// SPLINK: {{llvm-spirv.*"}} [[BC]] "-o" [[SPV2:".*o"]] |
| 66 | +// SPLINK-SAME: "-o" [[SPV2:".*o"]] |
71 | 67 | // SPLINK: {{spirv-link.*"}} [[SPV1]] [[SPV2]] "-o" "a.out" |
72 | 68 |
|
73 | 69 | //----------------------------------------------------------------------------- |
74 | 70 | // Check bindings when linking when multiple input files are passed. |
75 | 71 | // RUN: %clang -### -target spirv64 -ccc-print-bindings %s %s 2>&1 | FileCheck --check-prefix=SPLINK-BINDINGS %s |
76 | 72 |
|
77 | | -// SPLINK-BINDINGS: "clang", inputs: [[[CL:".*cl"]]], output: [[BC1:".*bc"]] |
78 | | -// SPLINK-BINDINGS: "SPIR-V::Translator", inputs: [[[BC1]]], output: [[OBJ1:".*o"]] |
79 | | -// SPLINK-BINDINGS: "clang", inputs: [[[CL]]], output: [[BC2:".*bc"]] |
80 | | -// SPLINK-BINDINGS: "SPIR-V::Translator", inputs: [[[BC2]]], output: [[OBJ2:".*o"]] |
| 73 | +// SPLINK-BINDINGS: "clang", inputs: [[[CL:".*cl"]]], output: [[OBJ1:".*o"]] |
| 74 | +// SPLINK-BINDINGS: "clang", inputs: [[[CL]]], output: [[OBJ2:".*o"]] |
81 | 75 | // SPLINK-BINDINGS: "SPIR-V::Linker", inputs: [[[OBJ1]], [[OBJ2]]], output: "a.out" |
82 | 76 |
|
83 | 77 | //----------------------------------------------------------------------------- |
84 | 78 | // Check external vs internal object emission. |
85 | 79 | // RUN: %clang -### --target=spirv64 -fno-integrated-objemitter %s 2>&1 | FileCheck --check-prefix=XTOR %s |
86 | 80 | // RUN: %clang -### --target=spirv64 -fintegrated-objemitter %s 2>&1 | FileCheck --check-prefix=BACKEND %s |
87 | 81 |
|
88 | | -// XTOR: {{llvm-spirv.*"}} |
89 | | -// BACKEND-NOT: {{llvm-spirv.*"}} |
| 82 | +// XTOR-NOT: "llvm-spirv.*" |
| 83 | +// BACKEND-NOT: "llvm-spirv.*" |
90 | 84 |
|
91 | 85 | //----------------------------------------------------------------------------- |
92 | | -// Check llvm-spirv-<LLVM_VERSION_MAJOR> is used if it is found in PATH. |
| 86 | +// Check spirv-as-<LLVM_VERSION_MAJOR> is used if it is found in PATH. |
93 | 87 | // |
94 | 88 | // This test uses the PATH environment variable; on Windows, we may need to retain |
95 | 89 | // the original path for the built Clang binary to be able to execute (as it is |
96 | 90 | // used for locating dependent DLLs). Therefore, skip this test on system-windows. |
97 | 91 | // |
98 | 92 | // RUN: mkdir -p %t/versioned |
99 | | -// RUN: touch %t/versioned/llvm-spirv-%llvm-version-major \ |
100 | | -// RUN: && chmod +x %t/versioned/llvm-spirv-%llvm-version-major |
101 | | -// RUN: %if !system-windows %{ env "PATH=%t/versioned" %clang -### --target=spirv64 -x cl -c %s 2>&1 \ |
| 93 | +// RUN: touch %t/versioned/spirv-as-%llvm-version-major \ |
| 94 | +// RUN: && chmod +x %t/versioned/spirv-as-%llvm-version-major |
| 95 | +// RUN: %if !system-windows %{ env "PATH=%t/versioned" %clang -### --target=spirv64 -x cl -c --save-temps %s 2>&1 \ |
102 | 96 | // RUN: | FileCheck -DVERSION=%llvm-version-major --check-prefix=VERSIONED %s %} |
103 | 97 |
|
104 | | -// VERSIONED: {{.*}}llvm-spirv-[[VERSION]] |
| 98 | +// VERSIONED: {{.*}}spirv-as-[[VERSION]] |
0 commit comments