|
9 | 9 | // DEFINE: %{dynamic_lib_options} = -fsycl %fPIC %shared_lib -fsycl-allow-device-image-dependencies -I %S/Inputs %if windows %{-DMAKE_DLL %}
|
10 | 10 | // DEFINE: %{dynamic_lib_suffix} = %if windows %{dll%} %else %{so%}
|
11 | 11 |
|
12 |
| -// RUN: %clangxx %{dynamic_lib_options} %S/Inputs/d.cpp -o %T/libdevice_d.%{dynamic_lib_suffix} |
13 |
| -// RUN: %clangxx %{dynamic_lib_options} %S/Inputs/c.cpp %if windows %{%T/libdevice_d.lib%} -o %T/libdevice_c.%{dynamic_lib_suffix} |
14 |
| -// RUN: %clangxx %{dynamic_lib_options} %S/Inputs/b.cpp %if windows %{%T/libdevice_c.lib%} -o %T/libdevice_b.%{dynamic_lib_suffix} |
15 |
| -// RUN: %clangxx %{dynamic_lib_options} %S/Inputs/a.cpp %if windows %{%T/libdevice_b.lib%} -o %T/libdevice_a.%{dynamic_lib_suffix} |
| 12 | +// RUN: %clangxx %{dynamic_lib_options} %S/Inputs/d.cpp \ |
| 13 | +// RUN: -o %T/libdevicecompress_d.%{dynamic_lib_suffix} |
| 14 | + |
| 15 | +// RUN: %clangxx %{dynamic_lib_options} %S/Inputs/c.cpp \ |
| 16 | +// RUN: %if windows %{%T/libdevicecompress_d.lib%} \ |
| 17 | +// RUN: -o %T/libdevicecompress_c.%{dynamic_lib_suffix} |
| 18 | + |
| 19 | +// RUN: %clangxx %{dynamic_lib_options} %S/Inputs/b.cpp \ |
| 20 | +// RUN: %if windows %{%T/libdevicecompress_c.lib%} \ |
| 21 | +// RUN: -o %T/libdevicecompress_b.%{dynamic_lib_suffix} |
| 22 | + |
| 23 | +// RUN: %clangxx %{dynamic_lib_options} %S/Inputs/a.cpp \ |
| 24 | +// RUN: %if windows %{%T/libdevicecompress_b.lib%} \ |
| 25 | +// RUN: -o %T/libdevicecompress_a.%{dynamic_lib_suffix} |
16 | 26 |
|
17 | 27 | // Compressed main executable, while dependencies are not compressed.
|
18 | 28 |
|
19 |
| -// RUN: %clangxx -fsycl --offload-compress %{sycl_target_opts} -fsycl-allow-device-image-dependencies -fsycl-device-code-split=per_kernel %S/Inputs/basic.cpp -o %t.out \ |
20 |
| -// RUN: %if windows \ |
21 |
| -// RUN: %{%T/libdevice_a.lib%} \ |
22 |
| -// RUN: %else \ |
23 |
| -// RUN: %{-L%T -ldevice_a -ldevice_b -ldevice_c -ldevice_d -Wl,-rpath=%T%} |
| 29 | +// RUN: %clangxx -fsycl --offload-compress %{sycl_target_opts} \ |
| 30 | +// RUN: -fsycl-allow-device-image-dependencies -fsycl-device-code-split=per_kernel \ |
| 31 | +// RUN: %S/Inputs/basic.cpp -o %t.out \ |
| 32 | +// RUN: %if windows \ |
| 33 | +// RUN: %{%T/libdevicecompress_a.lib%} \ |
| 34 | +// RUN: %else \ |
| 35 | +// RUN: %{-L%T -ldevicecompress_a -ldevicecompress_b -ldevicecompress_c -ldevicecompress_d -Wl,-rpath=%T%} |
24 | 36 |
|
25 | 37 | // RUN: %{run} %t.out
|
0 commit comments