| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 59 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability VulkanMemoryModel |
| OpCapability VulkanMemoryModelDeviceScope |
| OpCapability CooperativeMatrixKHR |
| OpCapability Int8 |
| OpExtension "SPV_KHR_vulkan_memory_model" |
| OpExtension "SPV_KHR_cooperative_matrix" |
| OpMemoryModel Logical Vulkan |
| OpEntryPoint GLCompute %compute_main "compute_main" |
| OpExecutionMode %compute_main LocalSize 1 1 1 |
| OpMemberName %prevent_dce_block_tint_explicit_layout 0 "inner" |
| OpName %prevent_dce_block_tint_explicit_layout "prevent_dce_block_tint_explicit_layout" |
| OpMemberName %SB_RW_tint_explicit_layout 0 "arg_0" |
| OpName %SB_RW_tint_explicit_layout "SB_RW_tint_explicit_layout" |
| OpName %sb_rw "sb_rw" |
| OpName %subgroupMatrixLoad_e40231 "subgroupMatrixLoad_e40231" |
| OpName %res "res" |
| OpName %compute_main "compute_main" |
| OpDecorate %_arr_int_uint_1024 ArrayStride 4 |
| OpMemberDecorate %prevent_dce_block_tint_explicit_layout 0 Offset 0 |
| OpDecorate %prevent_dce_block_tint_explicit_layout Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %_runtimearr_int ArrayStride 4 |
| OpMemberDecorate %SB_RW_tint_explicit_layout 0 Offset 0 |
| OpDecorate %SB_RW_tint_explicit_layout Block |
| OpDecorate %sb_rw DescriptorSet 0 |
| OpDecorate %sb_rw Binding 1 |
| %int = OpTypeInt 32 1 |
| %uint = OpTypeInt 32 0 |
| %uint_1024 = OpConstant %uint 1024 |
| %_arr_int_uint_1024 = OpTypeArray %int %uint_1024 |
| %prevent_dce_block_tint_explicit_layout = OpTypeStruct %_arr_int_uint_1024 |
| %_ptr_StorageBuffer_prevent_dce_block_tint_explicit_layout = OpTypePointer StorageBuffer %prevent_dce_block_tint_explicit_layout |
| %1 = OpVariable %_ptr_StorageBuffer_prevent_dce_block_tint_explicit_layout StorageBuffer |
| %_runtimearr_int = OpTypeRuntimeArray %int |
| %SB_RW_tint_explicit_layout = OpTypeStruct %_runtimearr_int |
| %_ptr_StorageBuffer_SB_RW_tint_explicit_layout = OpTypePointer StorageBuffer %SB_RW_tint_explicit_layout |
| %sb_rw = OpVariable %_ptr_StorageBuffer_SB_RW_tint_explicit_layout StorageBuffer |
| %uint_3 = OpConstant %uint 3 |
| %uint_8 = OpConstant %uint 8 |
| %char = OpTypeInt 8 1 |
| %uint_2 = OpConstant %uint 2 |
| %13 = OpTypeCooperativeMatrixKHR %char %uint_3 %uint_8 %uint_8 %uint_2 |
| %18 = OpTypeFunction %13 |
| %_ptr_StorageBuffer__runtimearr_int = OpTypePointer StorageBuffer %_runtimearr_int |
| %uint_0 = OpConstant %uint 0 |
| %uint_4 = OpConstant %uint 4 |
| %uint_7 = OpConstant %uint 7 |
| %uint_1 = OpConstant %uint 1 |
| %bool = OpTypeBool |
| %_ptr_Function_13 = OpTypePointer Function %13 |
| %char_0 = OpConstant %char 0 |
| %35 = OpConstantComposite %13 %char_0 |
| %_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int |
| %void = OpTypeVoid |
| %49 = OpTypeFunction %void |
| %_ptr_StorageBuffer__arr_int_uint_1024 = OpTypePointer StorageBuffer %_arr_int_uint_1024 |
| %uint_64 = OpConstant %uint 64 |
| %subgroupMatrixLoad_e40231 = OpFunction %13 None %18 |
| %19 = OpLabel |
| %33 = OpVariable %_ptr_Function_13 Function %35 |
| %res = OpVariable %_ptr_Function_13 Function |
| %20 = OpAccessChain %_ptr_StorageBuffer__runtimearr_int %sb_rw %uint_0 |
| %23 = OpArrayLength %uint %sb_rw 0 |
| %24 = OpIMul %uint %23 %uint_4 |
| %26 = OpIMul %uint %uint_8 %uint_7 |
| %28 = OpIAdd %uint %uint_1 %26 |
| %30 = OpIAdd %uint %28 %uint_8 |
| %31 = OpULessThanEqual %bool %30 %24 |
| OpSelectionMerge %37 None |
| OpBranchConditional %31 %38 %37 |
| %38 = OpLabel |
| %42 = OpUDiv %uint %uint_8 %uint_4 |
| %43 = OpUDiv %uint %uint_1 %uint_4 |
| %44 = OpAccessChain %_ptr_StorageBuffer_int %20 %43 |
| %46 = OpCooperativeMatrixLoadKHR %13 %44 %uint_1 %42 NonPrivatePointer |
| OpStore %33 %46 None |
| OpBranch %37 |
| %37 = OpLabel |
| %39 = OpLoad %13 %33 None |
| OpStore %res %39 |
| %41 = OpLoad %13 %res None |
| OpReturnValue %41 |
| OpFunctionEnd |
| %compute_main = OpFunction %void None %49 |
| %50 = OpLabel |
| %51 = OpFunctionCall %13 %subgroupMatrixLoad_e40231 |
| %52 = OpAccessChain %_ptr_StorageBuffer__arr_int_uint_1024 %1 %uint_0 |
| %54 = OpUDiv %uint %uint_64 %uint_4 |
| %56 = OpUDiv %uint %uint_0 %uint_4 |
| %57 = OpAccessChain %_ptr_StorageBuffer_int %52 %56 |
| OpCooperativeMatrixStoreKHR %57 %51 %uint_0 %54 NonPrivatePointer |
| OpReturn |
| OpFunctionEnd |