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

Marcos Maronas via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 04:05:32 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 %}
----------------
maarquitos14 wrote:

Since we're targetting a specific vulkan version, I think spirv-val should also target that one. I think there is a `-target-env` flag that you can find in other vulkan tests, I don't remember the exact syntax.

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


More information about the llvm-commits mailing list