|
26 | 26 | // BIN-NOT: cuda-bindings-device-cuda-nvptx64 |
27 | 27 | // BIN: # "powerpc64le-ibm-linux-gnu" - "clang",{{.*}} output: |
28 | 28 | // BIN-NOT: cuda-bindings-device-cuda-nvptx64 |
29 | | -// BIN: # "powerpc64le-ibm-linux-gnu" - "GNU::Linker", inputs:{{.*}}, output: "a.out" |
| 29 | +// BIN: # "powerpc64le-ibm-linux-gnu" - "Offload::Linker", inputs:{{.*}}, output: "a.out" |
30 | 30 |
|
31 | 31 | // |
32 | 32 | // Test single gpu architecture up to the assemble phase. |
33 | 33 | // |
34 | 34 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings --cuda-gpu-arch=sm_30 %s -S 2>&1 \ |
35 | 35 | // RUN: | FileCheck -check-prefix=ASM %s |
36 | | -// ASM-DAG: # "nvptx64-nvidia-cuda" - "clang",{{.*}} output: "cuda-bindings-cuda-nvptx64-nvidia-cuda-sm_30.s" |
| 36 | +// ASM-DAG: # "nvptx64-nvidia-cuda" - "clang",{{.*}} output: "[[BINDINGS:.+.s]]" |
37 | 37 | // ASM-DAG: # "powerpc64le-ibm-linux-gnu" - "clang",{{.*}} output: "cuda-bindings.s" |
38 | 38 |
|
39 | 39 | // |
|
64 | 64 | // BIN2-NOT: cuda-bindings-device-cuda-nvptx64 |
65 | 65 | // BIN2: # "powerpc64le-ibm-linux-gnu" - "clang",{{.*}} output: |
66 | 66 | // BIN2-NOT: cuda-bindings-device-cuda-nvptx64 |
67 | | -// AOUT: # "powerpc64le-ibm-linux-gnu" - "GNU::Linker", inputs:{{.*}}, output: "a.out" |
68 | | -// TOUT: # "powerpc64le-ibm-linux-gnu" - "GNU::Linker", inputs:{{.*}}, output: "{{.*}}/out" |
| 67 | +// AOUT: # "powerpc64le-ibm-linux-gnu" - "Offload::Linker", inputs:{{.*}}, output: "a.out" |
| 68 | +// TOUT: # "powerpc64le-ibm-linux-gnu" - "Offload::Linker", inputs:{{.*}}, output: "{{.*}}/out" |
69 | 69 |
|
70 | 70 | // .. same, but with -fsyntax-only |
71 | 71 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings -fsyntax-only \ |
|
81 | 81 | // RUN: --offload-arch=sm_30,sm_35 %s -o %t/out 2>&1 \ |
82 | 82 | // RUN: | FileCheck -check-prefix=SYN %s |
83 | 83 | // SYN-NOT: inputs: |
84 | | -// SYN: # "powerpc64le-ibm-linux-gnu" - "clang", inputs: [{{.*}}], output: (nothing) |
85 | | -// SYN-NEXT: # "nvptx64-nvidia-cuda" - "clang", inputs: [{{.*}}], output: (nothing) |
| 84 | +// SYN: # "nvptx64-nvidia-cuda" - "clang", inputs: [{{.*}}], output: (nothing) |
86 | 85 | // SYN-NEXT: # "nvptx64-nvidia-cuda" - "clang", inputs: [{{.*}}], output: (nothing) |
| 86 | +// SYN-NEXT: # "powerpc64le-ibm-linux-gnu" - "clang", inputs: [{{.*}}], output: (nothing) |
87 | 87 | // SYN-NOT: inputs |
88 | 88 |
|
89 | 89 | // .. and with --offload-new-driver |
|
100 | 100 | // RUN: --offload-arch=sm_30,sm_35 %s --offload-new-driver -o %t/out 2>&1 \ |
101 | 101 | // RUN: | FileCheck -check-prefix=NDSYN %s |
102 | 102 | // NDSYN-NOT: inputs: |
103 | | -// NDSYN: # "nvptx64-nvidia-cuda" - "clang", inputs: [{{.*}}], output: (nothing) |
| 103 | +// NDSYN: # "nvptx64-nvidia-cuda" - "clang", inputs: [{{.*}}], output: (nothing) |
104 | 104 | // NDSYN-NEXT: # "nvptx64-nvidia-cuda" - "clang", inputs: [{{.*}}], output: (nothing) |
105 | 105 | // NDSYN-NEXT: # "powerpc64le-ibm-linux-gnu" - "clang", inputs: [{{.*}}], output: (nothing) |
106 | 106 | // NDSYN-NOT: inputs: |
|
112 | 112 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings \ |
113 | 113 | // RUN: --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s -S 2>&1 \ |
114 | 114 | // RUN: | FileCheck -check-prefix=ASM2 %s |
115 | | -// ASM2-DAG: # "nvptx64-nvidia-cuda" - "clang",{{.*}} output: "cuda-bindings-cuda-nvptx64-nvidia-cuda-sm_30.s" |
116 | | -// ASM2-DAG: # "nvptx64-nvidia-cuda" - "clang",{{.*}} output: "cuda-bindings-cuda-nvptx64-nvidia-cuda-sm_35.s" |
| 115 | +// ASM2-DAG: # "nvptx64-nvidia-cuda" - "clang",{{.*}} output: "[[SM30:.+.s]]" |
| 116 | +// ASM2-DAG: # "nvptx64-nvidia-cuda" - "clang",{{.*}} output: "[[SM35:.+.s]]" |
117 | 117 | // ASM2-DAG: # "powerpc64le-ibm-linux-gnu" - "clang",{{.*}} output: "cuda-bindings.s" |
118 | 118 |
|
119 | 119 | // |
|
128 | 128 | // RUN: | FileCheck -check-prefix=HBIN %s |
129 | 129 | // HBIN: # "powerpc64le-ibm-linux-gnu" - "clang",{{.*}} output: |
130 | 130 | // HBIN-NOT: cuda-bindings-device-cuda-nvptx64 |
131 | | -// HBIN: # "powerpc64le-ibm-linux-gnu" - "GNU::Linker", inputs:{{.*}}, output: "a.out" |
| 131 | +// HBIN: # "powerpc64le-ibm-linux-gnu" - "Offload::Linker", inputs:{{.*}}, output: "a.out" |
132 | 132 |
|
133 | 133 | // |
134 | 134 | // Test one or more gpu architecture up to the assemble phase in host-only |
|
166 | 166 | // Test two gpu architectures with complete compilation in device-only |
167 | 167 | // compilation mode. |
168 | 168 | // |
169 | | -// RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings \ |
| 169 | +// RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings --no-offload-new-driver \ |
170 | 170 | // RUN: --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s --cuda-device-only 2>&1 \ |
171 | 171 | // RUN: | FileCheck -check-prefix=DBIN2 %s |
172 | 172 | // DBIN2: # "nvptx64-nvidia-cuda" - "clang",{{.*}} output: |
|
180 | 180 | // Test two gpu architectures up to the assemble phase in device-only |
181 | 181 | // compilation mode. |
182 | 182 | // |
183 | | -// RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings \ |
| 183 | +// RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings --no-offload-new-driver \ |
184 | 184 | // RUN: --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s --cuda-device-only -S 2>&1 \ |
185 | 185 | // RUN: | FileCheck -check-prefix=DASM2 %s |
186 | 186 | // DASM2: # "nvptx64-nvidia-cuda" - "clang",{{.*}} output: "cuda-bindings-cuda-nvptx64-nvidia-cuda-sm_30.s" |
|
0 commit comments