blob: 34cd2cfe46211d17615e118455fdfcb02716a898 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 21
; 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
%19 = OpVariable %_ptr_Function_v3int Function %15
OpStore %a %int_4
OpStore %b %12
%16 = OpLoad %int %a
%17 = OpLoad %v3int %b
%20 = OpCompositeConstruct %v3int %16 %16 %16
%18 = OpSDiv %v3int %20 %17
OpReturn
OpFunctionEnd