blob: 6b004bc0cc1f7f767af5233733f58834329c5b97 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 30
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main"
OpExecutionMode %main OriginUpperLeft
OpName %x_1 "x_1"
OpName %x_7 "x_7"
OpName %x_8 "x_8"
OpName %main_1 "main_1"
OpName %x_41_phi "x_41_phi"
OpName %main "main"
%uint = OpTypeInt 32 0
%_ptr_Private_uint = OpTypePointer Private %uint
%4 = OpConstantNull %uint
%x_1 = OpVariable %_ptr_Private_uint Private %4
%bool = OpTypeBool
%_ptr_Private_bool = OpTypePointer Private %bool
%8 = OpConstantNull %bool
%x_7 = OpVariable %_ptr_Private_bool Private %8
%x_8 = OpVariable %_ptr_Private_bool Private %8
%void = OpTypeVoid
%10 = OpTypeFunction %void
%_ptr_Function_uint = OpTypePointer Function %uint
%uint_1 = OpConstant %uint 1
%true = OpConstantTrue %bool
%uint_0 = OpConstant %uint 0
%main_1 = OpFunction %void None %10
%13 = OpLabel
%x_41_phi = OpVariable %_ptr_Function_uint Function %4
OpSelectionMerge %16 None
OpSwitch %uint_1 %18 0 %19 1 %20
%18 = OpLabel
OpBranch %19
%19 = OpLabel
OpBranch %20
%20 = OpLabel
OpSelectionMerge %22 None
OpBranchConditional %true %23 %24
%23 = OpLabel
OpBranch %22
%24 = OpLabel
OpStore %x_41_phi %uint_0
OpBranch %16
%22 = OpLabel
OpStore %x_41_phi %uint_1
OpBranch %16
%16 = OpLabel
%26 = OpLoad %uint %x_41_phi
OpReturn
OpFunctionEnd
%main = OpFunction %void None %10
%28 = OpLabel
%29 = OpFunctionCall %void %main_1
OpReturn
OpFunctionEnd