-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* basic SPIR-V 1.3 testing support * updated script to compile for more SPIR-V versions * switch to general SPIR-V versions test * update copyright text and fix license * improve output while test is running * check for higher SPIR-V versions first * fix formatting
- Loading branch information
Showing
18 changed files
with
683 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
; SPIR-V | ||
; Version: 1.0 | ||
; Generator: Khronos LLVM/SPIR-V Translator; 14 | ||
; Bound: 18 | ||
; Schema: 0 | ||
OpCapability Addresses | ||
OpCapability Linkage | ||
OpCapability Kernel | ||
%1 = OpExtInstImport "OpenCL.std" | ||
OpMemoryModel Physical32 OpenCL | ||
OpEntryPoint Kernel %9 "test_basic" %gl_GlobalInvocationID | ||
OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId | ||
OpDecorate %gl_GlobalInvocationID Constant | ||
OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import | ||
%uint = OpTypeInt 32 0 | ||
%v3uint = OpTypeVector %uint 3 | ||
%_ptr_Input_v3uint = OpTypePointer Input %v3uint | ||
%void = OpTypeVoid | ||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint | ||
%8 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint | ||
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input | ||
%9 = OpFunction %void None %8 | ||
%10 = OpFunctionParameter %_ptr_CrossWorkgroup_uint | ||
%11 = OpFunctionParameter %_ptr_CrossWorkgroup_uint | ||
%12 = OpLabel | ||
%13 = OpLoad %v3uint %gl_GlobalInvocationID Aligned 16 | ||
%14 = OpCompositeExtract %uint %13 0 | ||
%15 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %11 %14 | ||
%16 = OpLoad %uint %15 Aligned 4 | ||
%17 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %10 %14 | ||
OpStore %17 %16 Aligned 4 | ||
OpReturn | ||
OpFunctionEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
; SPIR-V | ||
; Version: 1.0 | ||
; Generator: Khronos LLVM/SPIR-V Translator; 14 | ||
; Bound: 22 | ||
; Schema: 0 | ||
OpCapability Addresses | ||
OpCapability Linkage | ||
OpCapability Kernel | ||
OpCapability Int64 | ||
%1 = OpExtInstImport "OpenCL.std" | ||
OpMemoryModel Physical64 OpenCL | ||
OpEntryPoint Kernel %10 "test_basic" %gl_GlobalInvocationID | ||
OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId | ||
OpDecorate %gl_GlobalInvocationID Constant | ||
OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import | ||
%ulong = OpTypeInt 64 0 | ||
%uint = OpTypeInt 32 0 | ||
%v3ulong = OpTypeVector %ulong 3 | ||
%_ptr_Input_v3ulong = OpTypePointer Input %v3ulong | ||
%void = OpTypeVoid | ||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint | ||
%9 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint | ||
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3ulong Input | ||
%10 = OpFunction %void None %9 | ||
%11 = OpFunctionParameter %_ptr_CrossWorkgroup_uint | ||
%12 = OpFunctionParameter %_ptr_CrossWorkgroup_uint | ||
%13 = OpLabel | ||
%14 = OpLoad %v3ulong %gl_GlobalInvocationID Aligned 32 | ||
%15 = OpCompositeExtract %ulong %14 0 | ||
%16 = OpUConvert %uint %15 | ||
%17 = OpSConvert %ulong %16 | ||
%18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %12 %17 | ||
%19 = OpLoad %uint %18 Aligned 4 | ||
%20 = OpSConvert %ulong %16 | ||
%21 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %11 %20 | ||
OpStore %21 %19 Aligned 4 | ||
OpReturn | ||
OpFunctionEnd |
33 changes: 33 additions & 0 deletions
33
test_conformance/spirv_new/spirv_asm/spv1.1/basic.spvasm32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
; SPIR-V | ||
; Version: 1.1 | ||
; Generator: Khronos LLVM/SPIR-V Translator; 14 | ||
; Bound: 18 | ||
; Schema: 0 | ||
OpCapability Addresses | ||
OpCapability Linkage | ||
OpCapability Kernel | ||
%1 = OpExtInstImport "OpenCL.std" | ||
OpMemoryModel Physical32 OpenCL | ||
OpEntryPoint Kernel %9 "test_basic" %gl_GlobalInvocationID | ||
OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId | ||
OpDecorate %gl_GlobalInvocationID Constant | ||
OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import | ||
%uint = OpTypeInt 32 0 | ||
%v3uint = OpTypeVector %uint 3 | ||
%_ptr_Input_v3uint = OpTypePointer Input %v3uint | ||
%void = OpTypeVoid | ||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint | ||
%8 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint | ||
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input | ||
%9 = OpFunction %void None %8 | ||
%10 = OpFunctionParameter %_ptr_CrossWorkgroup_uint | ||
%11 = OpFunctionParameter %_ptr_CrossWorkgroup_uint | ||
%12 = OpLabel | ||
%13 = OpLoad %v3uint %gl_GlobalInvocationID Aligned 16 | ||
%14 = OpCompositeExtract %uint %13 0 | ||
%15 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %11 %14 | ||
%16 = OpLoad %uint %15 Aligned 4 | ||
%17 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %10 %14 | ||
OpStore %17 %16 Aligned 4 | ||
OpReturn | ||
OpFunctionEnd |
38 changes: 38 additions & 0 deletions
38
test_conformance/spirv_new/spirv_asm/spv1.1/basic.spvasm64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
; SPIR-V | ||
; Version: 1.1 | ||
; Generator: Khronos LLVM/SPIR-V Translator; 14 | ||
; Bound: 22 | ||
; Schema: 0 | ||
OpCapability Addresses | ||
OpCapability Linkage | ||
OpCapability Kernel | ||
OpCapability Int64 | ||
%1 = OpExtInstImport "OpenCL.std" | ||
OpMemoryModel Physical64 OpenCL | ||
OpEntryPoint Kernel %10 "test_basic" %gl_GlobalInvocationID | ||
OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId | ||
OpDecorate %gl_GlobalInvocationID Constant | ||
OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import | ||
%ulong = OpTypeInt 64 0 | ||
%uint = OpTypeInt 32 0 | ||
%v3ulong = OpTypeVector %ulong 3 | ||
%_ptr_Input_v3ulong = OpTypePointer Input %v3ulong | ||
%void = OpTypeVoid | ||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint | ||
%9 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint | ||
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3ulong Input | ||
%10 = OpFunction %void None %9 | ||
%11 = OpFunctionParameter %_ptr_CrossWorkgroup_uint | ||
%12 = OpFunctionParameter %_ptr_CrossWorkgroup_uint | ||
%13 = OpLabel | ||
%14 = OpLoad %v3ulong %gl_GlobalInvocationID Aligned 32 | ||
%15 = OpCompositeExtract %ulong %14 0 | ||
%16 = OpUConvert %uint %15 | ||
%17 = OpSConvert %ulong %16 | ||
%18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %12 %17 | ||
%19 = OpLoad %uint %18 Aligned 4 | ||
%20 = OpSConvert %ulong %16 | ||
%21 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %11 %20 | ||
OpStore %21 %19 Aligned 4 | ||
OpReturn | ||
OpFunctionEnd |
33 changes: 33 additions & 0 deletions
33
test_conformance/spirv_new/spirv_asm/spv1.2/basic.spvasm32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
; SPIR-V | ||
; Version: 1.2 | ||
; Generator: Khronos LLVM/SPIR-V Translator; 14 | ||
; Bound: 18 | ||
; Schema: 0 | ||
OpCapability Addresses | ||
OpCapability Linkage | ||
OpCapability Kernel | ||
%1 = OpExtInstImport "OpenCL.std" | ||
OpMemoryModel Physical32 OpenCL | ||
OpEntryPoint Kernel %9 "test_basic" %gl_GlobalInvocationID | ||
OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId | ||
OpDecorate %gl_GlobalInvocationID Constant | ||
OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import | ||
%uint = OpTypeInt 32 0 | ||
%v3uint = OpTypeVector %uint 3 | ||
%_ptr_Input_v3uint = OpTypePointer Input %v3uint | ||
%void = OpTypeVoid | ||
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint | ||
%8 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint | ||
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input | ||
%9 = OpFunction %void None %8 | ||
%10 = OpFunctionParameter %_ptr_CrossWorkgroup_uint | ||
%11 = OpFunctionParameter %_ptr_CrossWorkgroup_uint | ||
%12 = OpLabel | ||
%13 = OpLoad %v3uint %gl_GlobalInvocationID Aligned 16 | ||
%14 = OpCompositeExtract %uint %13 0 | ||
%15 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %11 %14 | ||
%16 = OpLoad %uint %15 Aligned 4 | ||
%17 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %10 %14 | ||
OpStore %17 %16 Aligned 4 | ||
OpReturn | ||
OpFunctionEnd |
Oops, something went wrong.