dawn-cmake/test/vk-gl-cts/graphicsfuzz/uninit-element-cast-in-loop/0-opt.spvasm.expected.spvasm

103 lines
3.9 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: 54
2021-07-23 13:10:12 +00:00
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %x_GLF_color_1_1
2021-07-23 13:10:12 +00:00
OpExecutionMode %main OriginUpperLeft
OpName %x_GLF_color_1_1 "x_GLF_color_1_1"
2021-07-23 13:10:12 +00:00
OpName %buf0 "buf0"
OpMemberName %buf0 0 "injectionSwitch"
OpName %x_5 "x_5"
OpName %x_GLF_color "x_GLF_color"
OpName %main_1 "main_1"
OpName %x_30 "x_30"
OpName %x_32_phi "x_32_phi"
OpName %x_33_phi "x_33_phi"
OpName %main_out "main_out"
OpMemberName %main_out 0 "x_GLF_color_1"
OpName %main_inner "main_inner"
2021-07-23 13:10:12 +00:00
OpName %main "main"
OpDecorate %x_GLF_color_1_1 Location 0
2021-07-23 13:10:12 +00:00
OpDecorate %buf0 Block
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %x_5 NonWritable
OpDecorate %x_5 DescriptorSet 0
OpDecorate %x_5 Binding 0
OpMemberDecorate %main_out 0 Offset 0
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%x_GLF_color_1_1 = OpVariable %_ptr_Output_v4float Output %5
2021-07-23 13:10:12 +00:00
%v2float = OpTypeVector %float 2
%buf0 = OpTypeStruct %v2float
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%x_5 = OpVariable %_ptr_Uniform_buf0 Uniform
%_ptr_Private_v4float = OpTypePointer Private %v4float
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %5
2021-07-23 13:10:12 +00:00
%void = OpTypeVoid
%12 = OpTypeFunction %void
%_ptr_Function_float = OpTypePointer Function %float
%18 = OpConstantNull %float
%float_0 = OpConstant %float 0
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%uint_1 = OpConstant %uint 1
%bool = OpTypeBool
%float_1 = OpConstant %float 1
%42 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%main_out = OpTypeStruct %v4float
%43 = OpTypeFunction %main_out
2021-07-23 13:10:12 +00:00
%main_1 = OpFunction %void None %12
%15 = OpLabel
%x_30 = OpVariable %_ptr_Function_float Function %18
%x_32_phi = OpVariable %_ptr_Function_float Function %18
%x_33_phi = OpVariable %_ptr_Function_float Function %18
OpStore %x_32_phi %float_0
OpBranch %21
%21 = OpLabel
OpLoopMerge %22 %23 None
OpBranch %24
%24 = OpLabel
%26 = OpLoad %float %x_32_phi
OpStore %x_33_phi %26
%27 = OpLoad %float %x_33_phi
%31 = OpAccessChain %_ptr_Uniform_float %x_5 %uint_0 %uint_0
%32 = OpLoad %float %31
%34 = OpAccessChain %_ptr_Uniform_float %x_5 %uint_0 %uint_1
%35 = OpLoad %float %34
%36 = OpFOrdLessThan %bool %32 %35
OpSelectionMerge %38 None
OpBranchConditional %36 %39 %40
%39 = OpLabel
OpStore %x_GLF_color %42
OpReturn
%40 = OpLabel
OpBranch %23
%38 = OpLabel
OpBranch %23
%23 = OpLabel
OpStore %x_32_phi %27
OpBranch %21
%22 = OpLabel
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %43
%46 = OpLabel
%47 = OpFunctionCall %void %main_1
%48 = OpLoad %v4float %x_GLF_color
%49 = OpCompositeConstruct %main_out %48
OpReturnValue %49
2021-07-23 13:10:12 +00:00
OpFunctionEnd
%main = OpFunction %void None %12
%51 = OpLabel
%52 = OpFunctionCall %main_out %main_inner
%53 = OpCompositeExtract %v4float %52 0
OpStore %x_GLF_color_1_1 %53
2021-07-23 13:10:12 +00:00
OpReturn
OpFunctionEnd