[Mlir-commits] [mlir] [mlir][tosa] Fix crash in validation pass when dialect is not loaded (PR #173449)

Mehdi Amini llvmlistbot at llvm.org
Sun Dec 28 07:52:25 PST 2025


================
@@ -0,0 +1,21 @@
+// RUN: mlir-opt %s -split-input-file -tosa-validate | FileCheck %s
+
+// --- First case: without TOSA Operation (#173370 bug reproduction) ---
+
+// CHECK-LABEL: func.func @test_validation_pass_init
+func.func @test_validation_pass_init(%arg0: tensor<1xf32>) -> tensor<1xf32> {
+  // CHECK: math.asin
+  %0 = math.asin %arg0 : tensor<1xf32>
+  return %0 : tensor<1xf32>
+}
+
+// -----
+
+// --- Second case: with TOSA Operation ---
----------------
joker-eph wrote:

What is this test-case doing on top of existing tests like in `mlir/test/Dialect/Tosa/tosa-validation-valid.mlir`?

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


More information about the Mlir-commits mailing list