[clang] [llvm] [HLSL][DXIL][SPIRV] Added WaveActiveBitOr HLSL intrinsic (PR #165156)
Steven Perron via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 27 07:37:20 PST 2026
================
@@ -0,0 +1,30 @@
+; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv-vulkan-unknown %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-vulkan %s -o - -filetype=obj | spirv-val --target-env spv1.4 %}
+
+; Test lowering to spir-v backend for various types and scalar/vector
+
+; CHECK-DAG: %[[#uint:]] = OpTypeInt 32 0
----------------
s-perron wrote:
Please add checks for the required capabilities, as it done in WaveActiveMax.ll:
```suggestion
; CHECK: OpCapability GroupNonUniformArithmetic
; CHECK-DAG: %[[#uint:]] = OpTypeInt 32 0
```
If the capability is not there the SPIR-V is invalid for shaders.
https://github.com/llvm/llvm-project/pull/165156
More information about the cfe-commits
mailing list