blob: 4376b4fe777c9ccb2131b415ef5f385bdb22ff30 [file] [log] [blame] [edit]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 175
; 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
%uint_64 = OpConstant %uint 64
%uint_7 = OpConstant %uint 7
%bool = OpTypeBool
%uint_4 = OpConstant %uint 4
%_arr_11_uint_4 = OpTypeArray %11 %uint_4
%28 = OpConstantNull %_arr_11_uint_4
%_arr__arr_11_uint_4_uint_4 = OpTypeArray %_arr_11_uint_4 %uint_4
%40 = OpConstantNull %_arr__arr_11_uint_4_uint_4
%uint_1 = OpConstant %uint 1
%53 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_1
%S = OpTypeStruct %11 %53
%51 = OpConstantNull %S
%S_Nested = OpTypeStruct %S
%64 = 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 = OpIMul %uint %uint_64 %uint_7
%22 = OpIAdd %uint %uint_0 %19
%23 = OpIAdd %uint %22 %uint_8
%24 = OpULessThanEqual %bool %23 %18
OpSelectionMerge %26 None
OpBranchConditional %24 %27 %26
%27 = OpLabel
%144 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%145 = OpAccessChain %_ptr_StorageBuffer_float %144 %uint_0
OpCooperativeMatrixStoreKHR %145 %10 %uint_0 %uint_64 NonPrivatePointer
OpBranch %26
%26 = OpLabel
%31 = OpCompositeExtract %11 %28 1
%32 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%33 = OpArrayLength %uint %1 0
%34 = OpIMul %uint %uint_64 %uint_7
%35 = OpIAdd %uint %uint_0 %34
%36 = OpIAdd %uint %35 %uint_8
%37 = OpULessThanEqual %bool %36 %33
OpSelectionMerge %38 None
OpBranchConditional %37 %39 %38
%39 = OpLabel
%148 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%149 = OpAccessChain %_ptr_StorageBuffer_float %148 %uint_0
OpCooperativeMatrixStoreKHR %149 %31 %uint_0 %uint_64 NonPrivatePointer
OpBranch %38
%38 = OpLabel
%42 = OpCompositeExtract %11 %40 2 3
%43 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%44 = OpArrayLength %uint %1 0
%45 = OpIMul %uint %uint_64 %uint_7
%46 = OpIAdd %uint %uint_0 %45
%47 = OpIAdd %uint %46 %uint_8
%48 = OpULessThanEqual %bool %47 %44
OpSelectionMerge %49 None
OpBranchConditional %48 %50 %49
%50 = OpLabel
%151 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%152 = OpAccessChain %_ptr_StorageBuffer_float %151 %uint_0
OpCooperativeMatrixStoreKHR %152 %42 %uint_0 %uint_64 NonPrivatePointer
OpBranch %49
%49 = OpLabel
%55 = OpCompositeExtract %11 %51 0
%56 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%57 = OpArrayLength %uint %1 0
%58 = OpIMul %uint %uint_64 %uint_7
%59 = OpIAdd %uint %uint_0 %58
%60 = OpIAdd %uint %59 %uint_8
%61 = OpULessThanEqual %bool %60 %57
OpSelectionMerge %62 None
OpBranchConditional %61 %63 %62
%63 = OpLabel
%154 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%155 = OpAccessChain %_ptr_StorageBuffer_float %154 %uint_0
OpCooperativeMatrixStoreKHR %155 %55 %uint_0 %uint_64 NonPrivatePointer
OpBranch %62
%62 = OpLabel
%66 = OpCompositeExtract %53 %64 0 1
%67 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%68 = OpArrayLength %uint %1 0
%69 = OpIMul %uint %uint_64 %uint_7
%70 = OpIAdd %uint %uint_0 %69
%71 = OpIAdd %uint %70 %uint_8
%72 = OpULessThanEqual %bool %71 %68
OpSelectionMerge %73 None
OpBranchConditional %72 %74 %73
%74 = OpLabel
%157 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%158 = OpAccessChain %_ptr_StorageBuffer_float %157 %uint_0
OpCooperativeMatrixStoreKHR %158 %66 %uint_0 %uint_64 NonPrivatePointer
OpBranch %73
%73 = OpLabel
%75 = OpCompositeConstruct %11 %float_42
%77 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%78 = OpArrayLength %uint %1 0
%79 = OpIMul %uint %uint_64 %uint_7
%80 = OpIAdd %uint %uint_0 %79
%81 = OpIAdd %uint %80 %uint_8
%82 = OpULessThanEqual %bool %81 %78
OpSelectionMerge %83 None
OpBranchConditional %82 %84 %83
%84 = OpLabel
%160 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%161 = OpAccessChain %_ptr_StorageBuffer_float %160 %uint_0
OpCooperativeMatrixStoreKHR %161 %75 %uint_0 %uint_64 NonPrivatePointer
OpBranch %83
%83 = OpLabel
%85 = OpCompositeConstruct %11 %float_42
%86 = OpCompositeConstruct %11 %float_100
%90 = OpCompositeConstruct %_arr_11_uint_2 %85 %86
%91 = OpCompositeExtract %11 %90 1
%92 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%93 = OpArrayLength %uint %1 0
%94 = OpIMul %uint %uint_64 %uint_7
%95 = OpIAdd %uint %uint_0 %94
%96 = OpIAdd %uint %95 %uint_8
%97 = OpULessThanEqual %bool %96 %93
OpSelectionMerge %98 None
OpBranchConditional %97 %99 %98
%99 = OpLabel
%163 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%164 = OpAccessChain %_ptr_StorageBuffer_float %163 %uint_0
OpCooperativeMatrixStoreKHR %164 %91 %uint_0 %uint_64 NonPrivatePointer
OpBranch %98
%98 = OpLabel
%100 = OpCompositeConstruct %11 %float_42
%101 = OpCompositeConstruct %11 %float_100
%102 = OpCompositeConstruct %_arr_11_uint_2 %100 %101
%103 = OpCompositeConstruct %11 %float_n7
%105 = OpCompositeConstruct %11 %float_n42
%107 = OpCompositeConstruct %_arr_11_uint_2 %103 %105
%109 = OpCompositeConstruct %_arr__arr_11_uint_2_uint_2 %102 %107
%110 = OpCompositeExtract %11 %109 1 0
%111 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%112 = OpArrayLength %uint %1 0
%113 = OpIMul %uint %uint_64 %uint_7
%114 = OpIAdd %uint %uint_0 %113
%115 = OpIAdd %uint %114 %uint_8
%116 = OpULessThanEqual %bool %115 %112
OpSelectionMerge %117 None
OpBranchConditional %116 %118 %117
%118 = OpLabel
%166 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%167 = OpAccessChain %_ptr_StorageBuffer_float %166 %uint_0
OpCooperativeMatrixStoreKHR %167 %110 %uint_0 %uint_64 NonPrivatePointer
OpBranch %117
%117 = OpLabel
%119 = OpCompositeConstruct %11 %float_42
%120 = OpCompositeConstruct %53 %float_100
%121 = OpCompositeConstruct %S %119 %120
%122 = OpCompositeExtract %11 %121 0
%123 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%124 = OpArrayLength %uint %1 0
%125 = OpIMul %uint %uint_64 %uint_7
%126 = OpIAdd %uint %uint_0 %125
%127 = OpIAdd %uint %126 %uint_8
%128 = OpULessThanEqual %bool %127 %124
OpSelectionMerge %129 None
OpBranchConditional %128 %130 %129
%130 = OpLabel
%169 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%170 = OpAccessChain %_ptr_StorageBuffer_float %169 %uint_0
OpCooperativeMatrixStoreKHR %170 %122 %uint_0 %uint_64 NonPrivatePointer
OpBranch %129
%129 = OpLabel
%131 = OpCompositeConstruct %11 %float_42
%132 = OpCompositeConstruct %53 %float_100
%133 = OpCompositeConstruct %S %131 %132
%134 = OpCompositeConstruct %S_Nested %133
%135 = OpCompositeExtract %53 %134 0 1
%136 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%137 = OpArrayLength %uint %1 0
%138 = OpIMul %uint %uint_64 %uint_7
%139 = OpIAdd %uint %uint_0 %138
%140 = OpIAdd %uint %139 %uint_8
%141 = OpULessThanEqual %bool %140 %137
OpSelectionMerge %142 None
OpBranchConditional %141 %143 %142
%143 = OpLabel
%172 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%173 = OpAccessChain %_ptr_StorageBuffer_float %172 %uint_0
OpCooperativeMatrixStoreKHR %173 %135 %uint_0 %uint_64 NonPrivatePointer
OpBranch %142
%142 = OpLabel
OpReturn
OpFunctionEnd