[llvm] [SPIRV] Do not use OpTypeRuntimeArray in Kernel env. (PR #149522)
Steven Perron via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 21 07:05:29 PDT 2025
================
@@ -0,0 +1,22 @@
+; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-KERNEL
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
----------------
s-perron wrote:
For the shader test cases, I'm trying to get people to add the target environment to the call to spirv-val. That way, you can get more specific validation. Is that worth doing for opencl tests as well?
```suggestion
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val --target-env opencl2.0 %}
```
https://github.com/llvm/llvm-project/pull/149522
More information about the llvm-commits
mailing list