|
639 | 639 | // CHECK-LD-NOSTDLIB: "{{.*}}ld{{(.exe)?}}" |
640 | 640 | // CHECK-LD-NOSTDLIB-NOT: "-lsycl" |
641 | 641 |
|
642 | | -/// Check for default linking of sycl.lib with -fsycl usage |
| 642 | +/// Check for default linking of syclN.lib with -fsycl usage |
643 | 643 | // RUN: %clang -fsycl -target x86_64-unknown-windows-msvc %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-SYCL %s |
644 | 644 | // RUN: %clang_cl -fsycl %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-SYCL-CL %s |
645 | | -// CHECK-LINK-SYCL-CL: "--dependent-lib=sycl" |
646 | | -// CHECK-LINK-SYCL-CL-NOT: "-defaultlib:sycl.lib" |
647 | | -// CHECK-LINK-SYCL: "-defaultlib:sycl.lib" |
| 645 | +// CHECK-LINK-SYCL-CL: "--dependent-lib=sycl{{[0-9]*}}" |
| 646 | +// CHECK-LINK-SYCL-CL-NOT: "-defaultlib:sycl{{[0-9]*}}.lib" |
| 647 | +// CHECK-LINK-SYCL: "-defaultlib:sycl{{[0-9]*}}.lib" |
648 | 648 |
|
649 | 649 | /// Check no SYCL runtime is linked with -nolibsycl |
650 | 650 | // RUN: %clang -fsycl -nolibsycl -target x86_64-unknown-windows-msvc %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-NOLIBSYCL %s |
651 | 651 | // RUN: %clang_cl -fsycl -nolibsycl %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-NOLIBSYCL-CL %s |
652 | | -// CHECK-LINK-NOLIBSYCL-CL-NOT: "--dependent-lib=sycl" |
| 652 | +// CHECK-LINK-NOLIBSYCL-CL-NOT: "--dependent-lib=sycl{{[0-9]*}}" |
653 | 653 | // CHECK-LINK-NOLIBSYCL: "{{.*}}link{{(.exe)?}}" |
654 | | -// CHECK-LINK-NOLIBSYCL-NOT: "-defaultlib:sycl.lib" |
| 654 | +// CHECK-LINK-NOLIBSYCL-NOT: "-defaultlib:sycl{{[0-9]*}}.lib" |
655 | 655 |
|
656 | 656 | /// Check SYCL runtime is linked despite -nostdlib on Windows, this is |
657 | 657 | /// necessary for the Windows Clang CMake to work |
658 | 658 | // RUN: %clang -fsycl -nostdlib -target x86_64-unknown-windows-msvc %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-NOSTDLIB %s |
659 | 659 | // RUN: %clang_cl -fsycl -nostdlib %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-NOSTDLIB-CL %s |
660 | | -// CHECK-LINK-NOSTDLIB-CL: "--dependent-lib=sycl" |
| 660 | +// CHECK-LINK-NOSTDLIB-CL: "--dependent-lib=sycl{{[0-9]*}}" |
661 | 661 | // CHECK-LINK-NOSTDLIB: "{{.*}}link{{(.exe)?}}" |
662 | | -// CHECK-LINK-NOSTDLIB: "-defaultlib:sycl.lib" |
| 662 | +// CHECK-LINK-NOSTDLIB: "-defaultlib:sycl{{[0-9]*}}.lib" |
663 | 663 |
|
664 | 664 | /// Check sycld.lib is chosen with /MDd or -g |
665 | 665 | // RUN: %clang -fsycl -g -target x86_64-unknown-windows-msvc %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-SYCL-DEBUG %s |
666 | 666 | // RUN: %clang_cl -fsycl /MDd %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-SYCL-DEBUG-CL %s |
667 | | -// CHECK-LINK-SYCL-DEBUG-CL: "--dependent-lib=sycld" |
668 | | -// CHECK-LINK-SYCL-DEBUG-CL-NOT: "-defaultlib:sycld.lib" |
669 | | -// CHECK-LINK-SYCL-DEBUG: "-defaultlib:sycld.lib" |
670 | | -// CHECK-LINK-SYCL-DEBUG-NOT: "--dependent-lib=sycld" |
| 667 | +// CHECK-LINK-SYCL-DEBUG-CL: "--dependent-lib=sycl{{[0-9]*}}d" |
| 668 | +// CHECK-LINK-SYCL-DEBUG-CL-NOT: "-defaultlib:sycl{{[0-9]*}}d.lib" |
| 669 | +// CHECK-LINK-SYCL-DEBUG: "-defaultlib:sycl{{[0-9]*}}d.lib" |
| 670 | +// CHECK-LINK-SYCL-DEBUG-NOT: "--dependent-lib=sycl{{[0-9]*}}d" |
671 | 671 |
|
672 | 672 | /// Check "-spirv-allow-unknown-intrinsics=llvm.genx." option is emitted for llvm-spirv tool |
673 | 673 | // RUN: %clangxx %s -fsycl -### 2>&1 | FileCheck %s --check-prefix=CHK-ALLOW-INTRIN |
|
0 commit comments