blob: 6dcba769a34d77979f27a8f0113dfcb2b614e4ee [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor
OpExecutionMode %_entrypoint_v OriginUpperLeft
OpName %sk_FragColor "sk_FragColor"
OpName %_entrypoint_v "_entrypoint_v"
OpName %main "main"
OpName %result "result"
OpName %a "a"
OpName %b "b"
OpName %c "c"
OpName %d "d"
OpName %e "e"
OpName %f "f"
OpDecorate %sk_FragColor RelaxedPrecision
OpDecorate %sk_FragColor Location 0
OpDecorate %sk_FragColor Index 0
OpDecorate %result RelaxedPrecision
OpDecorate %a RelaxedPrecision
OpDecorate %b RelaxedPrecision
OpDecorate %33 RelaxedPrecision
OpDecorate %38 RelaxedPrecision
OpDecorate %44 RelaxedPrecision
OpDecorate %45 RelaxedPrecision
OpDecorate %46 RelaxedPrecision
OpDecorate %49 RelaxedPrecision
OpDecorate %50 RelaxedPrecision
OpDecorate %51 RelaxedPrecision
OpDecorate %53 RelaxedPrecision
OpDecorate %54 RelaxedPrecision
OpDecorate %55 RelaxedPrecision
OpDecorate %56 RelaxedPrecision
OpDecorate %69 RelaxedPrecision
OpDecorate %70 RelaxedPrecision
OpDecorate %_arr_float_int_2 ArrayStride 16
OpDecorate %_arr_float_int_4 ArrayStride 16
OpDecorate %116 RelaxedPrecision
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%sk_FragColor = OpVariable %_ptr_Output_v4float Output
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float_0 = OpConstant %float 0
%v2float = OpTypeVector %float 2
%13 = OpConstantComposite %v2float %float_0 %float_0
%_ptr_Function_v2float = OpTypePointer Function %v2float
%17 = OpTypeFunction %v4float %_ptr_Function_v2float
%_ptr_Function_v4float = OpTypePointer Function %v4float
%22 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%_ptr_Function_float = OpTypePointer Function %float
%bool = OpTypeBool
%false = OpConstantFalse %bool
%float_10 = OpConstant %float 10
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%int_1 = OpConstant %int 1
%float_1 = OpConstant %float 1
%_ptr_Function_int = OpTypePointer Function %int
%int_10 = OpConstant %int 10
%int_2 = OpConstant %int 2
%_arr_float_int_2 = OpTypeArray %float %int_2
%_ptr_Function__arr_float_int_2 = OpTypePointer Function %_arr_float_int_2
%int_4 = OpConstant %int 4
%_arr_float_int_4 = OpTypeArray %float %int_4
%_ptr_Function__arr_float_int_4 = OpTypePointer Function %_arr_float_int_4
%float_2 = OpConstant %float 2
%float_3 = OpConstant %float 3
%float_4 = OpConstant %float 4
%float_9 = OpConstant %float 9
%int_3 = OpConstant %int 3
%_entrypoint_v = OpFunction %void None %9
%10 = OpLabel
%14 = OpVariable %_ptr_Function_v2float Function
OpStore %14 %13
%16 = OpFunctionCall %v4float %main %14
OpStore %sk_FragColor %16
OpReturn
OpFunctionEnd
%main = OpFunction %v4float None %17
%18 = OpFunctionParameter %_ptr_Function_v2float
%19 = OpLabel
%result = OpVariable %_ptr_Function_v4float Function
%a = OpVariable %_ptr_Function_float Function
%b = OpVariable %_ptr_Function_float Function
%c = OpVariable %_ptr_Function_int Function
%d = OpVariable %_ptr_Function__arr_float_int_2 Function
%e = OpVariable %_ptr_Function__arr_float_int_4 Function
%f = OpVariable %_ptr_Function_float Function
OpStore %result %22
OpStore %a %float_0
OpStore %b %float_0
OpBranch %26
%26 = OpLabel
OpLoopMerge %30 %29 None
OpBranch %27
%27 = OpLabel
%33 = OpLoad %float %a
%35 = OpFOrdLessThan %bool %33 %float_10
OpSelectionMerge %37 None
OpBranchConditional %35 %36 %37
%36 = OpLabel
%38 = OpLoad %float %b
%39 = OpFOrdLessThan %bool %38 %float_10
OpBranch %37
%37 = OpLabel
%40 = OpPhi %bool %false %27 %39 %36
OpBranchConditional %40 %28 %30
%28 = OpLabel
%41 = OpAccessChain %_ptr_Function_float %result %int_0
%44 = OpLoad %float %41
%45 = OpLoad %float %a
%46 = OpFAdd %float %44 %45
OpStore %41 %46
%47 = OpAccessChain %_ptr_Function_float %result %int_1
%49 = OpLoad %float %47
%50 = OpLoad %float %b
%51 = OpFAdd %float %49 %50
OpStore %47 %51
OpBranch %29
%29 = OpLabel
%53 = OpLoad %float %a
%54 = OpFAdd %float %53 %float_1
OpStore %a %54
%55 = OpLoad %float %b
%56 = OpFAdd %float %55 %float_1
OpStore %b %56
OpBranch %26
%30 = OpLabel
OpStore %c %int_0
OpBranch %59
%59 = OpLabel
OpLoopMerge %63 %62 None
OpBranch %60
%60 = OpLabel
%64 = OpLoad %int %c
%66 = OpSLessThan %bool %64 %int_10
OpBranchConditional %66 %61 %63
%61 = OpLabel
%67 = OpAccessChain %_ptr_Function_float %result %int_2
%69 = OpLoad %float %67
%70 = OpFAdd %float %69 %float_1
OpStore %67 %70
OpBranch %62
%62 = OpLabel
%71 = OpLoad %int %c
%72 = OpIAdd %int %71 %int_1
OpStore %c %72
OpBranch %59
%63 = OpLabel
%76 = OpCompositeConstruct %_arr_float_int_2 %float_0 %float_10
OpStore %d %76
%84 = OpCompositeConstruct %_arr_float_int_4 %float_1 %float_2 %float_3 %float_4
OpStore %e %84
OpStore %f %float_9
OpBranch %87
%87 = OpLabel
OpLoopMerge %91 %90 None
OpBranch %88
%88 = OpLabel
%92 = OpAccessChain %_ptr_Function_float %d %int_0
%93 = OpLoad %float %92
%94 = OpAccessChain %_ptr_Function_float %d %int_1
%95 = OpLoad %float %94
%96 = OpFOrdLessThan %bool %93 %95
OpBranchConditional %96 %89 %91
%89 = OpLabel
%97 = OpAccessChain %_ptr_Function_float %e %int_0
%98 = OpLoad %float %97
%99 = OpLoad %float %f
%100 = OpFMul %float %98 %99
%101 = OpAccessChain %_ptr_Function_float %result %int_3
OpStore %101 %100
OpBranch %90
%90 = OpLabel
%103 = OpAccessChain %_ptr_Function_float %d %int_0
%104 = OpLoad %float %103
%105 = OpFAdd %float %104 %float_1
OpStore %103 %105
OpBranch %87
%91 = OpLabel
OpBranch %106
%106 = OpLabel
OpLoopMerge %110 %109 None
OpBranch %107
%107 = OpLabel
OpBranch %108
%108 = OpLabel
OpBranch %110
%109 = OpLabel
OpBranch %106
%110 = OpLabel
OpBranch %111
%111 = OpLabel
OpLoopMerge %115 %114 None
OpBranch %112
%112 = OpLabel
OpBranch %113
%113 = OpLabel
OpBranch %115
%114 = OpLabel
OpBranch %111
%115 = OpLabel
%116 = OpLoad %v4float %result
OpReturnValue %116
OpFunctionEnd