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>
45 lines
1.9 KiB
Plaintext
45 lines
1.9 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: Khronos SPIR-V Tools Assembler; 0
|
|
; Bound: 23
|
|
; Schema: 0
|
|
OpCapability Addresses
|
|
OpCapability Linkage
|
|
OpCapability Kernel
|
|
OpCapability Int64
|
|
OpMemoryModel Physical64 OpenCL
|
|
OpEntryPoint Kernel %1 "unreachable_simple" %gl_GlobalInvocationID
|
|
OpName %in "in"
|
|
OpName %out "out"
|
|
OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
|
|
OpDecorate %gl_GlobalInvocationID Constant
|
|
OpDecorate %in FuncParamAttr NoCapture
|
|
OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_GlobalInvocationId" Import
|
|
%ulong = OpTypeInt 64 0
|
|
%v3ulong = OpTypeVector %ulong 3
|
|
%_ptr_Input_v3ulong = OpTypePointer Input %v3ulong
|
|
%ulong_32 = OpConstant %ulong 32
|
|
%void = OpTypeVoid
|
|
%uint = OpTypeInt 32 0
|
|
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
|
%12 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
|
|
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3ulong Input
|
|
%1 = OpFunction %void None %12
|
|
%in = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
|
%out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
|
%13 = OpLabel
|
|
%14 = OpLoad %v3ulong %gl_GlobalInvocationID
|
|
%15 = OpCompositeExtract %ulong %14 0
|
|
%16 = OpShiftLeftLogical %ulong %15 %ulong_32
|
|
%17 = OpShiftRightArithmetic %ulong %16 %ulong_32
|
|
%18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %in %17
|
|
%19 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %17
|
|
OpBranch %20
|
|
%21 = OpLabel
|
|
OpUnreachable
|
|
%20 = OpLabel
|
|
%22 = OpLoad %uint %18
|
|
OpStore %19 %22
|
|
OpReturn
|
|
OpFunctionEnd
|