blob: a94c8c565f3708573ff3e8f7875d6d7d998470b4 [file] [log] [blame]
; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 17
; Schema: 0
OpCapability Addresses
OpCapability Linkage
OpCapability Kernel
OpCapability Int64
OpMemoryModel Physical32 OpenCL
OpEntryPoint Kernel %1 "op_not_long" %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
%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
%10 = OpTypeFunction %void %_ptr_CrossWorkgroup_ulong
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input
%1 = OpFunction %void None %10
%in = OpFunctionParameter %_ptr_CrossWorkgroup_ulong
%11 = OpLabel
%12 = OpLoad %v3uint %gl_GlobalInvocationID Aligned 0
%13 = OpCompositeExtract %uint %12 0
%14 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_ulong %in %13
%15 = OpLoad %ulong %14
%16 = OpNot %ulong %15
OpStore %14 %16
OpReturn
OpFunctionEnd