blob: e315646adb5a4207d40bae4d41c81aa314ec931d [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 45
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %f "f"
OpName %must_not_collide "must_not_collide"
OpName %tint_loop_idx "tint_loop_idx"
OpName %must_not_collide_0 "must_not_collide"
OpName %tint_low_inc "tint_low_inc"
OpName %tint_carry "tint_carry"
OpName %unused_entry_point "unused_entry_point"
%void = OpTypeVoid
%3 = OpTypeFunction %void
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%13 = OpConstantNull %int
%uint = OpTypeInt 32 0
%v2uint = OpTypeVector %uint 2
%_ptr_Function_v2uint = OpTypePointer Function %v2uint
%uint_4294967295 = OpConstant %uint 4294967295
%18 = OpConstantComposite %v2uint %uint_4294967295 %uint_4294967295
%int_0 = OpConstant %int 0
%24 = OpConstantNull %v2uint
%bool = OpTypeBool
%v2bool = OpTypeVector %bool 2
%_ptr_Function_uint = OpTypePointer Function %uint
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%f = OpFunction %void None %3
%4 = OpLabel
%must_not_collide = OpVariable %_ptr_Function_int Function %13
%tint_loop_idx = OpVariable %_ptr_Function_v2uint Function
%must_not_collide_0 = OpVariable %_ptr_Function_int Function
OpBranch %5
%5 = OpLabel
OpStore %tint_loop_idx %18
OpStore %must_not_collide_0 %int_0
OpBranch %8
%8 = OpLabel
OpLoopMerge %9 %7 None
OpBranch %6
%6 = OpLabel
%22 = OpLoad %v2uint %tint_loop_idx None
%23 = OpIEqual %v2bool %22 %24
%27 = OpAll %bool %23
OpSelectionMerge %28 None
OpBranchConditional %27 %29 %28
%29 = OpLabel
OpBranch %9
%28 = OpLabel
OpBranch %9
%7 = OpLabel
%30 = OpAccessChain %_ptr_Function_uint %tint_loop_idx %uint_0
%33 = OpLoad %uint %30 None
%tint_low_inc = OpISub %uint %33 %uint_1
%36 = OpAccessChain %_ptr_Function_uint %tint_loop_idx %uint_0
OpStore %36 %tint_low_inc None
%37 = OpIEqual %bool %tint_low_inc %uint_4294967295
%tint_carry = OpSelect %uint %37 %uint_1 %uint_0
%39 = OpAccessChain %_ptr_Function_uint %tint_loop_idx %uint_1
%40 = OpLoad %uint %39 None
%41 = OpISub %uint %40 %tint_carry
%42 = OpAccessChain %_ptr_Function_uint %tint_loop_idx %uint_1
OpStore %42 %41 None
OpBranch %8
%9 = OpLabel
OpReturn
OpFunctionEnd
%unused_entry_point = OpFunction %void None %3
%44 = OpLabel
OpReturn
OpFunctionEnd