[Mlir-commits] [mlir] [mlir][tosa] (PR #229386)
Jack Frankland
llvmlistbot at llvm.org
Tue Oct 6 04:42:21 PDT 2026
https://github.com/FranklandJack created https://github.com/llvm/llvm-project/pull/229386
Fix malformed IR in tosa-to-linalg test.
>From ff949f4c8db331da8beac31ecdefcd93d224e942 Mon Sep 17 00:00:00 2001
From: Jack Frankland <jack.frankland at arm.com>
Date: Tue, 6 Oct 2026 12:36:31 +0100
Subject: [PATCH] [mlir][tosa]
Fix malformed IR in tosa-to-linalg test.
Signed-off-by: Jack Frankland <jack.frankland at arm.com>
---
mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir b/mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
index 2929fa83930f43f..7031aa117207464 100644
--- a/mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
+++ b/mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
@@ -2019,8 +2019,8 @@ func.func @row_gather(%values: tensor<2x5x3xf32>, %indices: tensor<2x2xi32>, %ro
// Verify i64 indices and the largest valid start row.
// CHECK-LABEL: @row_gather_i64_boundary_indices
func.func @row_gather_i64_boundary_indices(%values: tensor<2x5x2xi16>) -> tensor<2x4x2xi16> {
- // CHECK: %[[INDICES:.+]] = "tosa.const"()
- // CHECK: %[[ROW_COUNT:.+]] = "tosa.const"()
+ // CHECK: %[[INDICES:.+]] = tosa.const values(dense<{{\[\[}}0, 3], [3, 1]]> : tensor<2x2xi64>) : () -> tensor<2x2xi64>
+ // CHECK: %[[ROW_COUNT:.+]] = tosa.const values(dense<2> : tensor<1xi32>) : () -> tensor<1xi32>
// CHECK: linalg.generic
// CHECK: %[[INDEX:.+]] = tensor.extract %[[INDICES]][{{.+}}] : tensor<2x2xi64>
// CHECK: %[[ROW:.+]] = arith.index_cast %[[INDEX]] : i64 to index
More information about the Mlir-commits
mailing list