dawn-cmake/test/vk-gl-cts/graphicsfuzz/cov-fold-negate-variable/0.wgsl.expected.spvasm

73 lines
2.7 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: 40
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 %x_GLF_color "x_GLF_color"
OpName %main_1 "main_1"
OpName %i "i"
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
OpMemberDecorate %main_out 0 Offset 0
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
2021-07-23 13:10:12 +00:00
%5 = OpConstantNull %v4float
%x_GLF_color_1_1 = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Private_v4float = OpTypePointer Private %v4float
2021-07-23 13:10:12 +00:00
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %5
%void = OpTypeVoid
%8 = OpTypeFunction %void
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%15 = OpConstantNull %int
%int_3 = OpConstant %int 3
%int_n4 = OpConstant %int -4
%bool = OpTypeBool
%float_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%27 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%28 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%main_out = OpTypeStruct %v4float
%29 = OpTypeFunction %main_out
2021-07-23 13:10:12 +00:00
%main_1 = OpFunction %void None %8
%11 = OpLabel
%i = OpVariable %_ptr_Function_int Function %15
OpStore %i %int_3
%17 = OpLoad %int %i
%18 = OpNot %int %17
%20 = OpIEqual %bool %18 %int_n4
OpSelectionMerge %22 None
OpBranchConditional %20 %23 %24
%23 = OpLabel
OpStore %x_GLF_color %27
OpBranch %22
%24 = OpLabel
OpStore %x_GLF_color %28
OpBranch %22
%22 = OpLabel
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %29
%32 = OpLabel
%33 = OpFunctionCall %void %main_1
%34 = OpLoad %v4float %x_GLF_color
%35 = OpCompositeConstruct %main_out %34
OpReturnValue %35
2021-07-23 13:10:12 +00:00
OpFunctionEnd
%main = OpFunction %void None %8
%37 = OpLabel
%38 = OpFunctionCall %main_out %main_inner
%39 = OpCompositeExtract %v4float %38 0
OpStore %x_GLF_color_1_1 %39
2021-07-23 13:10:12 +00:00
OpReturn
OpFunctionEnd