blob: 682923dc0044ae8d38482ff369013534c8304347 [file]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 197
; 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"
OpMemberName %S 0 "l"
OpMemberName %S 1 "r"
OpName %S "S"
OpMemberName %S_Nested 0 "s"
OpName %S_Nested "S_Nested"
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
%11 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_0
%10 = OpConstantNull %11
%_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_4 = OpConstant %uint 4
%_arr_11_uint_4 = OpTypeArray %11 %uint_4
%32 = OpConstantNull %_arr_11_uint_4
%_arr__arr_11_uint_4_uint_4 = OpTypeArray %_arr_11_uint_4 %uint_4
%46 = OpConstantNull %_arr__arr_11_uint_4_uint_4
%uint_1 = OpConstant %uint 1
%61 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_1
%S = OpTypeStruct %11 %61
%59 = OpConstantNull %S
%S_Nested = OpTypeStruct %S
%74 = OpConstantNull %S_Nested
%float_42 = OpConstant %float 42
%float_100 = OpConstant %float 100
%uint_2 = OpConstant %uint 2
%_arr_11_uint_2 = OpTypeArray %11 %uint_2
%float_n7 = OpConstant %float -7
%float_n42 = OpConstant %float -42
%_arr__arr_11_uint_2_uint_2 = OpTypeArray %_arr_11_uint_2 %uint_2
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
%main = OpFunction %void None %8
%9 = OpLabel
%16 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%18 = OpArrayLength %uint %1 0
%19 = OpBitcast %uint %int_0
%22 = OpBitcast %uint %int_64
%24 = OpIMul %uint %22 %uint_7
%26 = OpIAdd %uint %19 %24
%27 = OpIAdd %uint %26 %uint_8
%28 = OpULessThanEqual %bool %27 %18
OpSelectionMerge %30 None
OpBranchConditional %28 %31 %30
%31 = OpLabel
%166 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%167 = OpAccessChain %_ptr_StorageBuffer_float %166 %uint_0
OpCooperativeMatrixStoreKHR %167 %10 %uint_0 %int_64 NonPrivatePointer
OpBranch %30
%30 = OpLabel
%35 = OpCompositeExtract %11 %32 1
%36 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%37 = OpArrayLength %uint %1 0
%38 = OpBitcast %uint %int_0
%39 = OpBitcast %uint %int_64
%40 = OpIMul %uint %39 %uint_7
%41 = OpIAdd %uint %38 %40
%42 = OpIAdd %uint %41 %uint_8
%43 = OpULessThanEqual %bool %42 %37
OpSelectionMerge %44 None
OpBranchConditional %43 %45 %44
%45 = OpLabel
%170 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%171 = OpAccessChain %_ptr_StorageBuffer_float %170 %uint_0
OpCooperativeMatrixStoreKHR %171 %35 %uint_0 %int_64 NonPrivatePointer
OpBranch %44
%44 = OpLabel
%48 = OpCompositeExtract %11 %46 2 3
%49 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%50 = OpArrayLength %uint %1 0
%51 = OpBitcast %uint %int_0
%52 = OpBitcast %uint %int_64
%53 = OpIMul %uint %52 %uint_7
%54 = OpIAdd %uint %51 %53
%55 = OpIAdd %uint %54 %uint_8
%56 = OpULessThanEqual %bool %55 %50
OpSelectionMerge %57 None
OpBranchConditional %56 %58 %57
%58 = OpLabel
%173 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%174 = OpAccessChain %_ptr_StorageBuffer_float %173 %uint_0
OpCooperativeMatrixStoreKHR %174 %48 %uint_0 %int_64 NonPrivatePointer
OpBranch %57
%57 = OpLabel
%63 = OpCompositeExtract %11 %59 0
%64 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%65 = OpArrayLength %uint %1 0
%66 = OpBitcast %uint %int_0
%67 = OpBitcast %uint %int_64
%68 = OpIMul %uint %67 %uint_7
%69 = OpIAdd %uint %66 %68
%70 = OpIAdd %uint %69 %uint_8
%71 = OpULessThanEqual %bool %70 %65
OpSelectionMerge %72 None
OpBranchConditional %71 %73 %72
%73 = OpLabel
%176 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%177 = OpAccessChain %_ptr_StorageBuffer_float %176 %uint_0
OpCooperativeMatrixStoreKHR %177 %63 %uint_0 %int_64 NonPrivatePointer
OpBranch %72
%72 = OpLabel
%76 = OpCompositeExtract %61 %74 0 1
%77 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%78 = OpArrayLength %uint %1 0
%79 = OpBitcast %uint %int_0
%80 = OpBitcast %uint %int_64
%81 = OpIMul %uint %80 %uint_7
%82 = OpIAdd %uint %79 %81
%83 = OpIAdd %uint %82 %uint_8
%84 = OpULessThanEqual %bool %83 %78
OpSelectionMerge %85 None
OpBranchConditional %84 %86 %85
%86 = OpLabel
%179 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%180 = OpAccessChain %_ptr_StorageBuffer_float %179 %uint_0
OpCooperativeMatrixStoreKHR %180 %76 %uint_0 %int_64 NonPrivatePointer
OpBranch %85
%85 = OpLabel
%87 = OpCompositeConstruct %11 %float_42
%89 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%90 = OpArrayLength %uint %1 0
%91 = OpBitcast %uint %int_0
%92 = OpBitcast %uint %int_64
%93 = OpIMul %uint %92 %uint_7
%94 = OpIAdd %uint %91 %93
%95 = OpIAdd %uint %94 %uint_8
%96 = OpULessThanEqual %bool %95 %90
OpSelectionMerge %97 None
OpBranchConditional %96 %98 %97
%98 = OpLabel
%182 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%183 = OpAccessChain %_ptr_StorageBuffer_float %182 %uint_0
OpCooperativeMatrixStoreKHR %183 %87 %uint_0 %int_64 NonPrivatePointer
OpBranch %97
%97 = OpLabel
%99 = OpCompositeConstruct %11 %float_42
%100 = OpCompositeConstruct %11 %float_100
%104 = OpCompositeConstruct %_arr_11_uint_2 %99 %100
%105 = OpCompositeExtract %11 %104 1
%106 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%107 = OpArrayLength %uint %1 0
%108 = OpBitcast %uint %int_0
%109 = OpBitcast %uint %int_64
%110 = OpIMul %uint %109 %uint_7
%111 = OpIAdd %uint %108 %110
%112 = OpIAdd %uint %111 %uint_8
%113 = OpULessThanEqual %bool %112 %107
OpSelectionMerge %114 None
OpBranchConditional %113 %115 %114
%115 = OpLabel
%185 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%186 = OpAccessChain %_ptr_StorageBuffer_float %185 %uint_0
OpCooperativeMatrixStoreKHR %186 %105 %uint_0 %int_64 NonPrivatePointer
OpBranch %114
%114 = OpLabel
%116 = OpCompositeConstruct %11 %float_42
%117 = OpCompositeConstruct %11 %float_100
%118 = OpCompositeConstruct %_arr_11_uint_2 %116 %117
%119 = OpCompositeConstruct %11 %float_n7
%121 = OpCompositeConstruct %11 %float_n42
%123 = OpCompositeConstruct %_arr_11_uint_2 %119 %121
%125 = OpCompositeConstruct %_arr__arr_11_uint_2_uint_2 %118 %123
%126 = OpCompositeExtract %11 %125 1 0
%127 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%128 = OpArrayLength %uint %1 0
%129 = OpBitcast %uint %int_0
%130 = OpBitcast %uint %int_64
%131 = OpIMul %uint %130 %uint_7
%132 = OpIAdd %uint %129 %131
%133 = OpIAdd %uint %132 %uint_8
%134 = OpULessThanEqual %bool %133 %128
OpSelectionMerge %135 None
OpBranchConditional %134 %136 %135
%136 = OpLabel
%188 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%189 = OpAccessChain %_ptr_StorageBuffer_float %188 %uint_0
OpCooperativeMatrixStoreKHR %189 %126 %uint_0 %int_64 NonPrivatePointer
OpBranch %135
%135 = OpLabel
%137 = OpCompositeConstruct %11 %float_42
%138 = OpCompositeConstruct %61 %float_100
%139 = OpCompositeConstruct %S %137 %138
%140 = OpCompositeExtract %11 %139 0
%141 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%142 = OpArrayLength %uint %1 0
%143 = OpBitcast %uint %int_0
%144 = OpBitcast %uint %int_64
%145 = OpIMul %uint %144 %uint_7
%146 = OpIAdd %uint %143 %145
%147 = OpIAdd %uint %146 %uint_8
%148 = OpULessThanEqual %bool %147 %142
OpSelectionMerge %149 None
OpBranchConditional %148 %150 %149
%150 = OpLabel
%191 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%192 = OpAccessChain %_ptr_StorageBuffer_float %191 %uint_0
OpCooperativeMatrixStoreKHR %192 %140 %uint_0 %int_64 NonPrivatePointer
OpBranch %149
%149 = OpLabel
%151 = OpCompositeConstruct %11 %float_42
%152 = OpCompositeConstruct %61 %float_100
%153 = OpCompositeConstruct %S %151 %152
%154 = OpCompositeConstruct %S_Nested %153
%155 = OpCompositeExtract %61 %154 0 1
%156 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%157 = OpArrayLength %uint %1 0
%158 = OpBitcast %uint %int_0
%159 = OpBitcast %uint %int_64
%160 = OpIMul %uint %159 %uint_7
%161 = OpIAdd %uint %158 %160
%162 = OpIAdd %uint %161 %uint_8
%163 = OpULessThanEqual %bool %162 %157
OpSelectionMerge %164 None
OpBranchConditional %163 %165 %164
%165 = OpLabel
%194 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%195 = OpAccessChain %_ptr_StorageBuffer_float %194 %uint_0
OpCooperativeMatrixStoreKHR %195 %155 %uint_0 %int_64 NonPrivatePointer
OpBranch %164
%164 = OpLabel
OpReturn
OpFunctionEnd