[Mlir-commits] [mlir] [mlir][tosa] (PR #229386)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Oct 6 04:43:01 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir-linalg

Author: Jack Frankland (FranklandJack)

<details>
<summary>Changes</summary>

Fix malformed IR in tosa-to-linalg test.

---
Full diff: https://github.com/llvm/llvm-project/pull/229386.diff


1 Files Affected:

- (modified) mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir (+2-2) 


``````````diff
diff --git a/mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir b/mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
index 2929fa83930f4..7031aa1172074 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

``````````

</details>


https://github.com/llvm/llvm-project/pull/229386


More information about the Mlir-commits mailing list