@@ -136,14 +136,17 @@ module attributes {
136136 // CHECK: {{%.*}} = spirv.FDiv {{%.*}}, {{%.*}} : !spirv.coopmatrix<16x16xf16, Subgroup, MatrixAcc>
137137 %E = gpu.subgroup_mma_elementwise divf %D , %A :
138138 (!gpu.mma_matrix <16 x16 xf16 , " COp" >, !gpu.mma_matrix <16 x16 xf16 , " COp" >) -> !gpu.mma_matrix <16 x16 xf16 , " COp" >
139+ // CHECK: {{%.*}} = spirv.FMul {{%.*}}, {{%.*}} : !spirv.coopmatrix<16x16xf16, Subgroup, MatrixAcc>
140+ %F = gpu.subgroup_mma_elementwise mulf %E , %A :
141+ (!gpu.mma_matrix <16 x16 xf16 , " COp" >, !gpu.mma_matrix <16 x16 xf16 , " COp" >) -> !gpu.mma_matrix <16 x16 xf16 , " COp" >
139142 // CHECK: {{%.*}} = spirv.FConvert {{%.*}} :
140143 // CHECK-SAME: !spirv.coopmatrix<16x16xf16, Subgroup, MatrixAcc> to !spirv.coopmatrix<16x16xf32, Subgroup, MatrixAcc>
141- %F = gpu.subgroup_mma_elementwise extf %E :
144+ %G = gpu.subgroup_mma_elementwise extf %F :
142145 (!gpu.mma_matrix <16 x16 xf16 , " COp" >) -> !gpu.mma_matrix <16 x16 xf32 , " COp" >
143146
144147 %i = arith.constant 0 : index
145148 // CHECK: spirv.KHR.CooperativeMatrixStore %{{.+}}, %{{.+}}, %{{.+}}, <RowMajor>
146- gpu.subgroup_mma_store_matrix %F , %ptr [%i ,%i ] {leadDimension = 32 : index } :
149+ gpu.subgroup_mma_store_matrix %G , %ptr [%i ,%i ] {leadDimension = 32 : index } :
147150 !gpu.mma_matrix <16 x16 xf32 , " COp" >, memref <16 x16 xf32 , #spirv.storage_class <StorageBuffer >>
148151 // CHECK: spirv.Return
149152 gpu.return
0 commit comments