dawn-cmake/test/vk-gl-cts/graphicsfuzz/call-function-with-discard/0-opt.spvasm

60 lines
2.3 KiB
Plaintext

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 %func_ "func("
OpName %buf0 "buf0"
OpMemberName %buf0 0 "one"
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
%float_1 = OpConstant %float 1
%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
%bool = OpTypeBool
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%float_0 = OpConstant %float 0
%19 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%false = OpConstantFalse %bool
%21 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%main = OpFunction %void None %8
%22 = OpLabel
OpStore %_GLF_color %19
OpBranch %23
%23 = OpLabel
%24 = OpFunctionCall %void %func_
OpLoopMerge %25 %23 None
OpBranchConditional %false %23 %25
%25 = OpLabel
OpStore %_GLF_color %21
OpReturn
OpFunctionEnd
%func_ = OpFunction %void None %8
%26 = OpLabel
%27 = OpAccessChain %_ptr_Uniform_float %_ %int_0
%28 = OpLoad %float %27
%29 = OpFOrdGreaterThan %bool %float_1 %28
OpSelectionMerge %30 None
OpBranchConditional %29 %31 %30
%31 = OpLabel
OpKill
%30 = OpLabel
OpReturn
OpFunctionEnd