[Mlir-commits] [mlir] [mlir][tosa] Fix dense resource in constant folding test (PR #188034)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Mar 23 06:11:21 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Luke Hutton (lhutton1)

<details>
<summary>Changes</summary>

The dense resource in this test case was missing 4 bytes, as suggested here: https://github.com/llvm/llvm-project/pull/187339#issuecomment-4101903893

This commit adds 4 bytes to the dense resource, taking the total size to 53 bytes.

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


1 Files Affected:

- (modified) mlir/test/Dialect/Tosa/constant_folding.mlir (+1-1) 


``````````diff
diff --git a/mlir/test/Dialect/Tosa/constant_folding.mlir b/mlir/test/Dialect/Tosa/constant_folding.mlir
index dc040d3231964..5f81309e607b9 100644
--- a/mlir/test/Dialect/Tosa/constant_folding.mlir
+++ b/mlir/test/Dialect/Tosa/constant_folding.mlir
@@ -833,7 +833,7 @@ func.func @test_slice_resource_no_fold() -> tensor<1x1xi32> {
 {-#
   dialect_resources: {
     builtin: {
-      slice_resource: "0x040000000700000000000000000000000000000000000000000000000900000000000000000000000000000000000000"
+      slice_resource: "0x08000000070000000000000000000000000000000000000000000000090000000000000000000000000000000000000000000000"
     }
   }
 #-}

``````````

</details>


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


More information about the Mlir-commits mailing list