Debian Codegraph @

clang/test/Driver/sycl-link-spirv-target.cpp

raw
1 // Tests the driver when linking LLVM IR bitcode files and targeting SPIR-V
2 // architecture.
3 //
4 // REQUIRES: spirv-registered-target
5 //
6 // Test that -Xlinker options are being passed to clang-sycl-linker.
7 // RUN: touch %t.bc
8 // RUN: %clangxx -### --target=spirv64 --sycl-link -Xlinker -triple=spirv64 -Xlinker --library-path=/tmp \
9 // RUN: -Xlinker --device-libs=lib1.bc,lib2.bc %t.bc 2>&1 \
10 // RUN: | FileCheck %s -check-prefix=XLINKEROPTS
11 // XLINKEROPTS: "{{.*}}clang-sycl-linker{{.*}}" "-triple=spirv64" "--library-path=/tmp" "--device-libs=lib1.bc,lib2.bc" "{{.*}}.bc" "-o" "a.out"