Skip to content

Commit 23ecfe5

Browse files
authored
fix(mlir): update TOSAToLinalg LIT after upstream changes (NFC) (#17)
Follows up on llvm/llvm-project@d03f30f to minimize future conflicts.
1 parent 697e7ea commit 23ecfe5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ func.func @rescale_i8_unsigned_output_implicit(%arg0 : tensor<2xi8>) -> () {
12051205
// CHECK-DAG: [[LOWER:%.+]] = arith.maxsi [[CMIN]], [[SCALED_ZEROED]]
12061206
// CHECK: [[BOUNDED:%.+]] = arith.minsi [[CMAX]], [[LOWER]]
12071207
// CHECK: [[TRUNC:%.+]] = arith.trunci [[BOUNDED]]
1208-
// CHECK-NOT: builtin.unrealized_conversion_cast [[TRUNC]] : i8 to i8
1208+
// CHECK-NOT: builtin.unrealized_conversion_cast [[TRUNC]]
12091209
// CHECK: linalg.yield [[TRUNC]]
12101210
%multiplier = "tosa.const"() {values = dense<19689> : tensor<1xi16> } : () -> tensor<1xi16>
12111211
%shift = "tosa.const"() {values = dense<15> : tensor<1xi8> } : () -> tensor<1xi8>
@@ -1308,7 +1308,7 @@ func.func @rescale_i8_unsigned_input_implicit(%arg0 : tensor<2xi8>) -> () {
13081308
// CHECK: [[INIT:%.+]] = tensor.empty()
13091309
// CHECK: [[GENERIC:%.+]] = linalg.generic {indexing_maps = [#[[$MAP0]], #[[$MAP0]]], iterator_types = ["parallel"]} ins(%[[ARG0]] : tensor<2xi8>) outs([[INIT]] : tensor<2xi8>)
13101310
// CHECK: ^bb0([[IN:%.+]]: i8, [[UNUSED:%.+]]: i8):
1311-
// CHECK-NOT: builtin.unrealized_conversion_cast [[IN]] : i8 to i8
1311+
// CHECK-NOT: builtin.unrealized_conversion_cast [[IN]]
13121312
// CHECK-DAG: [[C17:%.+]] = arith.constant 17
13131313
// CHECK-DAG: [[C22:%.+]] = arith.constant 22
13141314
// CHECK-DAG: [[IN32:%.+]] = arith.extui [[IN]]

0 commit comments

Comments
 (0)