blob: 5552161c9495b0f69f538741acb5295b4911614a [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 23
; 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
%int = OpTypeInt 32 1
%v3int = OpTypeVector %int 3
%int_1 = OpConstant %int 1
%int_2 = OpConstant %int 2
%int_3 = OpConstant %int 3
%10 = OpConstantComposite %v3int %int_1 %int_2 %int_3
%_ptr_Function_v3int = OpTypePointer Function %v3int
%13 = OpConstantNull %v3int
%int_0 = OpConstant %int 0
%int_5 = OpConstant %int 5
%16 = OpConstantComposite %v3int %int_0 %int_5 %int_0
%f = OpFunction %void None %1
%4 = OpLabel
%a = OpVariable %_ptr_Function_v3int Function %13
%b = OpVariable %_ptr_Function_v3int Function %13
OpStore %a %10
OpStore %b %16
%18 = OpLoad %v3int %a
%19 = OpLoad %v3int %b
%20 = OpLoad %v3int %b
%21 = OpIAdd %v3int %19 %20
%22 = OpSDiv %v3int %18 %21
OpReturn
OpFunctionEnd