[llvm] [SPIRV] Addition of test files for @llvm.tan and zero_length_array.ll (PR #142097)
Marcos Maronas via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 4 11:05:26 PDT 2025
================
@@ -0,0 +1,12 @@
+; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
+
+; CHECK: %[[#type:]] = OpTypeInt 32 0
+; CHECK: %[[#ext:]] = OpTypeRuntimeArray %[[#type]]
----------------
maarquitos14 wrote:
I think this is wrong: `OpTypeRuntimeArray` requires `Shader` capability, but the triple makes this run for `Kernel`. @aadeshps-mcw can you please help me understand what are you trying to test here? If we change the triple to `spirv-unknown-vulkan-compute`, which would run for `Shader`, there is no `OpTypeRuntimeArray`, instead there is an `OpConstant`, which I assume comes from some optimization/pass. @Keenuts can you confirm?
https://github.com/llvm/llvm-project/pull/142097
More information about the llvm-commits
mailing list