blob: b434804bd2744858c1a590b4342b85338b02ecfc [file] [log] [blame]
; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 23
; Schema: 0
OpCapability Addresses
OpCapability Linkage
OpCapability Kernel
OpCapability Float64
OpMemoryModel Physical32 OpenCL
OpEntryPoint Kernel %1 "vector_double2_insert" %gl_GlobalInvocationID
OpName %in "in"
OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
OpDecorate %gl_GlobalInvocationID Constant
OpDecorate %in FuncParamAttr NoCapture
OpDecorate %4 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
%double = OpTypeFloat 64
%v2double = OpTypeVector %double 2
%_ptr_CrossWorkgroup_double = OpTypePointer CrossWorkgroup %double
%_ptr_CrossWorkgroup_v2double = OpTypePointer CrossWorkgroup %v2double
%13 = OpTypeFunction %void %_ptr_CrossWorkgroup_double %_ptr_CrossWorkgroup_v2double %uint
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input
%1 = OpFunction %void None %13
%in = OpFunctionParameter %_ptr_CrossWorkgroup_double
%4 = OpFunctionParameter %_ptr_CrossWorkgroup_v2double
%14 = OpFunctionParameter %uint
%15 = OpLabel
%16 = OpLoad %v3uint %gl_GlobalInvocationID Aligned 0
%17 = OpCompositeExtract %uint %16 0
%18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_double %in %17
%19 = OpLoad %double %18
%20 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_v2double %4 %17
%21 = OpLoad %v2double %20
%22 = OpVectorInsertDynamic %v2double %21 %19 %14
OpStore %20 %22
OpReturn
OpFunctionEnd