[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:14:10 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 just checked, mem2reg is getting rid of the alloca, so no array after that.

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


More information about the llvm-commits mailing list