blob: 1310b2990fc54b055c3fc92be92be6dcceaaa194 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 42
; 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
%false = OpConstantFalse %bool
%uint_123 = OpConstant %uint 123
%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
%32 = OpLoad %uint %c None
OpSelectionMerge %35 None
OpSwitch %32 %33 0 %34
%33 = OpLabel
OpStore %continue_execution %false None
OpBranch %35
%34 = OpLabel
OpBranch %35
%35 = OpLabel
%36 = OpLoad %bool %continue_execution None
%37 = OpLogicalNot %bool %36
OpSelectionMerge %38 None
OpBranchConditional %37 %39 %38
%39 = OpLabel
OpBranch %24
%38 = OpLabel
OpStore %continue_execution %false None
OpBranch %24
%24 = OpLabel
%25 = OpLoad %bool %continue_execution None
%26 = OpLogicalNot %bool %25
OpSelectionMerge %27 None
OpBranchConditional %26 %28 %27
%28 = OpLabel
OpBranch %16
%27 = OpLabel
OpBranch %16
%14 = OpLabel
OpStore %continue_execution %false None
OpBranch %16
%16 = OpLabel
OpReturn
OpFunctionEnd
%unused_entry_point = OpFunction %void None %3
%41 = OpLabel
OpReturn
OpFunctionEnd