| SKIP: FAILED |
| |
| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 91 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %tint_symbol_1 |
| OpExecutionMode %main OriginUpperLeft |
| OpName %buf0 "buf0" |
| OpMemberName %buf0 0 "x_GLF_uniform_int_values" |
| OpName %x_7 "x_7" |
| OpName %x_GLF_color "x_GLF_color" |
| OpName %tint_symbol_1 "tint_symbol_1" |
| OpName %func_ "func_" |
| OpName %i "i" |
| 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 %_arr_int_uint_3 ArrayStride 16 |
| 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 |
| %int = OpTypeInt 32 1 |
| %uint = OpTypeInt 32 0 |
| %uint_3 = OpConstant %uint 3 |
| %_arr_int_uint_3 = OpTypeArray %int %uint_3 |
| %buf0 = OpTypeStruct %_arr_int_uint_3 |
| %_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 |
| %x_7 = OpVariable %_ptr_Uniform_buf0 Uniform |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Private_v4float = OpTypePointer Private %v4float |
| %12 = OpConstantNull %v4float |
| %x_GLF_color = OpVariable %_ptr_Private_v4float Private %12 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %12 |
| %15 = OpTypeFunction %int |
| %_ptr_Function_int = OpTypePointer Function %int |
| %20 = OpConstantNull %int |
| %uint_0 = OpConstant %uint 0 |
| %int_0 = OpConstant %int 0 |
| %_ptr_Uniform_int = OpTypePointer Uniform %int |
| %int_1 = OpConstant %int 1 |
| %bool = OpTypeBool |
| %true = OpConstantTrue %bool |
| %int_2 = OpConstant %int 2 |
| %void = OpTypeVoid |
| %51 = OpTypeFunction %void |
| %main_out = OpTypeStruct %v4float |
| %79 = OpTypeFunction %void %main_out |
| %func_ = OpFunction %int None %15 |
| %17 = OpLabel |
| %i = OpVariable %_ptr_Function_int Function %20 |
| %24 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_0 |
| %25 = OpLoad %int %24 |
| OpStore %i %25 |
| OpBranch %26 |
| %26 = OpLabel |
| OpLoopMerge %27 %28 None |
| OpBranch %29 |
| %29 = OpLabel |
| %30 = OpLoad %int %i |
| %32 = OpIAdd %int %30 %int_1 |
| OpStore %i %32 |
| OpSelectionMerge %35 None |
| OpBranchConditional %true %36 %35 |
| %36 = OpLabel |
| OpSelectionMerge %37 None |
| OpBranchConditional %true %38 %37 |
| %38 = OpLabel |
| %40 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_2 |
| %41 = OpLoad %int %40 |
| OpReturnValue %41 |
| %37 = OpLabel |
| OpBranch %35 |
| %35 = OpLabel |
| OpBranch %28 |
| %28 = OpLabel |
| %42 = OpLoad %int %i |
| %43 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_1 |
| %44 = OpLoad %int %43 |
| %45 = OpSLessThan %bool %42 %44 |
| OpSelectionMerge %46 None |
| OpBranchConditional %45 %47 %48 |
| %47 = OpLabel |
| OpBranch %46 |
| %48 = OpLabel |
| OpBranch %27 |
| %46 = OpLabel |
| OpBranch %26 |
| %27 = OpLabel |
| %49 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_0 |
| %50 = OpLoad %int %49 |
| OpReturnValue %50 |
| OpFunctionEnd |
| %main_1 = OpFunction %void None %51 |
| %54 = OpLabel |
| %55 = OpFunctionCall %int %func_ |
| %56 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_2 |
| %57 = OpLoad %int %56 |
| %58 = OpIEqual %bool %55 %57 |
| OpSelectionMerge %59 None |
| OpBranchConditional %58 %60 %61 |
| %60 = OpLabel |
| %62 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_2 |
| %63 = OpLoad %int %62 |
| %64 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_0 |
| %65 = OpLoad %int %64 |
| %66 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_0 |
| %67 = OpLoad %int %66 |
| %68 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_2 |
| %69 = OpLoad %int %68 |
| %70 = OpConvertSToF %float %63 |
| %71 = OpConvertSToF %float %65 |
| %72 = OpConvertSToF %float %67 |
| %73 = OpConvertSToF %float %69 |
| %74 = OpCompositeConstruct %v4float %70 %71 %72 %73 |
| OpStore %x_GLF_color %74 |
| OpBranch %59 |
| %61 = OpLabel |
| %75 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_0 |
| %76 = OpLoad %int %75 |
| %77 = OpConvertSToF %float %76 |
| %78 = OpCompositeConstruct %v4float %77 %77 %77 %77 |
| OpStore %x_GLF_color %78 |
| OpBranch %59 |
| %59 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %tint_symbol_2 = OpFunction %void None %79 |
| %tint_symbol = OpFunctionParameter %main_out |
| %83 = OpLabel |
| %84 = OpCompositeExtract %v4float %tint_symbol 0 |
| OpStore %tint_symbol_1 %84 |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %51 |
| %86 = OpLabel |
| %87 = OpFunctionCall %void %main_1 |
| %89 = OpLoad %v4float %x_GLF_color |
| %90 = OpCompositeConstruct %main_out %89 |
| %88 = OpFunctionCall %void %tint_symbol_2 %90 |
| OpReturn |
| OpFunctionEnd |
| 1:1: The continue construct with the continue target 28[%28] is not post dominated by the back-edge block 46[%46] |
| %46 = OpLabel |
| |