|
6 | 6 | // RUN: | FileCheck %s --check-prefixes=CHECK-LINUX
|
7 | 7 | // CHECK-LINUX: "-cc1"{{.*}} "-fsycl-is-device"{{.*}} "-mlink-builtin-bitcode" "{{.*[\\/]}}remangled-l64-signed_char.libspirv-nvptx64-nvidia-cuda.bc"
|
8 | 8 | //
|
9 |
| -// RUN: %clang -### -resource-dir %S/Inputs/SYCL/lib/clang/resource_dir -fsycl -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=gfx908 -nogpulib -target x86_64-unknown-windows-msvc %s 2>&1 \ |
| 9 | +// RUN: %clang -### -ccc-install-dir %S/Inputs/SYCL/bin -fsycl -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=gfx908 -nogpulib -target x86_64-unknown-windows-msvc %s 2>&1 \ |
10 | 10 | // RUN: | FileCheck %s --check-prefixes=CHECK-AMDGCN-WINDOWS
|
11 | 11 | // CHECK-AMDGCN-WINDOWS: "-cc1"{{.*}} "-fsycl-is-device"{{.*}} "-mlink-builtin-bitcode" "{{.*[\\/]}}remangled-l32-signed_char.libspirv-amdgcn-amd-amdhsa.bc"
|
12 | 12 | //
|
|
21 | 21 | // CHECK-CUDA: "-cc1"{{.*}} "-fcuda-is-device"
|
22 | 22 | // CHECK-CUDA-NOT: "-mlink-builtin-bitcode" "{{.*}}.libspirv-{{.*}}.bc"
|
23 | 23 | //
|
24 |
| -// The path to the remangled libspirv bitcode file is determined by the resource directory. |
| 24 | +// The path to the remangled libspirv bitcode file is determined by the installation directory |
25 | 25 | // RUN: %clang -### -ccc-install-dir %S/Inputs/SYCL/bin -resource-dir %S/Inputs/SYCL/lib/clang/resource_dir -fsycl -fsycl-targets=nvptx64-nvidia-cuda -nocudalib %s 2>&1 \
|
26 | 26 | // RUN: | FileCheck %s -DINSTALL_DIR=%S/Inputs/SYCL/bin -DRESOURCE_DIR=%S/Inputs/SYCL/lib/clang/resource_dir --check-prefixes=CHECK-DIR
|
27 |
| -// CHECK-DIR: "-cc1"{{.*}} "-fsycl-is-device"{{.*}} "-mlink-builtin-bitcode" "[[RESOURCE_DIR]]{{.*[\\/]}}remangled-{{.*}}.libspirv-nvptx64-nvidia-cuda.bc" |
| 27 | +// CHECK-DIR: "-cc1"{{.*}} "-fsycl-is-device"{{.*}} "-mlink-builtin-bitcode" "[[INSTALL_DIR]]{{.*[\\/]}}remangled-{{.*}}.libspirv-nvptx64-nvidia-cuda.bc" |
28 | 28 | //
|
29 | 29 | // The `-###` option disables file existence checks
|
30 |
| -// RUN: %clang -### -resource-dir %S/Inputs/SYCL/does_not_exist/lib/clang/resource_dir -fsycl -fsycl-targets=nvptx64-nvidia-cuda -nocudalib %s 2>&1 \ |
31 |
| -// RUN: | FileCheck %s -DDIR=%S/Inputs/SYCL/does_not_exist/lib/clang/resource_dir --check-prefixes=CHECK-HHH-NOT-FOUND |
| 30 | +// RUN: %clang -### -ccc-install-dir %S/Inputs/SYCL/does_not_exist/bin -fsycl -fsycl-targets=nvptx64-nvidia-cuda -nocudalib %s 2>&1 \ |
| 31 | +// RUN: | FileCheck %s -DDIR=%S/Inputs/SYCL/does_not_exist/bin --check-prefixes=CHECK-HHH-NOT-FOUND |
32 | 32 | // CHECK-HHH-NOT-FOUND: "-cc1"{{.*}} "-fsycl-is-device"{{.*}} "-mlink-builtin-bitcode" "[[DIR]]{{.*[\\/]}}remangled-{{.*}}.libspirv-nvptx64-nvidia-cuda.bc"
|
33 | 33 | //
|
34 |
| -// RUN: %clang -### -resource-dir %S/Inputs/SYCL/does_not_exist/lib/clang/resource_dir -fsycl -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=gfx908 -nogpulib %s 2>&1 \ |
35 |
| -// RUN: | FileCheck %s -DDIR=%S/Inputs/SYCL/does_not_exist/lib/clang/resource_dir --check-prefixes=CHECK-AMDGCN-HHH-NOT-FOUND |
| 34 | +// RUN: %clang -### -ccc-install-dir %S/Inputs/SYCL/does_not_exist/bin -fsycl -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=gfx908 -nogpulib %s 2>&1 \ |
| 35 | +// RUN: | FileCheck %s -DDIR=%S/Inputs/SYCL/does_not_exist/bin --check-prefixes=CHECK-AMDGCN-HHH-NOT-FOUND |
36 | 36 | // CHECK-AMDGCN-HHH-NOT-FOUND: "-cc1"{{.*}} "-fsycl-is-device"{{.*}} "-mlink-builtin-bitcode" "[[DIR]]{{.*[\\/]}}remangled-{{.*}}.libspirv-amdgcn-amd-amdhsa.bc"
|
37 | 37 | //
|
38 | 38 | // `-fdriver-only` has no such special handling, so it will not find the file
|
39 |
| -// RUN: not %clang -fdriver-only -resource-dir %S/Inputs/SYCL/does_not_exist/lib/clang/resource_dir -fsycl -fsycl-targets=nvptx64-nvidia-cuda -nocudalib %s 2>&1 \ |
40 |
| -// RUN: | FileCheck %s -DDIR=%S/Inputs/SYCL/does_not_exist/lib/clang/resource_dir --check-prefixes=CHECK-DO-NOT-FOUND |
| 39 | +// RUN: not %clang -fdriver-only -ccc-install-dir %S/Inputs/SYCL/does_not_exist/bin -fsycl -fsycl-targets=nvptx64-nvidia-cuda -nocudalib %s 2>&1 \ |
| 40 | +// RUN: | FileCheck %s -DDIR=%S/Inputs/SYCL/does_not_exist/bin --check-prefixes=CHECK-DO-NOT-FOUND |
41 | 41 | // CHECK-DO-NOT-FOUND: error: cannot find 'remangled-{{.*}}.libspirv-nvptx64-nvidia-cuda.bc'; provide path to libspirv library via '-fsycl-libspirv-path', or pass '-fno-sycl-libspirv' to build without linking with libspirv
|
0 commit comments