[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:14 PST 2024
================
@@ -240,6 +240,13 @@ func.func @extract_0d(%a: vector<f32>) -> f32 {
return %0 : f32
}
+// CHECK-LABEL: @extract_single_element_vector
+func.func @extract_single_element_vector(%arg0: vector<4x8x3xf32>) -> vector<1xf32> {
----------------
banach-space wrote:
```mlir
func.func @extract_const_idx(%arg0: vector<4x8x16xf32>)
func.func @extract_val_idx(%arg0: vector<4x8x16xf32>, %idx: index)
func.func @extract_0d(%a: vector<f32>) -> f32 {
func.func @insert_const_idx(%a: f32, %b: vector<16xf32>, %c: vector<8x16xf32>,
func.func @insert_val_idx(%a: f32, %b: vector<16xf32>, %c: vector<8x16xf32>,
func.func @insert_0d(%a: f32, %b: vector<f32>, %c: vector<2x3xf32>) -> (vector<f32>, vector<2x3xf32>)
```
https://github.com/llvm/llvm-project/pull/115824
More information about the Mlir-commits
mailing list