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

Luke Hutton llvmlistbot at llvm.org
Mon Mar 23 06:10:47 PDT 2026


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

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.

>From f3c55a2155e75dba990f5903ec2b3f19e7939b95 Mon Sep 17 00:00:00 2001
From: Luke Hutton <luke.hutton at arm.com>
Date: Mon, 23 Mar 2026 12:58:38 +0000
Subject: [PATCH] [mlir][tosa] Fix dense resource in constant folding test

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.

Change-Id: Iaa33e9e645625c17d51da16bc1b4a1f32448e947
---
 mlir/test/Dialect/Tosa/constant_folding.mlir | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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"
     }
   }
 #-}



More information about the Mlir-commits mailing list