[clang] [CIR][X86] Implement lowering for AVX512 ktest builtins (PR #169985)

via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 29 02:26:12 PST 2025


GeneraluseAI wrote:

Because ClangIR currently lacks a zext instruction, the lowering uses bool_to_int combined with an integer cast to reproduce the zero-extension behavior performed in the LLVM implementation. The resulting IR is semantically equivalent.
Please let me know if this approach looks reasonable or if you would prefer a different modeling here. @andykaylor 

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


More information about the cfe-commits mailing list