[Mlir-commits] [mlir] a64e6f4 - [MLIR][Vector] Test to accompany bug fix (#154434)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Aug 21 13:00:44 PDT 2025
Author: James Newling
Date: 2025-08-21T13:00:41-07:00
New Revision: a64e6f49284a7ffd5401183d0e94a94a7de39cfb
URL: https://github.com/llvm/llvm-project/commit/a64e6f49284a7ffd5401183d0e94a94a7de39cfb
DIFF: https://github.com/llvm/llvm-project/commit/a64e6f49284a7ffd5401183d0e94a94a7de39cfb.diff
LOG: [MLIR][Vector] Test to accompany bug fix (#154434)
Bug introduced in
https://github.com/llvm/llvm-project/pull/93664
The bug was fixed in
https://github.com/llvm/llvm-project/pull/152957
But there was no test. This PR adds a test that hits the assertion
failure if the fix is reverted (if I change dyn_cast to cast).
Added:
Modified:
mlir/test/Dialect/Vector/transform-vector.mlir
Removed:
################################################################################
diff --git a/mlir/test/Dialect/Vector/transform-vector.mlir b/mlir/test/Dialect/Vector/transform-vector.mlir
index 4b38db79bff3e..524a4f429211b 100644
--- a/mlir/test/Dialect/Vector/transform-vector.mlir
+++ b/mlir/test/Dialect/Vector/transform-vector.mlir
@@ -121,6 +121,13 @@ func.func @arith_to_outerproduct_trans_rhs_f32(%lhs: vector<16xf32>, %rhs: vecto
return %mul: vector<8x16xf32>
}
+// See https://github.com/llvm/llvm-project/pull/152957
+// CHECK-LABEL: func.func @negative_non_vector_type
+func.func @negative_non_vector_type(%lhs: f32, %rhs: f32) -> f32 {
+ %mul = arith.mulf %lhs, %rhs : f32
+ return %mul: f32
+}
+
module attributes {transform.with_named_sequence} {
transform.named_sequence @__transform_main(%module_op: !transform.any_op {transform.readonly}) {
%func = transform.structured.match ops{["func.func"]} in %module_op : (!transform.any_op) -> !transform.any_op
More information about the Mlir-commits
mailing list