; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 22
; Schema: 0
               OpCapability Addresses
               OpCapability Linkage
               OpCapability Kernel
               OpCapability Vector16
               OpCapability Int8
               OpMemoryModel Physical32 OpenCL
               OpEntryPoint Kernel %1 "vector_char16_extract" %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
       %uint = OpTypeInt 32 0
     %v3uint = OpTypeVector %uint 3
%_ptr_Input_v3uint = OpTypePointer Input %v3uint
       %void = OpTypeVoid
      %uchar = OpTypeInt 8 0
   %v16uchar = OpTypeVector %uchar 16
%_ptr_CrossWorkgroup_uchar = OpTypePointer CrossWorkgroup %uchar
%_ptr_CrossWorkgroup_v16uchar = OpTypePointer CrossWorkgroup %v16uchar
         %13 = OpTypeFunction %void %_ptr_CrossWorkgroup_v16uchar %_ptr_CrossWorkgroup_uchar %uint
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input
          %1 = OpFunction %void None %13
         %in = OpFunctionParameter %_ptr_CrossWorkgroup_v16uchar
          %4 = OpFunctionParameter %_ptr_CrossWorkgroup_uchar
         %14 = OpFunctionParameter %uint
         %15 = OpLabel
         %16 = OpLoad %v3uint %gl_GlobalInvocationID Aligned 0
         %17 = OpCompositeExtract %uint %16 0
         %18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_v16uchar %in %17
         %19 = OpLoad %v16uchar %18
         %20 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uchar %4 %17
         %21 = OpVectorExtractDynamic %uchar %19 %14
               OpStore %20 %21
               OpReturn
               OpFunctionEnd
