[Mlir-commits] [mlir] [mlir][Linalg] Fix crash in buildBinaryFn on non-numeric types (PR #180594)
Akimasa Watanuki
llvmlistbot at llvm.org
Tue Feb 10 21:02:59 PST 2026
================
@@ -0,0 +1,10 @@
+// RUN: not mlir-opt %s -split-input-file 2>&1 | FileCheck %s
+
+func.func @crash_repro() {
+ %0 = "tosa.const"() <{values = dense<0> : tensor<1xi32>}> : () -> tensor<1xi32>
+ %1 = amx.tile_zero : !amx.tile<16x16xi32>
+
+ // CHECK: Cannot build binary Linalg operation: expects allComplex, allFloatingPoint, or allInteger
----------------
Men-cotton wrote:
Add a check for the `", got " << arg0.getType() << " and " << arg1.getType();` part.
https://github.com/llvm/llvm-project/pull/180594
More information about the Mlir-commits
mailing list