mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-26 00:39:03 +00:00
cl21: Fix Issue 38 - Test spirv_new - new test for cl_khr_spirv_no_integer_… (#119)
* Fix Issue 38 - Test spirv_new - new test for cl_khr_spirv_no_integer_wrap_decoration SPV_KHR_no_integer_wrap_decoration extension * Remove not used variable.
This commit is contained in:
committed by
Kévin Petit
parent
a6fdb7ce60
commit
32e702efbc
@@ -0,0 +1,47 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 23
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical32 OpenCL
|
||||
OpEntryPoint Kernel %9 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %22 FuncParamAttr NoWrite
|
||||
%22 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpDecorate %20 NoSignedWrap
|
||||
OpGroupDecorate %22 %lhs %rhs
|
||||
%uint = OpTypeInt 32 0
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%_ptr_UniformConstant_v3uint = OpTypePointer UniformConstant %v3uint
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%8 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3uint UniformConstant
|
||||
%9 = OpFunction %void None %8
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%13 = OpLabel
|
||||
%14 = OpLoad %v3uint %__spirv_BuiltInGlobalInvocationId
|
||||
%15 = OpCompositeExtract %uint %14 0
|
||||
%16 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %15
|
||||
%17 = OpLoad %uint %16 Aligned 4
|
||||
%18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %rhs %15
|
||||
%19 = OpLoad %uint %18 Aligned 4
|
||||
%20 = OpIAdd %uint %17 %19
|
||||
%21 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %15
|
||||
OpStore %21 %20 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,53 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 28
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
OpCapability Int64
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical64 OpenCL
|
||||
OpEntryPoint Kernel %10 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %27 FuncParamAttr NoWrite
|
||||
%27 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpDecorate %24 NoSignedWrap
|
||||
OpGroupDecorate %27 %lhs %rhs
|
||||
%ulong = OpTypeInt 64 0
|
||||
%uint = OpTypeInt 32 0
|
||||
%v3ulong = OpTypeVector %ulong 3
|
||||
%_ptr_UniformConstant_v3ulong = OpTypePointer UniformConstant %v3ulong
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%9 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3ulong UniformConstant
|
||||
%10 = OpFunction %void None %9
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%14 = OpLabel
|
||||
%15 = OpLoad %v3ulong %__spirv_BuiltInGlobalInvocationId
|
||||
%16 = OpCompositeExtract %ulong %15 0
|
||||
%17 = OpUConvert %uint %16
|
||||
%18 = OpSConvert %ulong %17
|
||||
%19 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %18
|
||||
%20 = OpLoad %uint %19 Aligned 4
|
||||
%21 = OpSConvert %ulong %17
|
||||
%22 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %rhs %21
|
||||
%23 = OpLoad %uint %22 Aligned 4
|
||||
%24 = OpIAdd %uint %20 %23
|
||||
%25 = OpSConvert %ulong %17
|
||||
%26 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %25
|
||||
OpStore %26 %24 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,47 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 23
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical32 OpenCL
|
||||
OpEntryPoint Kernel %9 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %22 FuncParamAttr NoWrite
|
||||
%22 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpDecorate %20 NoUnsignedWrap
|
||||
OpGroupDecorate %22 %lhs %rhs
|
||||
%uint = OpTypeInt 32 0
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%_ptr_UniformConstant_v3uint = OpTypePointer UniformConstant %v3uint
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%8 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3uint UniformConstant
|
||||
%9 = OpFunction %void None %8
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%13 = OpLabel
|
||||
%14 = OpLoad %v3uint %__spirv_BuiltInGlobalInvocationId
|
||||
%15 = OpCompositeExtract %uint %14 0
|
||||
%16 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %15
|
||||
%17 = OpLoad %uint %16 Aligned 4
|
||||
%18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %rhs %15
|
||||
%19 = OpLoad %uint %18 Aligned 4
|
||||
%20 = OpIAdd %uint %17 %19
|
||||
%21 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %15
|
||||
OpStore %21 %20 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,53 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 28
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
OpCapability Int64
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical64 OpenCL
|
||||
OpEntryPoint Kernel %10 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %27 FuncParamAttr NoWrite
|
||||
%27 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpDecorate %24 NoUnsignedWrap
|
||||
OpGroupDecorate %27 %lhs %rhs
|
||||
%ulong = OpTypeInt 64 0
|
||||
%uint = OpTypeInt 32 0
|
||||
%v3ulong = OpTypeVector %ulong 3
|
||||
%_ptr_UniformConstant_v3ulong = OpTypePointer UniformConstant %v3ulong
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%9 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3ulong UniformConstant
|
||||
%10 = OpFunction %void None %9
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%14 = OpLabel
|
||||
%15 = OpLoad %v3ulong %__spirv_BuiltInGlobalInvocationId
|
||||
%16 = OpCompositeExtract %ulong %15 0
|
||||
%17 = OpUConvert %uint %16
|
||||
%18 = OpSConvert %ulong %17
|
||||
%19 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %18
|
||||
%20 = OpLoad %uint %19 Aligned 4
|
||||
%21 = OpSConvert %ulong %17
|
||||
%22 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %rhs %21
|
||||
%23 = OpLoad %uint %22 Aligned 4
|
||||
%24 = OpIAdd %uint %20 %23
|
||||
%25 = OpSConvert %ulong %17
|
||||
%26 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %25
|
||||
OpStore %26 %24 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,47 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 23
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical32 OpenCL
|
||||
OpEntryPoint Kernel %9 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %22 FuncParamAttr NoWrite
|
||||
%22 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpDecorate %20 NoSignedWrap
|
||||
OpGroupDecorate %22 %lhs %rhs
|
||||
%uint = OpTypeInt 32 0
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%_ptr_UniformConstant_v3uint = OpTypePointer UniformConstant %v3uint
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%8 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3uint UniformConstant
|
||||
%9 = OpFunction %void None %8
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%13 = OpLabel
|
||||
%14 = OpLoad %v3uint %__spirv_BuiltInGlobalInvocationId
|
||||
%15 = OpCompositeExtract %uint %14 0
|
||||
%16 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %15
|
||||
%17 = OpLoad %uint %16 Aligned 4
|
||||
%18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %rhs %15
|
||||
%19 = OpLoad %uint %18 Aligned 4
|
||||
%20 = OpIMul %uint %17 %19
|
||||
%21 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %15
|
||||
OpStore %21 %20 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,53 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 28
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
OpCapability Int64
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical64 OpenCL
|
||||
OpEntryPoint Kernel %10 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %27 FuncParamAttr NoWrite
|
||||
%27 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpDecorate %24 NoSignedWrap
|
||||
OpGroupDecorate %27 %lhs %rhs
|
||||
%ulong = OpTypeInt 64 0
|
||||
%uint = OpTypeInt 32 0
|
||||
%v3ulong = OpTypeVector %ulong 3
|
||||
%_ptr_UniformConstant_v3ulong = OpTypePointer UniformConstant %v3ulong
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%9 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3ulong UniformConstant
|
||||
%10 = OpFunction %void None %9
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%14 = OpLabel
|
||||
%15 = OpLoad %v3ulong %__spirv_BuiltInGlobalInvocationId
|
||||
%16 = OpCompositeExtract %ulong %15 0
|
||||
%17 = OpUConvert %uint %16
|
||||
%18 = OpSConvert %ulong %17
|
||||
%19 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %18
|
||||
%20 = OpLoad %uint %19 Aligned 4
|
||||
%21 = OpSConvert %ulong %17
|
||||
%22 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %rhs %21
|
||||
%23 = OpLoad %uint %22 Aligned 4
|
||||
%24 = OpIMul %uint %20 %23
|
||||
%25 = OpSConvert %ulong %17
|
||||
%26 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %25
|
||||
OpStore %26 %24 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,47 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 23
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical32 OpenCL
|
||||
OpEntryPoint Kernel %9 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %22 FuncParamAttr NoWrite
|
||||
%22 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpDecorate %20 NoUnsignedWrap
|
||||
OpGroupDecorate %22 %lhs %rhs
|
||||
%uint = OpTypeInt 32 0
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%_ptr_UniformConstant_v3uint = OpTypePointer UniformConstant %v3uint
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%8 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3uint UniformConstant
|
||||
%9 = OpFunction %void None %8
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%13 = OpLabel
|
||||
%14 = OpLoad %v3uint %__spirv_BuiltInGlobalInvocationId
|
||||
%15 = OpCompositeExtract %uint %14 0
|
||||
%16 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %15
|
||||
%17 = OpLoad %uint %16 Aligned 4
|
||||
%18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %rhs %15
|
||||
%19 = OpLoad %uint %18 Aligned 4
|
||||
%20 = OpIMul %uint %17 %19
|
||||
%21 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %15
|
||||
OpStore %21 %20 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,53 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 28
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
OpCapability Int64
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical64 OpenCL
|
||||
OpEntryPoint Kernel %10 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %27 FuncParamAttr NoWrite
|
||||
%27 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpDecorate %24 NoUnsignedWrap
|
||||
OpGroupDecorate %27 %lhs %rhs
|
||||
%ulong = OpTypeInt 64 0
|
||||
%uint = OpTypeInt 32 0
|
||||
%v3ulong = OpTypeVector %ulong 3
|
||||
%_ptr_UniformConstant_v3ulong = OpTypePointer UniformConstant %v3ulong
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%9 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3ulong UniformConstant
|
||||
%10 = OpFunction %void None %9
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%14 = OpLabel
|
||||
%15 = OpLoad %v3ulong %__spirv_BuiltInGlobalInvocationId
|
||||
%16 = OpCompositeExtract %ulong %15 0
|
||||
%17 = OpUConvert %uint %16
|
||||
%18 = OpSConvert %ulong %17
|
||||
%19 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %18
|
||||
%20 = OpLoad %uint %19 Aligned 4
|
||||
%21 = OpSConvert %ulong %17
|
||||
%22 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %rhs %21
|
||||
%23 = OpLoad %uint %22 Aligned 4
|
||||
%24 = OpIMul %uint %20 %23
|
||||
%25 = OpSConvert %ulong %17
|
||||
%26 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %25
|
||||
OpStore %26 %24 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,46 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 22
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical32 OpenCL
|
||||
OpEntryPoint Kernel %9 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %21 FuncParamAttr NoWrite
|
||||
OpDecorate %19 NoSignedWrap
|
||||
%21 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpGroupDecorate %21 %lhs %rhs
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%_ptr_UniformConstant_v3uint = OpTypePointer UniformConstant %v3uint
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%8 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3uint UniformConstant
|
||||
%9 = OpFunction %void None %8
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%13 = OpLabel
|
||||
%14 = OpLoad %v3uint %__spirv_BuiltInGlobalInvocationId
|
||||
%15 = OpCompositeExtract %uint %14 0
|
||||
%16 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %15
|
||||
%17 = OpLoad %uint %16 Aligned 4
|
||||
%19 = OpSNegate %uint %17
|
||||
%20 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %15
|
||||
OpStore %20 %19 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,51 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 26
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
OpCapability Int64
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical64 OpenCL
|
||||
OpEntryPoint Kernel %10 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %25 FuncParamAttr NoWrite
|
||||
OpDecorate %22 NoSignedWrap
|
||||
%25 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpGroupDecorate %25 %lhs %rhs
|
||||
%ulong = OpTypeInt 64 0
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%v3ulong = OpTypeVector %ulong 3
|
||||
%_ptr_UniformConstant_v3ulong = OpTypePointer UniformConstant %v3ulong
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%9 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3ulong UniformConstant
|
||||
%10 = OpFunction %void None %9
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%14 = OpLabel
|
||||
%15 = OpLoad %v3ulong %__spirv_BuiltInGlobalInvocationId
|
||||
%16 = OpCompositeExtract %ulong %15 0
|
||||
%17 = OpUConvert %uint %16
|
||||
%18 = OpSConvert %ulong %17
|
||||
%19 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %18
|
||||
%20 = OpLoad %uint %19 Aligned 4
|
||||
%22 = OpSNegate %uint %20
|
||||
%23 = OpSConvert %ulong %17
|
||||
%24 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %23
|
||||
OpStore %24 %22 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,49 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 25
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical32 OpenCL
|
||||
OpEntryPoint Kernel %9 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %24 FuncParamAttr NoWrite
|
||||
%24 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpDecorate %22 NoSignedWrap
|
||||
OpGroupDecorate %24 %lhs %rhs
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_31 = OpConstant %uint 31
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%_ptr_UniformConstant_v3uint = OpTypePointer UniformConstant %v3uint
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%8 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3uint UniformConstant
|
||||
%9 = OpFunction %void None %8
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%13 = OpLabel
|
||||
%14 = OpLoad %v3uint %__spirv_BuiltInGlobalInvocationId
|
||||
%15 = OpCompositeExtract %uint %14 0
|
||||
%16 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %15
|
||||
%17 = OpLoad %uint %16 Aligned 4
|
||||
%18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %rhs %15
|
||||
%19 = OpLoad %uint %18 Aligned 4
|
||||
%21 = OpBitwiseAnd %uint %19 %uint_31
|
||||
%22 = OpShiftLeftLogical %uint %17 %21
|
||||
%23 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %15
|
||||
OpStore %23 %22 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,55 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 30
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
OpCapability Int64
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical64 OpenCL
|
||||
OpEntryPoint Kernel %10 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %29 FuncParamAttr NoWrite
|
||||
%29 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpDecorate %26 NoSignedWrap
|
||||
OpGroupDecorate %29 %lhs %rhs
|
||||
%ulong = OpTypeInt 64 0
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_31 = OpConstant %uint 31
|
||||
%v3ulong = OpTypeVector %ulong 3
|
||||
%_ptr_UniformConstant_v3ulong = OpTypePointer UniformConstant %v3ulong
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%9 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3ulong UniformConstant
|
||||
%10 = OpFunction %void None %9
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%14 = OpLabel
|
||||
%15 = OpLoad %v3ulong %__spirv_BuiltInGlobalInvocationId
|
||||
%16 = OpCompositeExtract %ulong %15 0
|
||||
%17 = OpUConvert %uint %16
|
||||
%18 = OpSConvert %ulong %17
|
||||
%19 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %18
|
||||
%20 = OpLoad %uint %19 Aligned 4
|
||||
%21 = OpSConvert %ulong %17
|
||||
%22 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %rhs %21
|
||||
%23 = OpLoad %uint %22 Aligned 4
|
||||
%25 = OpBitwiseAnd %uint %23 %uint_31
|
||||
%26 = OpShiftLeftLogical %uint %20 %25
|
||||
%27 = OpSConvert %ulong %17
|
||||
%28 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %27
|
||||
OpStore %28 %26 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,49 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 25
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical32 OpenCL
|
||||
OpEntryPoint Kernel %9 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %24 FuncParamAttr NoWrite
|
||||
%24 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpDecorate %22 NoUnsignedWrap
|
||||
OpGroupDecorate %24 %lhs %rhs
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_31 = OpConstant %uint 31
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%_ptr_UniformConstant_v3uint = OpTypePointer UniformConstant %v3uint
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%8 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3uint UniformConstant
|
||||
%9 = OpFunction %void None %8
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%13 = OpLabel
|
||||
%14 = OpLoad %v3uint %__spirv_BuiltInGlobalInvocationId
|
||||
%15 = OpCompositeExtract %uint %14 0
|
||||
%16 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %15
|
||||
%17 = OpLoad %uint %16 Aligned 4
|
||||
%18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %rhs %15
|
||||
%19 = OpLoad %uint %18 Aligned 4
|
||||
%21 = OpBitwiseAnd %uint %19 %uint_31
|
||||
%22 = OpShiftLeftLogical %uint %17 %21
|
||||
%23 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %15
|
||||
OpStore %23 %22 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,55 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 30
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
OpCapability Int64
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical64 OpenCL
|
||||
OpEntryPoint Kernel %10 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %29 FuncParamAttr NoWrite
|
||||
%29 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpDecorate %26 NoUnsignedWrap
|
||||
OpGroupDecorate %29 %lhs %rhs
|
||||
%ulong = OpTypeInt 64 0
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_31 = OpConstant %uint 31
|
||||
%v3ulong = OpTypeVector %ulong 3
|
||||
%_ptr_UniformConstant_v3ulong = OpTypePointer UniformConstant %v3ulong
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%9 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3ulong UniformConstant
|
||||
%10 = OpFunction %void None %9
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%14 = OpLabel
|
||||
%15 = OpLoad %v3ulong %__spirv_BuiltInGlobalInvocationId
|
||||
%16 = OpCompositeExtract %ulong %15 0
|
||||
%17 = OpUConvert %uint %16
|
||||
%18 = OpSConvert %ulong %17
|
||||
%19 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %18
|
||||
%20 = OpLoad %uint %19 Aligned 4
|
||||
%21 = OpSConvert %ulong %17
|
||||
%22 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %rhs %21
|
||||
%23 = OpLoad %uint %22 Aligned 4
|
||||
%25 = OpBitwiseAnd %uint %23 %uint_31
|
||||
%26 = OpShiftLeftLogical %uint %20 %25
|
||||
%27 = OpSConvert %ulong %17
|
||||
%28 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %27
|
||||
OpStore %28 %26 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,47 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 23
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical32 OpenCL
|
||||
OpEntryPoint Kernel %9 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %22 FuncParamAttr NoWrite
|
||||
%22 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpGroupDecorate %22 %lhs %rhs
|
||||
OpDecorate %20 NoSignedWrap
|
||||
%uint = OpTypeInt 32 0
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%_ptr_UniformConstant_v3uint = OpTypePointer UniformConstant %v3uint
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%8 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3uint UniformConstant
|
||||
%9 = OpFunction %void None %8
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%13 = OpLabel
|
||||
%14 = OpLoad %v3uint %__spirv_BuiltInGlobalInvocationId
|
||||
%15 = OpCompositeExtract %uint %14 0
|
||||
%16 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %15
|
||||
%17 = OpLoad %uint %16 Aligned 4
|
||||
%18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %rhs %15
|
||||
%19 = OpLoad %uint %18 Aligned 4
|
||||
%20 = OpISub %uint %17 %19
|
||||
%21 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %15
|
||||
OpStore %21 %20 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,53 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 28
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
OpCapability Int64
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical64 OpenCL
|
||||
OpEntryPoint Kernel %10 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %27 FuncParamAttr NoWrite
|
||||
%27 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpGroupDecorate %27 %lhs %rhs
|
||||
OpDecorate %24 NoSignedWrap
|
||||
%ulong = OpTypeInt 64 0
|
||||
%uint = OpTypeInt 32 0
|
||||
%v3ulong = OpTypeVector %ulong 3
|
||||
%_ptr_UniformConstant_v3ulong = OpTypePointer UniformConstant %v3ulong
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%9 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3ulong UniformConstant
|
||||
%10 = OpFunction %void None %9
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%14 = OpLabel
|
||||
%15 = OpLoad %v3ulong %__spirv_BuiltInGlobalInvocationId
|
||||
%16 = OpCompositeExtract %ulong %15 0
|
||||
%17 = OpUConvert %uint %16
|
||||
%18 = OpSConvert %ulong %17
|
||||
%19 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %18
|
||||
%20 = OpLoad %uint %19 Aligned 4
|
||||
%21 = OpSConvert %ulong %17
|
||||
%22 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %rhs %21
|
||||
%23 = OpLoad %uint %22 Aligned 4
|
||||
%24 = OpISub %uint %20 %23
|
||||
%25 = OpSConvert %ulong %17
|
||||
%26 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %25
|
||||
OpStore %26 %24 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,47 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 23
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical32 OpenCL
|
||||
OpEntryPoint Kernel %9 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %22 FuncParamAttr NoWrite
|
||||
%22 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpGroupDecorate %22 %lhs %rhs
|
||||
OpDecorate %20 NoUnsignedWrap
|
||||
%uint = OpTypeInt 32 0
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%_ptr_UniformConstant_v3uint = OpTypePointer UniformConstant %v3uint
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%8 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3uint UniformConstant
|
||||
%9 = OpFunction %void None %8
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%13 = OpLabel
|
||||
%14 = OpLoad %v3uint %__spirv_BuiltInGlobalInvocationId
|
||||
%15 = OpCompositeExtract %uint %14 0
|
||||
%16 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %15
|
||||
%17 = OpLoad %uint %16 Aligned 4
|
||||
%18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %rhs %15
|
||||
%19 = OpLoad %uint %18 Aligned 4
|
||||
%20 = OpISub %uint %17 %19
|
||||
%21 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %15
|
||||
OpStore %21 %20 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,53 @@
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos LLVM/SPIR-V Translator; 14
|
||||
; Bound: 28
|
||||
; Schema: 0
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
OpCapability Int64
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical64 OpenCL
|
||||
OpEntryPoint Kernel %10 "fmath_cl"
|
||||
OpSource OpenCL_C 200000
|
||||
OpExtension "SPV_KHR_no_integer_wrap_decoration"
|
||||
OpName %__spirv_BuiltInGlobalInvocationId "__spirv_BuiltInGlobalInvocationId"
|
||||
OpName %out "out"
|
||||
OpName %lhs "lhs"
|
||||
OpName %rhs "rhs"
|
||||
OpDecorate %27 FuncParamAttr NoWrite
|
||||
%27 = OpDecorationGroup
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId BuiltIn GlobalInvocationId
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId Constant
|
||||
OpDecorate %__spirv_BuiltInGlobalInvocationId LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
|
||||
OpGroupDecorate %27 %lhs %rhs
|
||||
OpDecorate %24 NoUnsignedWrap
|
||||
%ulong = OpTypeInt 64 0
|
||||
%uint = OpTypeInt 32 0
|
||||
%v3ulong = OpTypeVector %ulong 3
|
||||
%_ptr_UniformConstant_v3ulong = OpTypePointer UniformConstant %v3ulong
|
||||
%void = OpTypeVoid
|
||||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
||||
%9 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
||||
%__spirv_BuiltInGlobalInvocationId = OpVariable %_ptr_UniformConstant_v3ulong UniformConstant
|
||||
%10 = OpFunction %void None %9
|
||||
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
||||
%14 = OpLabel
|
||||
%15 = OpLoad %v3ulong %__spirv_BuiltInGlobalInvocationId
|
||||
%16 = OpCompositeExtract %ulong %15 0
|
||||
%17 = OpUConvert %uint %16
|
||||
%18 = OpSConvert %ulong %17
|
||||
%19 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %18
|
||||
%20 = OpLoad %uint %19 Aligned 4
|
||||
%21 = OpSConvert %ulong %17
|
||||
%22 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %rhs %21
|
||||
%23 = OpLoad %uint %22 Aligned 4
|
||||
%24 = OpISub %uint %20 %23
|
||||
%25 = OpSConvert %ulong %17
|
||||
%26 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %25
|
||||
OpStore %26 %24 Aligned 4
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
Reference in New Issue
Block a user