Skip to content

Commit

Permalink
fix lit test
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Butygin <[email protected]>
  • Loading branch information
Hardcode84 committed Nov 25, 2024
1 parent 569736f commit 71c0564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lit_tests/kernel/wave/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def test(a: tkl.Memory[M, N, ADDRESS_SPACE, tkl.f16]):
# CHECK-DAG: %[[C0:.+]] = arith.constant 0 : index
# CHECK: %[[ARR:.+]] = stream.binding.subspan %[[ARG0]][%[[C0]]] : !stream.binding -> memref<16x16xf16,
# CHECK-SAME: strided<[16, 1], offset: ?>>
# CHECK-DAG: %[[MASK:.+]] = vector.constant_mask [16] : vector<16xi1>
# CHECK-DAG: %[[C16:.+]] = arith.constant 16 : index
# CHECK: %[[D0:.+]] = arith.muli %[[THREAD_ID_X]], %[[C16]] overflow<nsw, nuw> : index
# CHECK-DAG: %[[C16_0:.+]] = arith.constant 16 : index
Expand All @@ -151,7 +152,6 @@ def test(a: tkl.Memory[M, N, ADDRESS_SPACE, tkl.f16]):
# CHECK: %[[D7:.+]] = arith.muli %[[THREAD_ID_Y]], %[[C17]] overflow<nsw, nuw> : index
# CHECK: %[[D8:.+]] = arith.addi %[[D7]], %[[D6]] overflow<nsw, nuw> : index
# CHECK: %[[CST:.+]] = arith.constant dense<[0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, 240]> : vector<16xindex>
# CHECK: %[[MASK:.+]] = vector.constant_mask [16] : vector<16xi1>
# CHECK-DAG: %[[CST_2:.+]] = arith.constant 0.000000e+00 : f16
# CHECK: %[[D9:.+]] = vector.splat %[[CST_2]] : vector<16xf16>
# CHECK: %[[D10:.+]] = vector.gather %[[ARR]][%[[D5]], %[[D8]]] [%[[CST]]], %[[MASK]], %[[D9]] :
Expand Down Expand Up @@ -442,13 +442,13 @@ def test(
# CHECK: %[[D9:.*]] = vector.load %[[D0]][%[[D5:.*]], %[[D8:.*]]] : memref<16x16xi32, strided<[16, 1], offset: ?>>, vector<16xi32>
# CHECK: %[[D10:.*]] = stream.binding.subspan %[[ARG0]][%[[C0]]] : !stream.binding -> memref<16x16xf16, strided<[16, 1], offset: ?>>
# CHECK: %[[D11:.*]] = arith.index_cast %[[D9]] : vector<16xi32> to vector<16xindex>
# CHECK-DAG: %[[D18:.*]] = vector.constant_mask [16] : vector<16xi1>
# CHECK: %[[D12:.*]] = arith.muli %[[D11]], %[[CST0]] overflow<nsw, nuw> : vector<16xindex>
# CHECK: %[[D13:.*]] = vector.splat %{{.*}} : vector<16xindex>
# CHECK: %[[D14:.*]] = arith.addi %[[D13]], %[[D12]] overflow<nsw, nuw> : vector<16xindex>
# CHECK: %[[D15:.*]] = vector.splat %{{.*}} : vector<16xindex>
# CHECK: %[[D16:.*]] = arith.addi %[[D14]], %[[D15]] overflow<nsw, nuw> : vector<16xindex>
# CHECK: %[[D17:.*]] = arith.addi %[[D16]], %[[CST1]] overflow<nsw, nuw> : vector<16xindex>
# CHECK: %[[D18:.*]] = vector.constant_mask [16] : vector<16xi1>
# CHECK: %[[D19:.*]] = vector.gather %[[D10]][%[[C0]], %[[C0]]] [%[[D17]]], %[[D18]], %[[CST]] : memref<16x16xf16, strided<[16, 1], offset: ?>>, vector<16xindex>, vector<16xi1>, vector<16xf16> into vector<16xf16>
# CHECK: %[[D20:.*]] = stream.binding.subspan %[[ARG2]][%[[C0]]] : !stream.binding -> memref<16x16xf16, strided<[16, 1], offset: ?>>
# CHECK: vector.store %[[D19]], %[[D20]][%[[D5]], %[[D8]]] : memref<16x16xf16, strided<[16, 1], offset: ?>>, vector<16xf16>
Expand Down

0 comments on commit 71c0564

Please sign in to comment.