Files
OpenCL-CTS/test_conformance/spirv_new/spirv_asm/label_simple.spvasm32
Sven van Haastregt 0abec2f49a spirv_new: remove invalid Aligned 0 decorations (#2360)
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>
2025-04-08 17:49:00 +01:00

35 lines
1.5 KiB
Plaintext

; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 17
; Schema: 0
OpCapability Addresses
OpCapability Linkage
OpCapability Kernel
OpMemoryModel Physical32 OpenCL
OpEntryPoint Kernel %1 "label_simple" %gl_GlobalInvocationID
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_Input_v3uint = OpTypePointer Input %v3uint
%void = OpTypeVoid
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
%9 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input
%1 = OpFunction %void None %9
%in = OpFunctionParameter %_ptr_CrossWorkgroup_uint
%10 = OpFunctionParameter %_ptr_CrossWorkgroup_uint
%11 = OpLabel
%12 = OpLoad %v3uint %gl_GlobalInvocationID
%13 = OpCompositeExtract %uint %12 0
%14 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %in %13
%15 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %10 %13
%16 = OpLoad %uint %14
OpStore %15 %16
OpReturn
OpFunctionEnd