; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 25
; Schema: 0
               OpCapability Addresses
               OpCapability Linkage
               OpCapability Kernel
               OpCapability Int8
               OpCapability Float16
               OpMemoryModel Physical32 OpenCL
               OpEntryPoint Kernel %1 "decorate_saturated_conversion_half_to_char" %gl_GlobalInvocationID
               OpName %res "res"
               OpName %lhs "lhs"
               OpName %rhs "rhs"
               OpName %entry "entry"
               OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
               OpDecorate %gl_GlobalInvocationID Constant
               OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_GlobalInvocationId" Import
               OpDecorate %7 SaturatedConversion
       %uint = OpTypeInt 32 0
     %v3uint = OpTypeVector %uint 3
%_ptr_Input_v3uint = OpTypePointer Input %v3uint
       %void = OpTypeVoid
      %uchar = OpTypeInt 8 0
%_ptr_CrossWorkgroup_uchar = OpTypePointer CrossWorkgroup %uchar
      %half = OpTypeFloat 16
%_ptr_CrossWorkgroup_half = OpTypePointer CrossWorkgroup %half
         %16 = OpTypeFunction %void %_ptr_CrossWorkgroup_uchar %_ptr_CrossWorkgroup_half %_ptr_CrossWorkgroup_half
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input
          %1 = OpFunction %void None %16
        %res = OpFunctionParameter %_ptr_CrossWorkgroup_uchar
        %lhs = OpFunctionParameter %_ptr_CrossWorkgroup_half
        %rhs = OpFunctionParameter %_ptr_CrossWorkgroup_half
      %entry = OpLabel
         %17 = OpLoad %v3uint %gl_GlobalInvocationID Aligned 0
         %18 = OpCompositeExtract %uint %17 0
         %19 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_half %lhs %18
         %20 = OpLoad %half %19 Aligned 2
         %21 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_half %rhs %18
         %22 = OpLoad %half %21 Aligned 2
         %23 = OpFMul %half %20 %22
          %7 = OpConvertFToS %uchar %23
         %24 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uchar %res %18
               OpStore %24 %7
               OpReturn
               OpFunctionEnd
