================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits