mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
After https://github.com/KhronosGroup/SPIRV-Tools/pull/6027 spirv-val is now rejecting `Aligned 0` Memory Operands. This causes the spirv_new test binary to no longer build with a recent SPIRV-Tools version. Mechanically remove all occurrences of `Aligned 0` in the SPIR-V assembly files. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
64 lines
2.7 KiB
Plaintext
64 lines
2.7 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: Khronos SPIR-V Tools Assembler; 0
|
|
; Bound: 36
|
|
; Schema: 0
|
|
OpCapability Addresses
|
|
OpCapability Linkage
|
|
OpCapability Kernel
|
|
OpCapability Int64
|
|
OpMemoryModel Physical64 OpenCL
|
|
OpEntryPoint Kernel %1 "branch_conditional" %gl_GlobalInvocationID
|
|
OpName %res "res"
|
|
OpName %lhs "lhs"
|
|
OpName %rhs "rhs"
|
|
OpDecorate %5 FuncParamAttr NoCapture
|
|
%5 = OpDecorationGroup
|
|
OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
|
|
OpDecorate %gl_GlobalInvocationID Constant
|
|
OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_GlobalInvocationId" Import
|
|
OpGroupDecorate %5 %res %lhs %rhs
|
|
%ulong = OpTypeInt 64 0
|
|
%v3ulong = OpTypeVector %ulong 3
|
|
%_ptr_Input_v3ulong = OpTypePointer Input %v3ulong
|
|
%bool = OpTypeBool
|
|
%void = OpTypeVoid
|
|
%uint = OpTypeInt 32 0
|
|
%ulong_32 = OpConstant %ulong 32
|
|
%uint_0 = OpConstant %uint 0
|
|
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
|
%_ptr_Function_uint = OpTypePointer Function %uint
|
|
%17 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
|
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3ulong Input
|
|
%1 = OpFunction %void None %17
|
|
%res = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
|
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
|
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
|
%18 = OpLabel
|
|
%19 = OpVariable %_ptr_Function_uint Function
|
|
%20 = OpLoad %v3ulong %gl_GlobalInvocationID
|
|
%21 = OpCompositeExtract %ulong %20 0
|
|
%22 = OpShiftLeftLogical %ulong %21 %ulong_32
|
|
%23 = OpShiftRightArithmetic %ulong %22 %ulong_32
|
|
%24 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %lhs %23
|
|
%25 = OpLoad %uint %24 Aligned 4
|
|
%26 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %rhs %23
|
|
%27 = OpLoad %uint %26 Aligned 4
|
|
OpStore %19 %uint_0
|
|
%28 = OpULessThan %bool %25 %27
|
|
OpBranchConditional %28 %29 %30
|
|
%29 = OpLabel
|
|
%31 = OpISub %uint %27 %25
|
|
OpStore %19 %31
|
|
OpBranch %32
|
|
%30 = OpLabel
|
|
%33 = OpISub %uint %25 %27
|
|
OpStore %19 %33
|
|
OpBranch %32
|
|
%32 = OpLabel
|
|
%34 = OpLoad %uint %19
|
|
%35 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %res %23
|
|
OpStore %35 %34 Aligned 4
|
|
OpReturn
|
|
OpFunctionEnd
|