blob: 9b5b3abd0da3d73a35ae9e872169bfcc73fcd0fc [file] [log] [blame]
SKIP: FAILED
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 64
; Schema: 0
OpCapability Shader
%35 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol_1
OpExecutionMode %main OriginUpperLeft
OpName %buf0 "buf0"
OpMemberName %buf0 0 "one"
OpName %x_6 "x_6"
OpName %x_GLF_color "x_GLF_color"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %main_1 "main_1"
OpName %f "f"
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_6 NonWritable
OpDecorate %x_6 DescriptorSet 0
OpDecorate %x_6 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_6 = 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
%void = OpTypeVoid
%11 = OpTypeFunction %void
%_ptr_Function_float = OpTypePointer Function %float
%17 = OpConstantNull %float
%float_1 = OpConstant %float 1
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%float_10 = OpConstant %float 10
%float_8 = OpConstant %float 8
%float_9 = OpConstant %float 9
%bool = OpTypeBool
%float_0 = OpConstant %float 0
%50 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%51 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%main_out = OpTypeStruct %v4float
%52 = OpTypeFunction %void %main_out
%main_1 = OpFunction %void None %11
%14 = OpLabel
%f = OpVariable %_ptr_Function_float Function %17
OpStore %f %float_1
OpBranch %19
%19 = OpLabel
OpLoopMerge %20 %21 None
OpBranch %22
%22 = OpLabel
%26 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0
%27 = OpLoad %float %26
%28 = OpLoad %float %f
%29 = OpFAdd %float %28 %27
OpStore %f %29
OpBranch %21
%21 = OpLabel
%30 = OpLoad %float %f
%31 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0
%32 = OpLoad %float %31
%38 = OpFAdd %float %float_9 %32
%34 = OpExtInst %float %35 NClamp %30 %float_8 %38
%39 = OpFOrdGreaterThan %bool %float_10 %34
OpSelectionMerge %41 None
OpBranchConditional %39 %42 %43
%42 = OpLabel
OpBranch %41
%43 = OpLabel
OpBranch %20
%41 = OpLabel
OpBranch %19
%20 = OpLabel
%44 = OpLoad %float %f
%45 = OpFOrdEqual %bool %44 %float_10
OpSelectionMerge %46 None
OpBranchConditional %45 %47 %48
%47 = OpLabel
OpStore %x_GLF_color %50
OpBranch %46
%48 = OpLabel
OpStore %x_GLF_color %51
OpBranch %46
%46 = OpLabel
OpReturn
OpFunctionEnd
%tint_symbol_2 = OpFunction %void None %52
%tint_symbol = OpFunctionParameter %main_out
%56 = OpLabel
%57 = OpCompositeExtract %v4float %tint_symbol 0
OpStore %tint_symbol_1 %57
OpReturn
OpFunctionEnd
%main = OpFunction %void None %11
%59 = OpLabel
%60 = OpFunctionCall %void %main_1
%62 = OpLoad %v4float %x_GLF_color
%63 = OpCompositeConstruct %main_out %62
%61 = OpFunctionCall %void %tint_symbol_2 %63
OpReturn
OpFunctionEnd
1:1: The continue construct with the continue target 21[%21] is not post dominated by the back-edge block 41[%41]
%41 = OpLabel