[Mlir-commits] [mlir] [mlir][tosa] Fix validation test (PR #192679)
Luke Hutton
llvmlistbot at llvm.org
Fri Apr 17 08:08:32 PDT 2026
https://github.com/lhutton1 created https://github.com/llvm/llvm-project/pull/192679
Fixes a validation test after a merge race condition with https://github.com/llvm/llvm-project/pull/192122 and https://github.com/llvm/llvm-project/pull/192272.
>From 6cc34b006e57a4deada2f08e79ed37fa1e080a2a Mon Sep 17 00:00:00 2001
From: Luke Hutton <luke.hutton at arm.com>
Date: Fri, 17 Apr 2026 14:51:32 +0000
Subject: [PATCH] [mlir][tosa] Fix validation test
Fixes a validation test after a merge race condition with
https://github.com/llvm/llvm-project/pull/192122 and
https://github.com/llvm/llvm-project/pull/192272.
Change-Id: I3b87e0ef9c04432b3af1a5aae7630dbae662e802
---
mlir/test/Dialect/Tosa/tosa-validation-version-1p0-invalid.mlir | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mlir/test/Dialect/Tosa/tosa-validation-version-1p0-invalid.mlir b/mlir/test/Dialect/Tosa/tosa-validation-version-1p0-invalid.mlir
index e202ed5b2f28b..7ff883e8e5431 100644
--- a/mlir/test/Dialect/Tosa/tosa-validation-version-1p0-invalid.mlir
+++ b/mlir/test/Dialect/Tosa/tosa-validation-version-1p0-invalid.mlir
@@ -80,7 +80,7 @@ func.func @test_gather_bool_i32(%arg0: tensor<13x21x3xi1>, %arg1: tensor<13x26xi
func.func @test_row_gather_block_scaled_i8_i32(%arg0: tensor<13x21x3xi8>, %arg1: tensor<13x26xi32>) -> tensor<13x52x3xi8> {
%row_count = "tosa.const"() {values = dense<2> : tensor<1xi32>} : () -> tensor<1xi32>
- // expected-error at +1 {{'tosa.row_gather_block_scaled' op illegal: requires specification version compatible with 1.1 (got 1.0) OR requires specification version compatible with 1.1 (got 1.0) to be specified in the target environment}}
+ // expected-error at +1 {{'tosa.row_gather_block_scaled' op illegal: requires specification version compatible with 1.1.draft (got 1.0) OR requires specification version compatible with 1.1.draft (got 1.0) to be specified in the target environment}}
%0 = tosa.row_gather_block_scaled %arg0, %arg1, %row_count {block_size = #tosa.block_size<BLOCK_SIZE_1>} : (tensor<13x21x3xi8>, tensor<13x26xi32>, tensor<1xi32>) -> (tensor<13x52x3xi8>)
return %0 : tensor<13x52x3xi8>
}
More information about the Mlir-commits
mailing list