|
416 | 416 |
|
417 | 417 | /// Check -fsycl-link behaviors unbundle |
418 | 418 | // RUN: touch %t.o |
419 | | -// RUN: %clang -### -ccc-print-phases -target x86_64-unknown-linux-gnu -fsycl -o %t.out -fsycl-link %t.o 2>&1 \ |
| 419 | +// RUN: %clang -### -ccc-print-phases -target x86_64-unknown-linux-gnu -fsycl -o %t.out -fsycl-link -fno-sycl-device-lib=all %t.o 2>&1 \ |
420 | 420 | // RUN: | FileCheck -check-prefix=CHK-LINK-UB %s |
421 | | -// RUN: %clang_cl -### -ccc-print-phases -fsycl -o %t.out -fsycl-link %t.o 2>&1 \ |
| 421 | +// RUN: %clang_cl -### -ccc-print-phases -fsycl -o %t.out -fsycl-link -fno-sycl-device-lib=all %t.o 2>&1 \ |
422 | 422 | // RUN: | FileCheck -check-prefix=CHK-LINK-UB %s |
423 | 423 | // CHK-LINK-UB: 0: input, "[[INPUT:.+\.o]]", object |
424 | 424 | // CHK-LINK-UB: 1: clang-offload-unbundler, {0}, object |
|
431 | 431 | /// ########################################################################### |
432 | 432 |
|
433 | 433 | /// Check -fsycl-link behaviors from source |
434 | | -// RUN: %clang -### -ccc-print-phases -target x86_64-unknown-linux-gnu -fsycl -o %t.out -fsycl-link %s 2>&1 \ |
| 434 | +// RUN: %clang -### -ccc-print-phases -target x86_64-unknown-linux-gnu -fsycl -o %t.out -fsycl-link -fno-sycl-device-lib=all %s 2>&1 \ |
435 | 435 | // RUN: | FileCheck -check-prefix=CHK-LINK %s |
436 | | -// RUN: %clang_cl -### -ccc-print-phases -fsycl -o %t.out -fsycl-link %s 2>&1 \ |
| 436 | +// RUN: %clang_cl -### -ccc-print-phases -fsycl -o %t.out -fsycl-link -fno-sycl-device-lib=all %s 2>&1 \ |
437 | 437 | // RUN: | FileCheck -check-prefix=CHK-LINK %s |
438 | 438 | // CHK-LINK: 0: input, "[[INPUT:.+\.c]]", c++, (device-sycl) |
439 | 439 | // CHK-LINK: 1: preprocessor, {0}, c++-cpp-output, (device-sycl) |
|
758 | 758 | // RUN: | FileCheck -check-prefix=CHK-TOOLS-IMPLIED-OPTS-GEN %s |
759 | 759 | // RUN: %clang_cl -### -fsycl -fsycl-targets=spir64_gen-unknown-unknown-sycldevice -Zi -Od -Xsycl-target-backend "-DFOO1 -DFOO2" %s 2>&1 \ |
760 | 760 | // RUN: | FileCheck -check-prefix=CHK-TOOLS-IMPLIED-OPTS-GEN %s |
761 | | -// CHK-TOOLS-IMPLIED-OPTS-GEN: ocloc{{.*}} "-options" "-g -O0" "-DFOO1" "-DFOO2" |
| 761 | +// CHK-TOOLS-IMPLIED-OPTS-GEN: ocloc{{.*}} "-options" "-g -cl-opt-disable" "-DFOO1" "-DFOO2" |
762 | 762 |
|
763 | 763 | /// Check -Xsycl-target-linker option passing |
764 | 764 | // RUN: %clang -### -target x86_64-unknown-linux-gnu -fsycl -fsycl-targets=spir64_fpga-unknown-unknown-sycldevice -Xsycl-target-linker "-DFOO1 -DFOO2" %s 2>&1 \ |
|
0 commit comments