|
23 | 23 | // BIN-NOT: cuda-bindings-device-cuda-nvptx64 |
24 | 24 | // BIN: # "powerpc64le-ibm-linux-gnu" - "clang",{{.*}} output: |
25 | 25 | // BIN-NOT: cuda-bindings-device-cuda-nvptx64 |
26 | | -// BIN: # "powerpc64le-ibm-linux-gnu" - "GNU::Linker", inputs:{{.*}}, output: "a.out" |
| 26 | +// BIN: # "powerpc64le-ibm-linux-gnu" - "Offload::Linker", inputs:{{.*}}, output: "a.out" |
27 | 27 |
|
28 | 28 | // |
29 | 29 | // Test single gpu architecture up to the assemble phase. |
30 | 30 | // |
31 | 31 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings --cuda-gpu-arch=sm_30 %s -S 2>&1 \ |
32 | 32 | // RUN: | FileCheck -check-prefix=ASM %s |
33 | | -// ASM-DAG: # "nvptx64-nvidia-cuda" - "clang",{{.*}} output: "cuda-bindings-cuda-nvptx64-nvidia-cuda-sm_30.s" |
| 33 | +// ASM-DAG: # "nvptx64-nvidia-cuda" - "clang",{{.*}} output: "[[PTX:.+]].s" |
34 | 34 | // ASM-DAG: # "powerpc64le-ibm-linux-gnu" - "clang",{{.*}} output: "cuda-bindings.s" |
35 | 35 |
|
36 | 36 | // |
|
61 | 61 | // BIN2-NOT: cuda-bindings-device-cuda-nvptx64 |
62 | 62 | // BIN2: # "powerpc64le-ibm-linux-gnu" - "clang",{{.*}} output: |
63 | 63 | // BIN2-NOT: cuda-bindings-device-cuda-nvptx64 |
64 | | -// AOUT: # "powerpc64le-ibm-linux-gnu" - "GNU::Linker", inputs:{{.*}}, output: "a.out" |
65 | | -// TOUT: # "powerpc64le-ibm-linux-gnu" - "GNU::Linker", inputs:{{.*}}, output: "{{.*}}/out" |
| 64 | +// AOUT: # "powerpc64le-ibm-linux-gnu" - "Offload::Linker", inputs:{{.*}}, output: "a.out" |
| 65 | +// TOUT: # "powerpc64le-ibm-linux-gnu" - "Offload::Linker", inputs:{{.*}}, output: "{{.*}}/out" |
66 | 66 |
|
67 | 67 | // .. same, but with -fsyntax-only |
68 | 68 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings -fsyntax-only \ |
69 | 69 | // RUN: --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s 2>&1 \ |
70 | | -// RUN: | FileCheck -check-prefix=SYN %s |
71 | | -// RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings -fsyntax-only \ |
72 | | -// RUN: --offload-arch=sm_30,sm_35 %s -o %t/out 2>&1 \ |
73 | | -// RUN: | FileCheck -check-prefix=SYN %s |
74 | | -// RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings -fsyntax-only \ |
75 | | -// RUN: --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s 2>&1 \ |
76 | | -// RUN: | FileCheck -check-prefix=SYN %s |
77 | | -// RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings -fsyntax-only \ |
78 | | -// RUN: --offload-arch=sm_30,sm_35 %s -o %t/out 2>&1 \ |
79 | | -// RUN: | FileCheck -check-prefix=SYN %s |
80 | | -// SYN-NOT: inputs: |
81 | | -// SYN: # "powerpc64le-ibm-linux-gnu" - "clang", inputs: [{{.*}}], output: (nothing) |
82 | | -// SYN-NEXT: # "nvptx64-nvidia-cuda" - "clang", inputs: [{{.*}}], output: (nothing) |
83 | | -// SYN-NEXT: # "nvptx64-nvidia-cuda" - "clang", inputs: [{{.*}}], output: (nothing) |
84 | | -// SYN-NOT: inputs |
85 | | - |
86 | | -// .. and with --offload-new-driver |
87 | | -// RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings -fsyntax-only \ |
88 | | -// RUN: --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 --offload-new-driver %s 2>&1 \ |
89 | 70 | // RUN: | FileCheck -check-prefix=NDSYN %s |
90 | 71 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings -fsyntax-only \ |
91 | | -// RUN: --offload-arch=sm_30,sm_35 %s --offload-new-driver -o %t/out 2>&1 \ |
| 72 | +// RUN: --offload-arch=sm_30,sm_35 %s -o %t/out 2>&1 \ |
92 | 73 | // RUN: | FileCheck -check-prefix=NDSYN %s |
93 | 74 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings -fsyntax-only \ |
94 | | -// RUN: --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s --offload-new-driver 2>&1 \ |
| 75 | +// RUN: --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s 2>&1 \ |
95 | 76 | // RUN: | FileCheck -check-prefix=NDSYN %s |
96 | 77 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings -fsyntax-only \ |
97 | | -// RUN: --offload-arch=sm_30,sm_35 %s --offload-new-driver -o %t/out 2>&1 \ |
| 78 | +// RUN: --offload-arch=sm_30,sm_35 %s -o %t/out 2>&1 \ |
98 | 79 | // RUN: | FileCheck -check-prefix=NDSYN %s |
99 | 80 | // NDSYN-NOT: inputs: |
100 | 81 | // NDSYN: # "nvptx64-nvidia-cuda" - "clang", inputs: [{{.*}}], output: (nothing) |
|
109 | 90 | // RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings \ |
110 | 91 | // RUN: --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s -S 2>&1 \ |
111 | 92 | // RUN: | FileCheck -check-prefix=ASM2 %s |
112 | | -// ASM2-DAG: # "nvptx64-nvidia-cuda" - "clang",{{.*}} output: "cuda-bindings-cuda-nvptx64-nvidia-cuda-sm_30.s" |
113 | | -// ASM2-DAG: # "nvptx64-nvidia-cuda" - "clang",{{.*}} output: "cuda-bindings-cuda-nvptx64-nvidia-cuda-sm_35.s" |
| 93 | +// ASM2-DAG: # "nvptx64-nvidia-cuda" - "clang",{{.*}} output: "[[SM30:.+]].s" |
| 94 | +// ASM2-DAG: # "nvptx64-nvidia-cuda" - "clang",{{.*}} output: "[[SM35:.+]].s" |
114 | 95 | // ASM2-DAG: # "powerpc64le-ibm-linux-gnu" - "clang",{{.*}} output: "cuda-bindings.s" |
115 | 96 |
|
116 | 97 | // |
|
125 | 106 | // RUN: | FileCheck -check-prefix=HBIN %s |
126 | 107 | // HBIN: # "powerpc64le-ibm-linux-gnu" - "clang",{{.*}} output: |
127 | 108 | // HBIN-NOT: cuda-bindings-device-cuda-nvptx64 |
128 | | -// HBIN: # "powerpc64le-ibm-linux-gnu" - "GNU::Linker", inputs:{{.*}}, output: "a.out" |
| 109 | +// HBIN: # "powerpc64le-ibm-linux-gnu" - "Offload::Linker", inputs:{{.*}}, output: "a.out" |
129 | 110 |
|
130 | 111 | // |
131 | 112 | // Test one or more gpu architecture up to the assemble phase in host-only |
|
163 | 144 | // Test two gpu architectures with complete compilation in device-only |
164 | 145 | // compilation mode. |
165 | 146 | // |
166 | | -// RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings \ |
| 147 | +// RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings --no-offload-new-driver \ |
167 | 148 | // RUN: --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s --cuda-device-only 2>&1 \ |
168 | 149 | // RUN: | FileCheck -check-prefix=DBIN2 %s |
169 | 150 | // DBIN2: # "nvptx64-nvidia-cuda" - "clang",{{.*}} output: |
|
177 | 158 | // Test two gpu architectures up to the assemble phase in device-only |
178 | 159 | // compilation mode. |
179 | 160 | // |
180 | | -// RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings \ |
| 161 | +// RUN: %clang -target powerpc64le-ibm-linux-gnu -ccc-print-bindings --no-offload-new-driver \ |
181 | 162 | // RUN: --cuda-gpu-arch=sm_30 --cuda-gpu-arch=sm_35 %s --cuda-device-only -S 2>&1 \ |
182 | 163 | // RUN: | FileCheck -check-prefix=DASM2 %s |
183 | 164 | // DASM2: # "nvptx64-nvidia-cuda" - "clang",{{.*}} output: "cuda-bindings-cuda-nvptx64-nvidia-cuda-sm_30.s" |
|
0 commit comments