[Mlir-commits] [mlir] [mlir][Vector] Add support for poison indices to `Extract/IndexOp` (PR #123488)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Mon Jan 20 08:00:37 PST 2025
================
@@ -187,7 +187,7 @@ func.func @extract_0d(%arg0: vector<f32>) {
func.func @extract_position_overflow(%arg0: vector<4x8x16xf32>) {
// expected-error at +1 {{expected position attribute #3 to be a non-negative integer smaller than the corresponding vector dimension}}
- %1 = vector.extract %arg0[0, 0, -1] : f32 from vector<4x8x16xf32>
+ %1 = vector.extract %arg0[0, 0, -5] : f32 from vector<4x8x16xf32>
----------------
banach-space wrote:
This error msg should take into account `-1` (i.e. the index either either non-negative or `-1` for poison).
https://github.com/llvm/llvm-project/pull/123488
More information about the Mlir-commits
mailing list