blob: 093acdca5bc46cfbcb51ee8f1f8daab5e3ebbf69 [file] [log] [blame]
SKIP: FAILED
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 120
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol_1
OpExecutionMode %main OriginUpperLeft
OpName %buf0 "buf0"
OpMemberName %buf0 0 "injectionSwitch"
OpName %x_5 "x_5"
OpName %x_GLF_color "x_GLF_color"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %main_1 "main_1"
OpName %x_36 "x_36"
OpName %x_37 "x_37"
OpName %x_7 "x_7"
OpName %x_38 "x_38"
OpName %color "color"
OpName %x_40 "x_40"
OpName %x_43 "x_43"
OpName %x_40_phi "x_40_phi"
OpName %x_42_phi "x_42_phi"
OpName %x_56_phi "x_56_phi"
OpName %x_58_phi "x_58_phi"
OpName %x_43_phi "x_43_phi"
OpName %x_62 "x_62"
OpName %x_62_phi "x_62_phi"
OpName %x_64_phi "x_64_phi"
OpName %x_65_phi "x_65_phi"
OpName %x_70_phi "x_70_phi"
OpName %x_71_phi "x_71_phi"
OpName %main_out "main_out"
OpMemberName %main_out 0 "x_GLF_color_1"
OpName %tint_symbol_2 "tint_symbol_2"
OpName %tint_symbol "tint_symbol"
OpName %main "main"
OpDecorate %buf0 Block
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %x_5 NonWritable
OpDecorate %x_5 DescriptorSet 0
OpDecorate %x_5 Binding 0
OpDecorate %tint_symbol_1 Location 0
OpMemberDecorate %main_out 0 Offset 0
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%buf0 = OpTypeStruct %v2float
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%x_5 = OpVariable %_ptr_Uniform_buf0 Uniform
%v4float = OpTypeVector %float 4
%_ptr_Private_v4float = OpTypePointer Private %v4float
%9 = OpConstantNull %v4float
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %9
%_ptr_Output_v4float = OpTypePointer Output %v4float
%tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %9
%void = OpTypeVoid
%12 = OpTypeFunction %void
%bool = OpTypeBool
%false = OpConstantFalse %bool
%_ptr_Function_bool = OpTypePointer Function %bool
%20 = OpConstantNull %bool
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%25 = OpConstantNull %int
%v3float = OpTypeVector %float 3
%_ptr_Function_v3float = OpTypePointer Function %v3float
%30 = OpConstantNull %v3float
%float_0 = OpConstant %float 0
%38 = OpConstantComposite %v3float %float_0 %float_0 %float_0
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%_ptr_Uniform_float = OpTypePointer Uniform %float
%float_1 = OpConstant %float 1
%56 = OpConstantComposite %v3float %float_1 %float_1 %float_1
%int_0 = OpConstant %int 0
%int_1 = OpConstant %int 1
%true = OpConstantTrue %bool
%_ptr_Function_float = OpTypePointer Function %float
%uint_2 = OpConstant %uint 2
%107 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%main_out = OpTypeStruct %v4float
%108 = OpTypeFunction %void %main_out
%main_1 = OpFunction %void None %12
%15 = OpLabel
%x_36 = OpVariable %_ptr_Function_bool Function %20
%x_37 = OpVariable %_ptr_Function_bool Function %20
%x_7 = OpVariable %_ptr_Function_int Function %25
%x_38 = OpVariable %_ptr_Function_bool Function %20
%color = OpVariable %_ptr_Function_v3float Function %30
%x_40 = OpVariable %_ptr_Function_bool Function %20
%x_43 = OpVariable %_ptr_Function_v3float Function %30
%x_40_phi = OpVariable %_ptr_Function_bool Function %20
%x_42_phi = OpVariable %_ptr_Function_v3float Function %30
%x_56_phi = OpVariable %_ptr_Function_bool Function %20
%x_58_phi = OpVariable %_ptr_Function_bool Function %20
%x_43_phi = OpVariable %_ptr_Function_v3float Function %30
%x_62 = OpVariable %_ptr_Function_bool Function %20
%x_62_phi = OpVariable %_ptr_Function_bool Function %20
%x_64_phi = OpVariable %_ptr_Function_bool Function %20
%x_65_phi = OpVariable %_ptr_Function_int Function %25
%x_70_phi = OpVariable %_ptr_Function_bool Function %20
%x_71_phi = OpVariable %_ptr_Function_bool Function %20
OpStore %x_36 %false
OpStore %x_40_phi %false
OpStore %x_42_phi %38
OpBranch %39
%39 = OpLabel
OpLoopMerge %40 %41 None
OpBranch %42
%42 = OpLabel
%44 = OpLoad %bool %x_40_phi
OpStore %x_40 %44
%45 = OpLoad %v3float %x_42_phi
%50 = OpAccessChain %_ptr_Uniform_float %x_5 %uint_0 %uint_1
%51 = OpLoad %float %50
OpStore %x_43_phi %45
%52 = OpFOrdLessThan %bool %51 %float_0
OpSelectionMerge %53 None
OpBranchConditional %52 %54 %53
%54 = OpLabel
OpStore %color %56
OpStore %x_43_phi %56
OpBranch %53
%53 = OpLabel
%57 = OpLoad %v3float %x_43_phi
OpStore %x_43 %57
OpBranch %41
%41 = OpLabel
%58 = OpLoad %bool %x_40
OpStore %x_40_phi %58
%59 = OpLoad %v3float %x_43
OpStore %x_42_phi %59
OpSelectionMerge %60 None
OpBranchConditional %false %61 %62
%61 = OpLabel
OpBranch %60
%62 = OpLabel
OpBranch %40
%60 = OpLabel
OpBranch %39
%40 = OpLabel
OpStore %x_36 %false
%63 = OpLoad %bool %x_40
OpStore %x_56_phi %63
OpStore %x_58_phi %false
OpBranch %64
%64 = OpLabel
OpLoopMerge %65 %66 None
OpBranch %67
%67 = OpLabel
%74 = OpLoad %bool %x_56_phi
%75 = OpLoad %bool %x_58_phi
OpStore %x_7 %int_0
OpStore %x_62_phi %74
OpStore %x_64_phi %false
OpStore %x_65_phi %int_0
OpBranch %77
%77 = OpLabel
OpLoopMerge %78 %79 None
OpBranch %80
%80 = OpLabel
%81 = OpLoad %bool %x_62_phi
OpStore %x_62 %81
%82 = OpLoad %bool %x_64_phi
%83 = OpLoad %int %x_65_phi
%85 = OpSLessThan %bool %int_0 %int_1
%86 = OpLoad %bool %x_62
OpStore %x_70_phi %86
OpStore %x_71_phi %false
OpSelectionMerge %88 None
OpBranchConditional %true %89 %90
%89 = OpLabel
OpBranch %88
%90 = OpLabel
OpBranch %78
%88 = OpLabel
OpStore %x_36 %true
OpStore %x_37 %true
OpStore %x_70_phi %true
OpStore %x_71_phi %true
OpBranch %78
%79 = OpLabel
OpStore %x_62_phi %false
OpStore %x_64_phi %false
OpStore %x_65_phi %int_0
OpBranch %77
%78 = OpLabel
%91 = OpLoad %bool %x_70_phi
%92 = OpLoad %bool %x_71_phi
OpSelectionMerge %93 None
OpBranchConditional %true %94 %93
%94 = OpLabel
OpBranch %65
%93 = OpLabel
OpStore %x_36 %true
OpBranch %65
%66 = OpLabel
OpStore %x_56_phi %false
OpStore %x_58_phi %false
OpBranch %64
%65 = OpLabel
OpStore %x_38 %true
%95 = OpSelect %float %true %float_1 %float_0
%97 = OpAccessChain %_ptr_Function_float %x_43 %uint_0
%98 = OpLoad %float %97
%99 = OpAccessChain %_ptr_Function_float %x_43 %uint_1
%100 = OpLoad %float %99
%102 = OpAccessChain %_ptr_Function_float %x_43 %uint_2
%103 = OpLoad %float %102
%104 = OpCompositeConstruct %v4float %98 %100 %103 %float_1
%105 = OpCompositeConstruct %v4float %95 %95 %95 %95
%106 = OpFAdd %v4float %104 %105
OpStore %x_GLF_color %106
OpStore %x_GLF_color %107
OpReturn
OpFunctionEnd
%tint_symbol_2 = OpFunction %void None %108
%tint_symbol = OpFunctionParameter %main_out
%112 = OpLabel
%113 = OpCompositeExtract %v4float %tint_symbol 0
OpStore %tint_symbol_1 %113
OpReturn
OpFunctionEnd
%main = OpFunction %void None %12
%115 = OpLabel
%116 = OpFunctionCall %void %main_1
%118 = OpLoad %v4float %x_GLF_color
%119 = OpCompositeConstruct %main_out %118
%117 = OpFunctionCall %void %tint_symbol_2 %119
OpReturn
OpFunctionEnd
1:1: The continue construct with the continue target 41[%41] is not post dominated by the back-edge block 60[%60]
%60 = OpLabel