@@ -136,14 +136,17 @@ module attributes {
136
136
// CHECK: {{%.*}} = spirv.FDiv {{%.*}}, {{%.*}} : !spirv.coopmatrix<16x16xf16, Subgroup, MatrixAcc>
137
137
%E = gpu.subgroup_mma_elementwise divf %D , %A :
138
138
(!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" >
139
142
// CHECK: {{%.*}} = spirv.FConvert {{%.*}} :
140
143
// 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 :
142
145
(!gpu.mma_matrix <16 x16 xf16 , " COp" >) -> !gpu.mma_matrix <16 x16 xf32 , " COp" >
143
146
144
147
%i = arith.constant 0 : index
145
148
// 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 } :
147
150
!gpu.mma_matrix <16 x16 xf32 , " COp" >, memref <16 x16 xf32 , #spirv.storage_class <StorageBuffer >>
148
151
// CHECK: spirv.Return
149
152
gpu.return
0 commit comments