[Mlir-commits] [mlir] 195de69 - [mlir][tosa] Fix extra type in GATHER compliance data (#230045)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Oct 8 05:51:41 PDT 2026


Author: Maddy Dunn
Date: 2026-10-08T12:51:35Z
New Revision: 195de6997e477f25d1288fdee3fcf2a1bd39ce4c

URL: https://github.com/llvm/llvm-project/commit/195de6997e477f25d1288fdee3fcf2a1bd39ce4c
DIFF: https://github.com/llvm/llvm-project/commit/195de6997e477f25d1288fdee3fcf2a1bd39ce4c.diff

LOG: [mlir][tosa] Fix extra type in GATHER compliance data (#230045)

Signed-off-by: Madeleine Dunn <madeleine.dunn at arm.com>

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Tosa/IR/TosaComplianceData.h.inc
    mlir/test/Dialect/Tosa/tosa-validation-version-1p1-valid.mlir

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaComplianceData.h.inc b/mlir/include/mlir/Dialect/Tosa/IR/TosaComplianceData.h.inc
index eae0457129a3f..4bdcf155d7bdb 100644
--- a/mlir/include/mlir/Dialect/Tosa/IR/TosaComplianceData.h.inc
+++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaComplianceData.h.inc
@@ -4465,8 +4465,7 @@ extensionComplianceMap = {
        {{{bf16T, i64T, bf16T}, SpecificationVersion::V_1_1_DRAFT}},
        allOf},
       {{Extension::int64, Extension::mx_common, Extension::mx_fp8e4m3},
-       {{{bs32_fp8ue8m0_fp8e4m3T, i64T, bs32_fp8ue8m0_fp8e4m3T,
-          bs32_fp8ue8m0_fp8e4m3T},
+       {{{bs32_fp8ue8m0_fp8e4m3T, i64T, bs32_fp8ue8m0_fp8e4m3T},
          SpecificationVersion::V_1_1_DRAFT}},
        allOf},
       {{Extension::int64, Extension::mx_common, Extension::mx_fp8e5m2},

diff  --git a/mlir/test/Dialect/Tosa/tosa-validation-version-1p1-valid.mlir b/mlir/test/Dialect/Tosa/tosa-validation-version-1p1-valid.mlir
index 2927b9a0165d0..4cc70a3826416 100644
--- a/mlir/test/Dialect/Tosa/tosa-validation-version-1p1-valid.mlir
+++ b/mlir/test/Dialect/Tosa/tosa-validation-version-1p1-valid.mlir
@@ -428,6 +428,14 @@ func.func @test_gather_mxfp_i32_indices(%arg0: tensor<13x21x32x!tosa.block_scale
 
 // -----
 
+// CHECK-LABEL: gather_mxfp_f8e4m3
+func.func @gather_mxfp_f8e4m3(%arg0: tensor<1x35x64x!tosa.block_scaled<BLOCK_SHAPE_32:f8E8M0FNU:f8E4M3FN>>, %arg1: tensor<1x126xi64>) -> tensor<1x126x64x!tosa.block_scaled<BLOCK_SHAPE_32:f8E8M0FNU:f8E4M3FN>> {
+  %0 = tosa.gather %arg0, %arg1 : (tensor<1x35x64x!tosa.block_scaled<BLOCK_SHAPE_32:f8E8M0FNU:f8E4M3FN>>, tensor<1x126xi64>) -> tensor<1x126x64x!tosa.block_scaled<BLOCK_SHAPE_32:f8E8M0FNU:f8E4M3FN>>
+  return %0 : tensor<1x126x64x!tosa.block_scaled<BLOCK_SHAPE_32:f8E8M0FNU:f8E4M3FN>>
+}
+
+// -----
+
 // CHECK-LABEL: test_gather_mxfp_i64_indices
 func.func @test_gather_mxfp_i64_indices(%arg0: tensor<13x21x32x!tosa.block_scaled<BLOCK_SHAPE_32:f8E8M0FNU:!tosa.mxint8>>, %arg1: tensor<13x26xi64>) -> tensor<13x26x32x!tosa.block_scaled<BLOCK_SHAPE_32:f8E8M0FNU:!tosa.mxint8>> {
   %0 = tosa.gather %arg0, %arg1 : (tensor<13x21x32x!tosa.block_scaled<BLOCK_SHAPE_32:f8E8M0FNU:!tosa.mxint8>>, tensor<13x26xi64>) -> tensor<13x26x32x!tosa.block_scaled<BLOCK_SHAPE_32:f8E8M0FNU:!tosa.mxint8>>


        


More information about the Mlir-commits mailing list