| ; SPIR-V |
| ; Version: 1.0 |
| ; Generator: Khronos SPIR-V Tools Assembler; 0 |
| ; Bound: 17 |
| ; Schema: 0 |
| OpCapability Addresses |
| OpCapability Linkage |
| OpCapability Kernel |
| OpCapability Int16 |
| OpMemoryModel Physical32 OpenCL |
| OpEntryPoint Kernel %1 "op_neg_short" |
| 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_UniformConstant_v3uint = OpTypePointer UniformConstant %v3uint |
| %void = OpTypeVoid |
| %ushort = OpTypeInt 16 0 |
| %_ptr_CrossWorkgroup_ushort = OpTypePointer CrossWorkgroup %ushort |
| %10 = OpTypeFunction %void %_ptr_CrossWorkgroup_ushort |
| %gl_GlobalInvocationID = OpVariable %_ptr_UniformConstant_v3uint UniformConstant |
| %1 = OpFunction %void None %10 |
| %in = OpFunctionParameter %_ptr_CrossWorkgroup_ushort |
| %11 = OpLabel |
| %12 = OpLoad %v3uint %gl_GlobalInvocationID Aligned 0 |
| %13 = OpCompositeExtract %uint %12 0 |
| %14 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_ushort %in %13 |
| %15 = OpLoad %ushort %14 |
| %16 = OpSNegate %ushort %15 |
| OpStore %14 %16 |
| OpReturn |
| OpFunctionEnd |