blob: 726b715e189698ef0fbf5a93981362fb44cac416 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 24
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpName %f "f"
OpName %a "a"
OpName %b "b"
%void = OpTypeVoid
%1 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%v3uint = OpTypeVector %uint 3
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%uint_3 = OpConstant %uint 3
%10 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
%_ptr_Function_v3uint = OpTypePointer Function %v3uint
%13 = OpConstantNull %v3uint
%14 = OpConstantNull %uint
%_ptr_Function_uint = OpTypePointer Function %uint
%f = OpFunction %void None %1
%4 = OpLabel
%a = OpVariable %_ptr_Function_v3uint Function %13
%b = OpVariable %_ptr_Function_uint Function %14
%22 = OpVariable %_ptr_Function_v3uint Function %13
OpStore %a %10
OpStore %b %14
%17 = OpLoad %v3uint %a
%18 = OpLoad %uint %b
%19 = OpLoad %uint %b
%20 = OpIAdd %uint %18 %19
%23 = OpCompositeConstruct %v3uint %20 %20 %20
%21 = OpUDiv %v3uint %17 %23
OpReturn
OpFunctionEnd