[libc-commits] [libc] [libc][GPU] Enable scalbn/ldexp, rand, remainder for SPIR-V (PR #242212)

via libc-commits libc-commits at lists.llvm.org
Sun Nov 15 21:18:05 PST 2026


jinge90 wrote:

> Did we ever get the unit tests working for SPIR-V? I can't remember the status of that. Would be interested in knowing if the RPC layer is functional there.

Hi, @jhuber6 
I have already built tests for enabled functions as SPIR-V binaries locally, it requires adding some functions such as exit, abort and enabled crt. We also need update update the test cmakefiles to use libc/libm.bc instead of archive library since current SPIR-V toolchain can't use static library. However, the built SPIR-V binaries can't pass spirv-validation check, highly suspect it is a SPIR-V backend issue, will report to SPIR-V backend owners once confirmed.
Offloading Level Zero plugin owners are working on PRC and llvm-gpu-loader, I once learnt that they had already enabled llvm-gpu-loader on Level Zero + Intel GPU but the work has not been upstreamed, I will check with them.

Thanks very much.

https://github.com/llvm/llvm-project/pull/242212


More information about the libc-commits mailing list