blob: 081ac5374e7018e6ec43db330721f0151d519b6a [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 37
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %a "a"
OpName %continue_execution "continue_execution"
OpName %a_0 "a"
OpName %b "b"
OpName %c "c"
OpName %unused_entry_point "unused_entry_point"
%void = OpTypeVoid
%3 = OpTypeFunction %void
%bool = OpTypeBool
%_ptr_Function_bool = OpTypePointer Function %bool
%true = OpConstantTrue %bool
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%int_0 = OpConstant %int 0
%uint = OpTypeInt 32 0
%_ptr_Function_uint = OpTypePointer Function %uint
%uint_3 = OpConstant %uint 3
%uint_123 = OpConstant %uint 123
%false = OpConstantFalse %bool
%a = OpFunction %void None %3
%4 = OpLabel
%continue_execution = OpVariable %_ptr_Function_bool Function
%a_0 = OpVariable %_ptr_Function_int Function
%b = OpVariable %_ptr_Function_uint Function
%c = OpVariable %_ptr_Function_uint Function
OpStore %continue_execution %true
OpStore %a_0 %int_0
%13 = OpLoad %int %a_0 None
OpSelectionMerge %16 None
OpSwitch %13 %14 0 %15 2 %15 4 %15 1 %14
%15 = OpLabel
OpStore %b %uint_3
%21 = OpLoad %uint %b None
OpSelectionMerge %24 None
OpSwitch %21 %22 0 %23 1 %22 2 %22 3 %22
%23 = OpLabel
OpBranch %24
%22 = OpLabel
OpStore %c %uint_123
%27 = OpLoad %uint %c None
OpSelectionMerge %30 None
OpSwitch %27 %28 0 %29
%29 = OpLabel
OpBranch %30
%28 = OpLabel
OpStore %continue_execution %false None
OpBranch %30
%30 = OpLabel
%32 = OpLoad %bool %continue_execution None
OpSelectionMerge %33 None
OpBranchConditional %32 %34 %33
%34 = OpLabel
OpStore %continue_execution %false None
OpBranch %33
%33 = OpLabel
OpBranch %24
%24 = OpLabel
OpBranch %16
%14 = OpLabel
OpStore %continue_execution %false None
OpBranch %16
%16 = OpLabel
OpReturn
OpFunctionEnd
%unused_entry_point = OpFunction %void None %3
%36 = OpLabel
OpReturn
OpFunctionEnd