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>
52 lines
2.3 KiB
Plaintext
52 lines
2.3 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: Khronos SPIR-V Tools Assembler; 0
|
|
; Bound: 28
|
|
; Schema: 0
|
|
OpCapability Float64
|
|
OpCapability Addresses
|
|
OpCapability Linkage
|
|
OpCapability Kernel
|
|
OpCapability Int64
|
|
%1 = OpExtInstImport "OpenCL.std"
|
|
OpMemoryModel Physical64 OpenCL
|
|
OpEntryPoint Kernel %2 "fmath_spv" %gl_GlobalInvocationID
|
|
OpName %res "res"
|
|
OpName %lhs "lhs"
|
|
OpName %rhs "rhs"
|
|
OpName %entry "entry"
|
|
OpDecorate %7 FuncParamAttr NoCapture
|
|
%7 = OpDecorationGroup
|
|
OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
|
|
OpDecorate %gl_GlobalInvocationID Constant
|
|
OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_GlobalInvocationId" Import
|
|
OpGroupDecorate %7 %res %lhs %rhs
|
|
%ulong = OpTypeInt 64 0
|
|
%v3ulong = OpTypeVector %ulong 3
|
|
%_ptr_Input_v3ulong = OpTypePointer Input %v3ulong
|
|
%void = OpTypeVoid
|
|
%double = OpTypeFloat 64
|
|
%v2double = OpTypeVector %double 2
|
|
%_ptr_CrossWorkgroup_v2double = OpTypePointer CrossWorkgroup %v2double
|
|
%16 = OpTypeFunction %void %_ptr_CrossWorkgroup_v2double %_ptr_CrossWorkgroup_v2double %_ptr_CrossWorkgroup_v2double
|
|
%ulong_32 = OpConstant %ulong 32
|
|
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3ulong Input
|
|
%2 = OpFunction %void None %16
|
|
%res = OpFunctionParameter %_ptr_CrossWorkgroup_v2double
|
|
%lhs = OpFunctionParameter %_ptr_CrossWorkgroup_v2double
|
|
%rhs = OpFunctionParameter %_ptr_CrossWorkgroup_v2double
|
|
%entry = OpLabel
|
|
%18 = OpLoad %v3ulong %gl_GlobalInvocationID
|
|
%19 = OpCompositeExtract %ulong %18 0
|
|
%20 = OpShiftLeftLogical %ulong %19 %ulong_32
|
|
%21 = OpShiftRightArithmetic %ulong %20 %ulong_32
|
|
%22 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_v2double %lhs %21
|
|
%23 = OpLoad %v2double %22 Aligned 16
|
|
%24 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_v2double %rhs %21
|
|
%25 = OpLoad %v2double %24 Aligned 16
|
|
%26 = OpFRem %v2double %23 %25
|
|
%27 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_v2double %res %21
|
|
OpStore %27 %26 Aligned 16
|
|
OpReturn
|
|
OpFunctionEnd
|