[Mlir-commits] [mlir] [mlir][vector] Add verification for incorrect vector.extract (PR #115824)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Tue Nov 12 04:36:09 PST 2024
================
@@ -192,6 +192,13 @@ func.func @extract_position_overflow(%arg0: vector<4x8x16xf32>) {
// -----
+func.func @extract_scalar_missing_indices(%arg0: vector<4x8x1xf32>) {
+ // expected-error at +1 {{expected source rank to match number of indices for scalar result}}
+ %1 = vector.extract %arg0[0, 0] : f32 from vector<4x8x1xf32>
+}
----------------
banach-space wrote:
There should be a symmetric test for `vector.insert`
https://github.com/llvm/llvm-project/pull/115824
More information about the Mlir-commits
mailing list