blob: cc1c1a76d8491b0a0aa70192486df7dad0cb1318 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 33
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %foo "foo"
OpName %a "a"
OpName %b "b"
OpName %c "c"
OpName %d "d"
OpName %e "e"
OpName %continue_execution "continue_execution"
OpName %unused_entry_point "unused_entry_point"
%void = OpTypeVoid
%bool = OpTypeBool
%9 = OpTypeFunction %void %bool %bool %bool %bool %bool
%_ptr_Function_bool = OpTypePointer Function %bool
%true = OpConstantTrue %bool
%false = OpConstantFalse %bool
%31 = OpTypeFunction %void
%foo = OpFunction %void None %9
%a = OpFunctionParameter %bool
%b = OpFunctionParameter %bool
%c = OpFunctionParameter %bool
%d = OpFunctionParameter %bool
%e = OpFunctionParameter %bool
%10 = OpLabel
%continue_execution = OpVariable %_ptr_Function_bool Function
OpStore %continue_execution %true
OpSelectionMerge %14 None
OpBranchConditional %a %15 %14
%15 = OpLabel
OpSelectionMerge %16 None
OpBranchConditional %b %17 %16
%17 = OpLabel
OpStore %continue_execution %false
OpBranch %16
%16 = OpLabel
%19 = OpLoad %bool %continue_execution
OpSelectionMerge %20 None
OpBranchConditional %19 %21 %20
%21 = OpLabel
OpSelectionMerge %22 None
OpBranchConditional %c %23 %22
%23 = OpLabel
OpSelectionMerge %24 None
OpBranchConditional %d %25 %24
%25 = OpLabel
OpStore %continue_execution %false
OpBranch %24
%24 = OpLabel
%26 = OpLoad %bool %continue_execution
OpSelectionMerge %27 None
OpBranchConditional %26 %28 %27
%28 = OpLabel
OpSelectionMerge %29 None
OpBranchConditional %e %29 %29
%29 = OpLabel
OpBranch %27
%27 = OpLabel
OpBranch %22
%22 = OpLabel
OpBranch %20
%20 = OpLabel
OpBranch %14
%14 = OpLabel
OpReturn
OpFunctionEnd
%unused_entry_point = OpFunction %void None %31
%32 = OpLabel
OpReturn
OpFunctionEnd