dawn-cmake/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-ldexp-exponent.../0-opt.spvasm

57 lines
2.2 KiB
Plaintext
Raw Normal View History

2021-07-23 13:10:12 +00:00
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 310
OpName %main "main"
OpName %f "f"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "three"
OpName %_ ""
OpName %_GLF_color "_GLF_color"
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%8 = OpTypeFunction %void
%float = OpTypeFloat 32
%_ptr_Function_float = OpTypePointer Function %float
%buf0 = OpTypeStruct %float
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%float_3 = OpConstant %float 3
%bool = OpTypeBool
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%float_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%21 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%22 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%main = OpFunction %void None %8
%23 = OpLabel
%f = OpVariable %_ptr_Function_float Function
%24 = OpAccessChain %_ptr_Uniform_float %_ %int_0
%25 = OpLoad %float %24
%26 = OpExtInst %float %1 Ldexp %25 %int_0
OpStore %f %26
%27 = OpLoad %float %f
%28 = OpFOrdEqual %bool %27 %float_3
OpSelectionMerge %29 None
OpBranchConditional %28 %30 %31
%30 = OpLabel
OpStore %_GLF_color %21
OpBranch %29
%31 = OpLabel
OpStore %_GLF_color %22
OpBranch %29
%29 = OpLabel
OpReturn
OpFunctionEnd