blob: a4acd729a8a9fae7a6a6ce1fcbdc6023a44075d7 [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
%int_4 = OpConstant %int 4
%_ptr_Function_int = OpTypePointer Function %int
%9 = OpConstantNull %int
%v3int = OpTypeVector %int 3
%int_2 = OpConstant %int 2
%12 = OpConstantComposite %v3int %9 %int_2 %9
%_ptr_Function_v3int = OpTypePointer Function %v3int
%15 = OpConstantNull %v3int
%f = OpFunction %void None %1
%4 = OpLabel
%a = OpVariable %_ptr_Function_int Function %9
%b = OpVariable %_ptr_Function_v3int Function %15
%21 = OpVariable %_ptr_Function_v3int Function %15
OpStore %a %int_4
OpStore %b %12
%16 = OpLoad %int %a
%17 = OpLoad %v3int %b
%18 = OpLoad %v3int %b
%19 = OpIAdd %v3int %17 %18
%22 = OpCompositeConstruct %v3int %16 %16 %16
%20 = OpSMod %v3int %22 %19
OpReturn
OpFunctionEnd