blob: 12e9e7b3ee59342cd32db62e6ba9b11f05a774b6 [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 310
OpName %main "main"
OpName %i "i"
OpName %j "j"
OpName %_GLF_color "_GLF_color"
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%7 = OpTypeFunction %void
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%int_0 = OpConstant %int 0
%int_1 = OpConstant %int 1
%int_5 = OpConstant %int 5
%int_9 = OpConstant %int 9
%bool = OpTypeBool
%int_10 = OpConstant %int 10
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%float_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%21 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%22 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%main = OpFunction %void None %7
%23 = OpLabel
%i = OpVariable %_ptr_Function_int Function
%j = OpVariable %_ptr_Function_int Function
OpStore %i %int_0
OpStore %j %int_1
OpBranch %24
%24 = OpLabel
OpLoopMerge %25 %26 None
OpBranch %27
%27 = OpLabel
%28 = OpLoad %int %i
%29 = OpLoad %int %j
%30 = OpExtInst %int %1 SClamp %29 %int_5 %int_9
%31 = OpSLessThan %bool %28 %30
OpBranchConditional %31 %32 %25
%32 = OpLabel
%33 = OpLoad %int %i
%34 = OpIAdd %int %33 %int_1
OpStore %i %34
%35 = OpLoad %int %j
%36 = OpIAdd %int %35 %int_1
OpStore %j %36
OpBranch %26
%26 = OpLabel
OpBranch %24
%25 = OpLabel
%37 = OpLoad %int %i
%38 = OpIEqual %bool %37 %int_9
%39 = OpLoad %int %j
%40 = OpIEqual %bool %39 %int_10
%41 = OpLogicalAnd %bool %38 %40
OpSelectionMerge %42 None
OpBranchConditional %41 %43 %44
%43 = OpLabel
OpStore %_GLF_color %21
OpBranch %42
%44 = OpLabel
OpStore %_GLF_color %22
OpBranch %42
%42 = OpLabel
OpReturn
OpFunctionEnd