1 ; RUN: llc -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-NEXT: %[[#PTR:]] = OpFunctionParameter %[[#]]
11 ; CHECK-NEXT: %[[#]] = OpLabel
12 ; CHECK-NEXT: %[[#BC:]] = OpBitcast %[[#]] %[[#PTR]]
13 ; CHECK-NEXT: OpStore %[[#BC]] %[[#UNDEF]] Aligned 4
14 ; CHECK-NEXT: OpReturn
15 ; CHECK-NEXT: OpFunctionEnd
22 %nested_struct = type {
27 define void @foo(ptr %ptr) {
28 store %nested_struct undef, ptr %ptr