blob: d42a1578417300c24f4b50f3e94eb0695eefb2a4 [file] [log] [blame]
; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 20
; Schema: 0
OpCapability Addresses
OpCapability Linkage
OpCapability Kernel
OpCapability Int64
OpMemoryModel Physical64 OpenCL
OpEntryPoint Kernel %1 "undef_int4_simple" %gl_GlobalInvocationID
OpName %in "in"
OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
OpDecorate %gl_GlobalInvocationID Constant
OpDecorate %in FuncParamAttr NoCapture
OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_GlobalInvocationId" Import
%ulong = OpTypeInt 64 0
%v3ulong = OpTypeVector %ulong 3
%_ptr_Input_v3ulong = OpTypePointer Input %v3ulong
%void = OpTypeVoid
%uint = OpTypeInt 32 0
%v4uint = OpTypeVector %uint 4
%_ptr_CrossWorkgroup_v4uint = OpTypePointer CrossWorkgroup %v4uint
%11 = OpTypeFunction %void %_ptr_CrossWorkgroup_v4uint
%ulong_32 = OpConstant %ulong 32
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3ulong Input
%1 = OpFunction %void None %11
%in = OpFunctionParameter %_ptr_CrossWorkgroup_v4uint
%13 = OpLabel
%14 = OpUndef %v4uint
%15 = OpLoad %v3ulong %gl_GlobalInvocationID Aligned 0
%16 = OpCompositeExtract %ulong %15 0
%17 = OpShiftLeftLogical %ulong %16 %ulong_32
%18 = OpShiftRightArithmetic %ulong %17 %ulong_32
%19 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_v4uint %in %18
OpStore %19 %14
OpReturn
OpFunctionEnd