; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 21
; Schema: 0
               OpCapability Addresses
               OpCapability Linkage
               OpCapability Kernel
               OpCapability Float64
               OpCapability Int64
               OpMemoryModel Physical32 OpenCL
               OpEntryPoint Kernel %1 "decorate_rounding_rte_double_long" %gl_GlobalInvocationID
               OpName %res "res"
               OpName %in "in"
               OpName %entry "entry"
               OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
               OpDecorate %gl_GlobalInvocationID Constant
               OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_GlobalInvocationId" Import
               OpDecorate %6 FPRoundingMode RTE
       %uint = OpTypeInt 32 0
     %v3uint = OpTypeVector %uint 3
%_ptr_Input_v3uint = OpTypePointer Input %v3uint
       %void = OpTypeVoid
      %ulong = OpTypeInt 64 0
%_ptr_CrossWorkgroup_ulong = OpTypePointer CrossWorkgroup %ulong
     %double = OpTypeFloat 64
%_ptr_CrossWorkgroup_double = OpTypePointer CrossWorkgroup %double
         %15 = OpTypeFunction %void %_ptr_CrossWorkgroup_ulong %_ptr_CrossWorkgroup_double
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input
          %1 = OpFunction %void None %15
        %res = OpFunctionParameter %_ptr_CrossWorkgroup_ulong
         %in = OpFunctionParameter %_ptr_CrossWorkgroup_double
      %entry = OpLabel
         %16 = OpLoad %v3uint %gl_GlobalInvocationID Aligned 0
         %17 = OpCompositeExtract %uint %16 0
         %18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_double %in %17
         %19 = OpLoad %double %18
          %6 = OpConvertFToS %ulong %19
         %20 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_ulong %res %17
               OpStore %20 %6
               OpReturn
               OpFunctionEnd
