mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
* Reformat SPIR-V assembly using spirv-dis Signed-off-by: Stuart Brady <stuart.brady@arm.com> * Fix duplicate non-aggregate type decls in SPIR-V as reported by spirv-val Signed-off-by: Stuart Brady <stuart.brady@arm.com> * Reposition OpExtensions correctly in SPIR-V as reported by spirv-val Signed-off-by: Stuart Brady <stuart.brady@arm.com> * Reposition OpVariables correctly in SPIR-V as reported by spirv-val Signed-off-by: Stuart Brady <stuart.brady@arm.com> * Add missing OpTypeImage access qualifiers in SPIR-V as reported by spirv-val Signed-off-by: Stuart Brady <stuart.brady@arm.com> * Remove same-width OpSConverts in SPIR-V as reported by spirv-val Signed-off-by: Stuart Brady <stuart.brady@arm.com> * Replace -ILPath with --spirv-binaries-path in README Signed-off-by: Stuart Brady <stuart.brady@arm.com>
37 lines
1.6 KiB
Plaintext
37 lines
1.6 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: Khronos SPIR-V Tools Assembler; 0
|
|
; Bound: 18
|
|
; Schema: 0
|
|
OpCapability Addresses
|
|
OpCapability Linkage
|
|
OpCapability Kernel
|
|
OpMemoryModel Physical32 OpenCL
|
|
OpEntryPoint Kernel %1 "branch_simple"
|
|
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
|
|
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
|
%9 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
|
%gl_GlobalInvocationID = OpVariable %_ptr_UniformConstant_v3uint UniformConstant
|
|
%1 = OpFunction %void None %9
|
|
%in = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
|
%10 = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
|
%11 = OpLabel
|
|
%12 = OpLoad %v3uint %gl_GlobalInvocationID Aligned 0
|
|
%13 = OpCompositeExtract %uint %12 0
|
|
%14 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %in %13
|
|
%15 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %10 %13
|
|
%16 = OpLoad %uint %14
|
|
OpBranch %17
|
|
%17 = OpLabel
|
|
OpStore %15 %16
|
|
OpReturn
|
|
OpFunctionEnd
|