blob: 22d860b9186792bcf0ab6e2dac1ccf1798692006 [file] [log] [blame]
SKIP: FAILED
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 71
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol_1
OpExecutionMode %main OriginUpperLeft
OpName %buf0 "buf0"
OpMemberName %buf0 0 "three"
OpName %x_7 "x_7"
OpName %x_GLF_color "x_GLF_color"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %func_ "func_"
OpName %b "b"
OpName %x_34 "x_34"
OpName %x_34_phi "x_34_phi"
OpName %x_48_phi "x_48_phi"
OpName %main_1 "main_1"
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_7 NonWritable
OpDecorate %x_7 DescriptorSet 0
OpDecorate %x_7 Binding 0
OpDecorate %tint_symbol_1 Location 0
OpMemberDecorate %main_out 0 Offset 0
%float = OpTypeFloat 32
%buf0 = OpTypeStruct %float
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%x_7 = OpVariable %_ptr_Uniform_buf0 Uniform
%v4float = OpTypeVector %float 4
%_ptr_Private_v4float = OpTypePointer Private %v4float
%8 = OpConstantNull %v4float
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %8
%_ptr_Output_v4float = OpTypePointer Output %v4float
%tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %8
%11 = OpTypeFunction %float
%_ptr_Function_float = OpTypePointer Function %float
%16 = OpConstantNull %float
%float_2 = OpConstant %float 2
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%float_0 = OpConstant %float 0
%bool = OpTypeBool
%float_1 = OpConstant %float 1
%false = OpConstantFalse %bool
%void = OpTypeVoid
%48 = OpTypeFunction %void
%57 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%58 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%main_out = OpTypeStruct %v4float
%59 = OpTypeFunction %void %main_out
%func_ = OpFunction %float None %11
%13 = OpLabel
%b = OpVariable %_ptr_Function_float Function %16
%x_34 = OpVariable %_ptr_Function_float Function %16
%x_34_phi = OpVariable %_ptr_Function_float Function %16
%x_48_phi = OpVariable %_ptr_Function_float Function %16
OpStore %b %float_2
OpStore %x_34_phi %float_2
OpBranch %21
%21 = OpLabel
OpLoopMerge %22 %23 None
OpBranch %24
%24 = OpLabel
%25 = OpLoad %float %x_34_phi
OpStore %x_34 %25
%29 = OpAccessChain %_ptr_Uniform_float %x_7 %uint_0
%30 = OpLoad %float %29
%32 = OpFOrdEqual %bool %30 %float_0
OpSelectionMerge %34 None
OpBranchConditional %32 %35 %34
%35 = OpLabel
%36 = OpLoad %float %x_34
OpStore %x_48_phi %36
OpBranch %22
%34 = OpLabel
%37 = OpAccessChain %_ptr_Uniform_float %x_7 %uint_0
%38 = OpLoad %float %37
%39 = OpFOrdEqual %bool %38 %float_0
OpSelectionMerge %40 None
OpBranchConditional %39 %41 %40
%41 = OpLabel
OpReturnValue %float_1
%40 = OpLabel
OpStore %b %float_1
OpBranch %23
%23 = OpLabel
OpStore %x_34_phi %float_1
OpStore %x_48_phi %float_1
OpSelectionMerge %44 None
OpBranchConditional %false %45 %46
%45 = OpLabel
OpBranch %44
%46 = OpLabel
OpBranch %22
%44 = OpLabel
OpBranch %21
%22 = OpLabel
%47 = OpLoad %float %x_48_phi
OpReturnValue %47
OpFunctionEnd
%main_1 = OpFunction %void None %48
%51 = OpLabel
%52 = OpFunctionCall %float %func_
%53 = OpFOrdEqual %bool %52 %float_1
OpSelectionMerge %54 None
OpBranchConditional %53 %55 %56
%55 = OpLabel
OpStore %x_GLF_color %57
OpBranch %54
%56 = OpLabel
OpStore %x_GLF_color %58
OpBranch %54
%54 = OpLabel
OpReturn
OpFunctionEnd
%tint_symbol_2 = OpFunction %void None %59
%tint_symbol = OpFunctionParameter %main_out
%63 = OpLabel
%64 = OpCompositeExtract %v4float %tint_symbol 0
OpStore %tint_symbol_1 %64
OpReturn
OpFunctionEnd
%main = OpFunction %void None %48
%66 = OpLabel
%67 = OpFunctionCall %void %main_1
%69 = OpLoad %v4float %x_GLF_color
%70 = OpCompositeConstruct %main_out %69
%68 = OpFunctionCall %void %tint_symbol_2 %70
OpReturn
OpFunctionEnd
1:1: The continue construct with the continue target 23[%23] is not post dominated by the back-edge block 44[%44]
%44 = OpLabel