16 lines · plain
1; RUN: %if spirv-tools %{ llc -O0 -verify-machineinstrs -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}2; This test checks the OpDecorate MIR is generated after the associated3; vreg definition in the case of an array size declared through this lowering.4 5define spir_func i32 @foo() {6entry:7 %var = alloca i648 br label %block9 10block:11 call void @llvm.memset.p0.i64(ptr align 8 %var, i8 0, i64 24, i1 false)12 ret i32 013}14 15declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg)16