[llvm] [SPIRV] Modification of zero-length-array.ll (PR #152078)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 4 21:58:51 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-spir-v

Author: Aadesh Premkumar (aadeshps-mcw)

<details>
<summary>Changes</summary>

--Modify the test zero-length-array.ll with target triple spirv-unknown-vulkan-compute.

---
Full diff: https://github.com/llvm/llvm-project/pull/152078.diff


1 Files Affected:

- (modified) llvm/test/CodeGen/SPIRV/zero-length-array.ll (+5-4) 


``````````diff
diff --git a/llvm/test/CodeGen/SPIRV/zero-length-array.ll b/llvm/test/CodeGen/SPIRV/zero-length-array.ll
index 668bf2018dec7..cd29851684af1 100644
--- a/llvm/test/CodeGen/SPIRV/zero-length-array.ll
+++ b/llvm/test/CodeGen/SPIRV/zero-length-array.ll
@@ -1,9 +1,10 @@
-; 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 %}
+; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv-unknown-vulkan-compute %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-vulkan-compute %s -o - -filetype=obj | spirv-val %}
 
+; CHECK: %[[#void:]] = OpTypeVoid
 ; CHECK: %[[#type:]] = OpTypeInt 32 0
-; CHECK: %[[#ext:]] = OpTypeRuntimeArray %[[#type]]
-; CHECK: %[[#]] = OpTypePointer Function %[[#ext]]
+; CHECK: %[[#ext:]] = OpConstant %[[#type]] 0
+; CHECK: %[[#]] = OpFunction %[[#void]]
 
 define spir_func void @_Z3foov() {
 entry:

``````````

</details>


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


More information about the llvm-commits mailing list