; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 27
; Schema: 0
               OpCapability Addresses
               OpCapability Linkage
               OpCapability Kernel
               OpCapability Int64
               OpCapability Float64
               OpMemoryModel Physical64 OpenCL
               OpEntryPoint Kernel %1 "vector_double2_insert" %gl_GlobalInvocationID
               OpName %in "in"
               OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
               OpDecorate %gl_GlobalInvocationID Constant
               OpDecorate %in FuncParamAttr NoCapture
               OpDecorate %4 FuncParamAttr NoCapture
               OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_GlobalInvocationId" Import
      %ulong = OpTypeInt 64 0
    %v3ulong = OpTypeVector %ulong 3
%_ptr_Input_v3ulong = OpTypePointer Input %v3ulong
   %ulong_32 = OpConstant %ulong 32
       %uint = OpTypeInt 32 0
       %void = OpTypeVoid
     %double = OpTypeFloat 64
   %v2double = OpTypeVector %double 2
%_ptr_CrossWorkgroup_double = OpTypePointer CrossWorkgroup %double
%_ptr_CrossWorkgroup_v2double = OpTypePointer CrossWorkgroup %v2double
         %15 = OpTypeFunction %void %_ptr_CrossWorkgroup_double %_ptr_CrossWorkgroup_v2double %uint
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3ulong Input
          %1 = OpFunction %void None %15
         %in = OpFunctionParameter %_ptr_CrossWorkgroup_double
          %4 = OpFunctionParameter %_ptr_CrossWorkgroup_v2double
         %16 = OpFunctionParameter %uint
         %17 = OpLabel
         %18 = OpLoad %v3ulong %gl_GlobalInvocationID Aligned 0
         %19 = OpCompositeExtract %ulong %18 0
         %20 = OpShiftLeftLogical %ulong %19 %ulong_32
         %21 = OpShiftRightArithmetic %ulong %20 %ulong_32
         %22 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_double %in %21
         %23 = OpLoad %double %22
         %24 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_v2double %4 %21
         %25 = OpLoad %v2double %24
         %26 = OpVectorInsertDynamic %v2double %25 %23 %16
               OpStore %24 %26
               OpReturn
               OpFunctionEnd
