[llvm] [SPIR-V] Convert integer vector to bool vector for OpAny/OpAll (PR #191804)

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 03:09:37 PDT 2026


================
@@ -1,4 +1,5 @@
 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val %}
----------------
aobolensk wrote:

Ah, I found, it seems HLSL path is already safe and sound, there is no this type mismatch apparently as in OpenCL path. Here are the tests that already pass `spirv-val` validation successfully:
 - https://github.com/llvm/llvm-project/blob/9f1da15276e18b165c54c00b2ccf2c54839c61f1/llvm/test/CodeGen/SPIRV/hlsl-intrinsics/any.ll
 - https://github.com/llvm/llvm-project/blob/9f1da15276e18b165c54c00b2ccf2c54839c61f1/llvm/test/CodeGen/SPIRV/hlsl-intrinsics/all.ll
Not sure about GLSL though 

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


More information about the llvm-commits mailing list