[llvm] [SPIR-V] Fix ArrayStride truncation to 0 for sub-byte element types (PR #207140)

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 05:21:14 PDT 2026


================
@@ -0,0 +1,15 @@
+; RUN: llc -O0 -verify-machineinstrs -mtriple=spirv1.6-vulkan1.3-library < %s | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv1.6-vulkan1.3-library -filetype=obj < %s | spirv-val %}
----------------
aobolensk wrote:

There is a problem with that:
```
# executed command: spirv-val --target-env vulkan1.3
# .---command stderr------------
# | error: line 3: Capability Linkage is not allowed by Vulkan 1.3 specification (or requires extension)
# |   OpCapability Linkage
# | 
# `-----------------------------
# error: command failed with exit status: 1
```

It is actually unrelated with this change. I think that should be fixed in spirv-val. I guess (not 100% sure about that), Capability Linkage should be supported for Vulkan under extension

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


More information about the llvm-commits mailing list