blob: 9279bd405093678ea118beb79fef3566198e8d37 [file]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 120
; Schema: 0
OpCapability Shader
OpCapability VulkanMemoryModel
OpCapability VulkanMemoryModelDeviceScope
OpCapability CooperativeMatrixKHR
OpExtension "SPV_KHR_vulkan_memory_model"
OpExtension "SPV_KHR_cooperative_matrix"
OpMemoryModel Logical Vulkan
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 64 1 1
OpMemberName %buffer_block_tint_explicit_layout 0 "inner"
OpName %buffer_block_tint_explicit_layout "buffer_block_tint_explicit_layout"
OpName %main "main"
OpName %m "m"
OpName %m_array "m_array"
OpName %m_nested_array "m_nested_array"
OpMemberName %S 0 "l"
OpMemberName %S 1 "r"
OpName %S "S"
OpName %m_struct "m_struct"
OpMemberName %S_Nested 0 "s"
OpName %S_Nested "S_Nested"
OpName %m_nested_struct "m_nested_struct"
OpDecorate %_runtimearr_float ArrayStride 4
OpMemberDecorate %buffer_block_tint_explicit_layout 0 Offset 0
OpDecorate %buffer_block_tint_explicit_layout Block
OpDecorate %1 DescriptorSet 0
OpDecorate %1 Binding 0
%float = OpTypeFloat 32
%_runtimearr_float = OpTypeRuntimeArray %float
%buffer_block_tint_explicit_layout = OpTypeStruct %_runtimearr_float
%_ptr_StorageBuffer_buffer_block_tint_explicit_layout = OpTypePointer StorageBuffer %buffer_block_tint_explicit_layout
%1 = OpVariable %_ptr_StorageBuffer_buffer_block_tint_explicit_layout StorageBuffer
%void = OpTypeVoid
%8 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%uint_3 = OpConstant %uint 3
%uint_8 = OpConstant %uint 8
%uint_0 = OpConstant %uint 0
%12 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_0
%_ptr_Function_12 = OpTypePointer Function %12
%17 = OpConstantNull %12
%uint_4 = OpConstant %uint 4
%_arr_12_uint_4 = OpTypeArray %12 %uint_4
%_ptr_Function__arr_12_uint_4 = OpTypePointer Function %_arr_12_uint_4
%22 = OpConstantNull %_arr_12_uint_4
%_arr__arr_12_uint_4_uint_4 = OpTypeArray %_arr_12_uint_4 %uint_4
%_ptr_Function__arr__arr_12_uint_4_uint_4 = OpTypePointer Function %_arr__arr_12_uint_4_uint_4
%26 = OpConstantNull %_arr__arr_12_uint_4_uint_4
%uint_1 = OpConstant %uint 1
%30 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_1
%S = OpTypeStruct %12 %30
%_ptr_Function_S = OpTypePointer Function %S
%32 = OpConstantNull %S
%S_Nested = OpTypeStruct %S
%_ptr_Function_S_Nested = OpTypePointer Function %S_Nested
%36 = OpConstantNull %S_Nested
%_ptr_StorageBuffer__runtimearr_float = OpTypePointer StorageBuffer %_runtimearr_float
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%int_64 = OpConstant %int 64
%uint_7 = OpConstant %uint 7
%bool = OpTypeBool
%uint_2 = OpConstant %uint 2
%_ptr_Function_30 = OpTypePointer Function %30
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
%main = OpFunction %void None %8
%9 = OpLabel
%m = OpVariable %_ptr_Function_12 Function %17
%m_array = OpVariable %_ptr_Function__arr_12_uint_4 Function %22
%m_nested_array = OpVariable %_ptr_Function__arr__arr_12_uint_4_uint_4 Function %26
%m_struct = OpVariable %_ptr_Function_S Function %32
%m_nested_struct = OpVariable %_ptr_Function_S_Nested Function %36
%37 = OpLoad %12 %m None
%38 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%40 = OpArrayLength %uint %1 0
%41 = OpBitcast %uint %int_0
%44 = OpBitcast %uint %int_64
%46 = OpIMul %uint %44 %uint_7
%48 = OpIAdd %uint %41 %46
%49 = OpIAdd %uint %48 %uint_8
%50 = OpULessThanEqual %bool %49 %40
OpSelectionMerge %52 None
OpBranchConditional %50 %53 %52
%53 = OpLabel
%104 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%105 = OpAccessChain %_ptr_StorageBuffer_float %104 %uint_0
OpCooperativeMatrixStoreKHR %105 %37 %uint_0 %int_64 NonPrivatePointer
OpBranch %52
%52 = OpLabel
%54 = OpAccessChain %_ptr_Function_12 %m_array %uint_0
%55 = OpLoad %12 %54 None
%56 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%57 = OpArrayLength %uint %1 0
%58 = OpBitcast %uint %int_0
%59 = OpBitcast %uint %int_64
%60 = OpIMul %uint %59 %uint_7
%61 = OpIAdd %uint %58 %60
%62 = OpIAdd %uint %61 %uint_8
%63 = OpULessThanEqual %bool %62 %57
OpSelectionMerge %64 None
OpBranchConditional %63 %65 %64
%65 = OpLabel
%108 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%109 = OpAccessChain %_ptr_StorageBuffer_float %108 %uint_0
OpCooperativeMatrixStoreKHR %109 %55 %uint_0 %int_64 NonPrivatePointer
OpBranch %64
%64 = OpLabel
%66 = OpAccessChain %_ptr_Function_12 %m_nested_array %uint_1 %uint_2
%68 = OpLoad %12 %66 None
%69 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%70 = OpArrayLength %uint %1 0
%71 = OpBitcast %uint %int_0
%72 = OpBitcast %uint %int_64
%73 = OpIMul %uint %72 %uint_7
%74 = OpIAdd %uint %71 %73
%75 = OpIAdd %uint %74 %uint_8
%76 = OpULessThanEqual %bool %75 %70
OpSelectionMerge %77 None
OpBranchConditional %76 %78 %77
%78 = OpLabel
%111 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%112 = OpAccessChain %_ptr_StorageBuffer_float %111 %uint_0
OpCooperativeMatrixStoreKHR %112 %68 %uint_0 %int_64 NonPrivatePointer
OpBranch %77
%77 = OpLabel
%79 = OpAccessChain %_ptr_Function_12 %m_struct %uint_0
%80 = OpLoad %12 %79 None
%81 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%82 = OpArrayLength %uint %1 0
%83 = OpBitcast %uint %int_0
%84 = OpBitcast %uint %int_64
%85 = OpIMul %uint %84 %uint_7
%86 = OpIAdd %uint %83 %85
%87 = OpIAdd %uint %86 %uint_8
%88 = OpULessThanEqual %bool %87 %82
OpSelectionMerge %89 None
OpBranchConditional %88 %90 %89
%90 = OpLabel
%114 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%115 = OpAccessChain %_ptr_StorageBuffer_float %114 %uint_0
OpCooperativeMatrixStoreKHR %115 %80 %uint_0 %int_64 NonPrivatePointer
OpBranch %89
%89 = OpLabel
%91 = OpAccessChain %_ptr_Function_30 %m_nested_struct %uint_0 %uint_1
%93 = OpLoad %30 %91 None
%94 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%95 = OpArrayLength %uint %1 0
%96 = OpBitcast %uint %int_0
%97 = OpBitcast %uint %int_64
%98 = OpIMul %uint %97 %uint_7
%99 = OpIAdd %uint %96 %98
%100 = OpIAdd %uint %99 %uint_8
%101 = OpULessThanEqual %bool %100 %95
OpSelectionMerge %102 None
OpBranchConditional %101 %103 %102
%103 = OpLabel
%117 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%118 = OpAccessChain %_ptr_StorageBuffer_float %117 %uint_0
OpCooperativeMatrixStoreKHR %118 %93 %uint_0 %int_64 NonPrivatePointer
OpBranch %102
%102 = OpLabel
OpReturn
OpFunctionEnd