blob: f39c703b50652001074c56069e766ab4e91de6b1 [file] [log] [blame]
; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 21
; Schema: 0
OpCapability Addresses
OpCapability Linkage
OpCapability Kernel
OpCapability Int64
OpMemoryModel Physical64 OpenCL
OpEntryPoint Kernel %1 "op_not_int4" %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
%ulong = OpTypeInt 64 0
%v3ulong = OpTypeVector %ulong 3
%_ptr_Input_v3ulong = OpTypePointer Input %v3ulong
%void = OpTypeVoid
%uint = OpTypeInt 32 0
%v4uint = OpTypeVector %uint 4
%_ptr_CrossWorkgroup_v4uint = OpTypePointer CrossWorkgroup %v4uint
%11 = OpTypeFunction %void %_ptr_CrossWorkgroup_v4uint
%ulong_32 = OpConstant %ulong 32
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3ulong Input
%1 = OpFunction %void None %11
%in = OpFunctionParameter %_ptr_CrossWorkgroup_v4uint
%13 = OpLabel
%14 = OpLoad %v3ulong %gl_GlobalInvocationID Aligned 0
%15 = OpCompositeExtract %ulong %14 0
%16 = OpShiftLeftLogical %ulong %15 %ulong_32
%17 = OpShiftRightArithmetic %ulong %16 %ulong_32
%18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_v4uint %in %17
%19 = OpLoad %v4uint %18
%20 = OpNot %v4uint %19
OpStore %18 %20
OpReturn
OpFunctionEnd