llvm-project/llvm/test/CodeGen/SPIRV/zero-length-array.ll
Aadesh Premkumar 29d9c4a6fe
[SPIRV] Addition of test files for @llvm.tan and zero_length_array.ll (#142097)
Co-authored-by: Michal Paszkowski <michal@michalpaszkowski.com>
2025-08-03 21:58:25 +02:00

13 lines
428 B
LLVM

; 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]]
; CHECK: %[[#]] = OpTypePointer Function %[[#ext]]
define spir_func void @_Z3foov() {
entry:
%i = alloca [0 x i32], align 4
ret void
}