dawn-cmake/test/vk-gl-cts/graphicsfuzz/cov-simplify-div-by-uint-one/0-opt.spvasm.expected.spvasm

90 lines
3.5 KiB
Plaintext
Raw Normal View History

2021-07-23 13:10:12 +00:00
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 48
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol_1
OpExecutionMode %main OriginUpperLeft
OpName %buf0 "buf0"
OpMemberName %buf0 0 "two"
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 %a "a"
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
%uint = OpTypeInt 32 0
%buf0 = OpTypeStruct %uint
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%x_6 = OpVariable %_ptr_Uniform_buf0 Uniform
%float = OpTypeFloat 32
%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
%_ptr_Function_uint = OpTypePointer Function %uint
%18 = OpConstantNull %uint
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_uint = OpTypePointer Uniform %uint
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%bool = OpTypeBool
%float_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%34 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%35 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%main_out = OpTypeStruct %v4float
%36 = OpTypeFunction %void %main_out
%main_1 = OpFunction %void None %12
%15 = OpLabel
%a = OpVariable %_ptr_Function_uint Function %18
%21 = OpAccessChain %_ptr_Uniform_uint %x_6 %uint_0
%22 = OpLoad %uint %21
%24 = OpUDiv %uint %22 %uint_1
OpStore %a %24
%25 = OpLoad %uint %a
%27 = OpIEqual %bool %25 %uint_2
OpSelectionMerge %29 None
OpBranchConditional %27 %30 %31
%30 = OpLabel
OpStore %x_GLF_color %34
OpBranch %29
%31 = OpLabel
OpStore %x_GLF_color %35
OpBranch %29
%29 = OpLabel
OpReturn
OpFunctionEnd
%tint_symbol_2 = OpFunction %void None %36
%tint_symbol = OpFunctionParameter %main_out
%40 = OpLabel
%41 = OpCompositeExtract %v4float %tint_symbol 0
OpStore %tint_symbol_1 %41
OpReturn
OpFunctionEnd
%main = OpFunction %void None %12
%43 = OpLabel
%44 = OpFunctionCall %void %main_1
%46 = OpLoad %v4float %x_GLF_color
%47 = OpCompositeConstruct %main_out %46
%45 = OpFunctionCall %void %tint_symbol_2 %47
OpReturn
OpFunctionEnd