Skip to content

Commit 7711518

Browse files
committed
Fix format in tests
1 parent 4acc20f commit 7711518

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/filecheck/dialects/tensor-theory/ops.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ builtin.module {
1616
%zero = "smt.fp.pzero"() : () -> !smt.fp<8,24>
1717
%eq_zero = "smt.eq"(%extract, %zero) : (!smt.fp<8,24>, !smt.fp<8,24>) -> !smt.bool
1818
"smt.assert"(%eq_zero) : (!smt.bool) -> ()
19-
// CHECK-NEXT: // CHECK-NEXT: (declare-const $idx2 (_ BitVec 64))
19+
// CHECK-NEXT: (assert (= (select (select $tmp $idx1) $idx2) (_ +zero 8 24)))
2020
}

tests/filecheck/rewrite-tensors/rewrite-smt-tensor.mlir

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ builtin.module {
1111
%extract = "smt.tensor.extract"(%transpose, %idx1, %idx2):
1212
(!smt.tensor.tensor<[3, 3], !smt.fp<8, 24>, none>, !smt.bv<64>, !smt.bv<64>) -> !smt.fp<8, 24>
1313
}
14+
15+
// CHECK: %0 = "smt.declare_const"() : () -> !smt.tensor.tensor<[3 : i64, 3 : i64], !smt.fp<8, 24>, none>
16+
// CHECK-NEXT: %idx1 = "smt.declare_const"() : () -> !smt.bv<64>
17+
// CHECK-NEXT: %idx2 = "smt.declare_const"() : () -> !smt.bv<64>
18+
// CHECK-NEXT: %extract = "smt.tensor.extract"(%0, %idx2, %idx1) : (!smt.tensor.tensor<[3 : i64, 3 : i64], !smt.fp<8, 24>, none>, !smt.bv<64>, !smt.bv<64>) -> !smt.fp<8, 24>

0 commit comments

Comments
 (0)