; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 16
; Schema: 0
               OpCapability Addresses
               OpCapability Linkage
               OpCapability Kernel
               OpCapability Int16
               OpMemoryModel Physical32 OpenCL
               OpEntryPoint Kernel %1 "undef_ushort_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
       %uint = OpTypeInt 32 0
     %v3uint = OpTypeVector %uint 3
%_ptr_Input_v3uint = OpTypePointer Input %v3uint
       %void = OpTypeVoid
     %ushort = OpTypeInt 16 0
%_ptr_CrossWorkgroup_ushort = OpTypePointer CrossWorkgroup %ushort
         %10 = OpTypeFunction %void %_ptr_CrossWorkgroup_ushort
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input
          %1 = OpFunction %void None %10
         %in = OpFunctionParameter %_ptr_CrossWorkgroup_ushort
         %11 = OpLabel
         %12 = OpUndef %ushort
         %13 = OpLoad %v3uint %gl_GlobalInvocationID Aligned 0
         %14 = OpCompositeExtract %uint %13 0
         %15 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_ushort %in %14
               OpStore %15 %12
               OpReturn
               OpFunctionEnd
