; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 20
; Schema: 0
               OpCapability Addresses
               OpCapability Linkage
               OpCapability Kernel
               OpMemoryModel Physical32 OpenCL
               OpEntryPoint Kernel %1 "test_linkage" %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
               OpDecorate %4 LinkageAttributes "simple_fnegate_linkage" Import
       %uint = OpTypeInt 32 0
     %v3uint = OpTypeVector %uint 3
%_ptr_Input_v3uint = OpTypePointer Input %v3uint
       %void = OpTypeVoid
      %float = OpTypeFloat 32
%_ptr_CrossWorkgroup_float = OpTypePointer CrossWorkgroup %float
         %11 = OpTypeFunction %void %_ptr_CrossWorkgroup_float
         %12 = OpTypeFunction %float %float
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input
          %4 = OpFunction %float Const %12
         %13 = OpFunctionParameter %float
               OpFunctionEnd
          %1 = OpFunction %void None %11
         %in = OpFunctionParameter %_ptr_CrossWorkgroup_float
         %14 = OpLabel
         %15 = OpLoad %v3uint %gl_GlobalInvocationID Aligned 0
         %16 = OpCompositeExtract %uint %15 0
         %17 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_float %in %16
         %18 = OpLoad %float %17
         %19 = OpFunctionCall %float %4 %18
               OpStore %17 %19
               OpReturn
               OpFunctionEnd
