From a8998fa06261890cec330a3c0bf9b2652c692aa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Warzy=C5=84ski?= Date: Thu, 26 Jun 2025 09:27:07 +0100 Subject: [PATCH] [mlir][vector][nfc] Move vector.splat test (#145699) Moves a test for vector.splat so that all invalid tests are grouped together and easy to find. --- mlir/test/Dialect/Vector/invalid.mlir | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/mlir/test/Dialect/Vector/invalid.mlir b/mlir/test/Dialect/Vector/invalid.mlir index 4935ec8ba8e6..b6025cee31a6 100644 --- a/mlir/test/Dialect/Vector/invalid.mlir +++ b/mlir/test/Dialect/Vector/invalid.mlir @@ -1667,13 +1667,6 @@ func.func @scan_unsupported_kind(%arg0: vector<2x3xf32>, %arg1: vector<3xf32>) - return %0#0 : vector<2x3xf32> } -// ----- - -func.func @invalid_splat(%v : f32) { - // expected-error@+1 {{invalid kind of type specified: expected builtin.vector, but found 'memref<8xf32>'}} - vector.splat %v : memref<8xf32> - return -} // ----- @@ -1973,6 +1966,18 @@ func.func @flat_transpose_scalable(%arg0: vector<[16]xf32>) -> vector<[16]xf32> return %0 : vector<[16]xf32> } +//===----------------------------------------------------------------------===// +// vector.splat +//===----------------------------------------------------------------------===// + +// ----- + +func.func @vector_splat_invalid_result(%v : f32) { + // expected-error@+1 {{invalid kind of type specified: expected builtin.vector, but found 'memref<8xf32>'}} + vector.splat %v : memref<8xf32> + return +} + // ----- // expected-note @+1 {{prior use here}}