21 lines · plain
1; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s2; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val %}3 4; TODO: OpFunctionParameter should be a pointer of struct base type.5; XFAIL: *6 7%struct = type {8 i32,9 i1610}11 12%nested_struct = type {13 %struct,14 i1615}16 17define void @foo(ptr %ptr) {18 store %nested_struct undef, ptr %ptr19 ret void20}21