================ @@ -0,0 +1,27 @@ +// Verify the ELF packaging of OpenMP SPIR-V device images. +// REQUIRES: system-linux +// REQUIRES: spirv-tools +// REQUIRES: spirv-registered-target +// REQUIRES: x86-registered-target + +// RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-llvm-bc -o %t.bc +// RUN: %clang -cc1 %s -triple spirv64-intel -fopenmp-is-target-device -o %t.device.o +// RUN: llvm-offload-binary -o %t.bundle --image=file=%t.device.o,triple=spirv64-intel,arch=generic,kind=openmp +// RUN: %clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -fembed-offload-object=%t.bundle -x ir %t.bc -o %t.host.o ---------------- bader wrote:
It seems to me that `clang/test/Tooling/clang-linker-wrapper-spirv.cpp` shouldn't belong to https://github.com/llvm/llvm-project/pull/185425. I mean the goal of this test is not to test `llvm-objdump` functionality, but rather test that OpenMP offload compiler produces new object format, which was not supported before https://github.com/llvm/llvm-project/pull/185425. Based on Yury's changes, he interprets `spirv.cpp` as a `clang-linker-wrapper` functionality test, rather than an OpenMP offload compiler test. https://github.com/llvm/llvm-project/pull/198434 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
