blob: 7adf383b0b6270ce8fbad4c26c41fd44e3795795 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 32
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpName %tint_mod "tint_mod"
OpName %lhs "lhs"
OpName %rhs "rhs"
OpName %f "f"
OpName %a "a"
OpName %b "b"
%uint = OpTypeInt 32 0
%v3uint = OpTypeVector %uint 3
%1 = OpTypeFunction %v3uint %uint %v3uint
%10 = OpConstantNull %v3uint
%bool = OpTypeBool
%v3bool = OpTypeVector %bool 3
%uint_1 = OpConstant %uint 1
%15 = OpConstantComposite %v3uint %uint_1 %uint_1 %uint_1
%void = OpTypeVoid
%17 = OpTypeFunction %void
%uint_4 = OpConstant %uint 4
%_ptr_Function_uint = OpTypePointer Function %uint
%24 = OpConstantNull %uint
%uint_2 = OpConstant %uint 2
%26 = OpConstantComposite %v3uint %24 %uint_2 %24
%_ptr_Function_v3uint = OpTypePointer Function %v3uint
%tint_mod = OpFunction %v3uint None %1
%lhs = OpFunctionParameter %uint
%rhs = OpFunctionParameter %v3uint
%7 = OpLabel
%8 = OpCompositeConstruct %v3uint %lhs %lhs %lhs
%11 = OpIEqual %v3bool %rhs %10
%9 = OpSelect %v3uint %11 %15 %rhs
%16 = OpUMod %v3uint %8 %9
OpReturnValue %16
OpFunctionEnd
%f = OpFunction %void None %17
%20 = OpLabel
%a = OpVariable %_ptr_Function_uint Function %24
%b = OpVariable %_ptr_Function_v3uint Function %10
OpStore %a %uint_4
OpStore %b %26
%30 = OpLoad %uint %a
%31 = OpLoad %v3uint %b
%29 = OpFunctionCall %v3uint %tint_mod %30 %31
OpReturn
OpFunctionEnd