[clang] [clang][test] Move offload tools tests to clang/test/OffloadTools (PR #198434)
Alexey Bader via cfe-commits
cfe-commits at lists.llvm.org
Fri May 22 09:47:35 PDT 2026
================
@@ -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:
Please, use %clang_cc1 substitution.
These are needed to create an input file for the `clang-linker-wrapper` tool we are testing. @sarnex, @adurang, do you have any thoughts on optimizing these four lines?
For instance, can we use an empty file for %t.device.o?
https://github.com/llvm/llvm-project/pull/198434
More information about the cfe-commits
mailing list