1 ; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
3 ; CHECK-DAG: %[[#I32:]] = OpTypeInt 32
4 ; CHECK-DAG: %[[#I16:]] = OpTypeInt 16
5 ; CHECK-DAG: %[[#STRUCT:]] = OpTypeStruct %[[#I32]] %[[#I16]]
6 ; CHECK-DAG: %[[#NESTED_STRUCT:]] = OpTypeStruct %[[#STRUCT]] %[[#I16]]
7 ; CHECK-DAG: %[[#UNDEF:]] = OpUndef %[[#NESTED_STRUCT]]
9 ; CHECK: %[[#]] = OpFunction %[[#]] None %[[#]]
10 ; CHECK: %[[#]] = OpLabel
11 ; CHECK: OpStore %[[#]] %[[#UNDEF]] Aligned 4
13 ; CHECK: OpFunctionEnd
20 %nested_struct = type {
25 define void @foo(ptr %ptr) {
26 store %nested_struct undef, ptr %ptr