; 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 "decorate_rounding_rtn_float_int" %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 RTN
       %uint = OpTypeInt 32 0
     %v3uint = OpTypeVector %uint 3
%_ptr_Input_v3uint = OpTypePointer Input %v3uint
       %void = OpTypeVoid
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
      %float = OpTypeFloat 32
%_ptr_CrossWorkgroup_float = OpTypePointer CrossWorkgroup %float
         %14 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_float
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input
          %1 = OpFunction %void None %14
        %res = OpFunctionParameter %_ptr_CrossWorkgroup_uint
         %in = OpFunctionParameter %_ptr_CrossWorkgroup_float
      %entry = OpLabel
         %15 = OpLoad %v3uint %gl_GlobalInvocationID Aligned 0
         %16 = OpCompositeExtract %uint %15 0
         %17 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_float %in %16
         %18 = OpLoad %float %17 Aligned 4
          %6 = OpConvertFToS %uint %18
         %19 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %res %16
               OpStore %19 %6
               OpReturn
               OpFunctionEnd
