Skip to content

Commit ab9970d

Browse files
committed
test
1 parent f879041 commit ab9970d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mlir/test/Dialect/Vector/int-range-interface.mlir

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,14 @@ func.func @vector_insertelement() -> vector<4xindex> {
9393
%3 = test.reflect_bounds %2 : vector<4xindex>
9494
func.return %3 : vector<4xindex>
9595
}
96+
97+
// CHECK-LABEL: func @test_loaded_vector_extract
98+
// No bounds
99+
// CHECK: test.reflect_bounds %{{.*}} : i32
100+
func.func @test_loaded_vector_extract(%memref : memref<16xi32>) -> i32 {
101+
%c0 = arith.constant 0 : index
102+
%v = vector.load %memref[%c0] : memref<16xi32>, vector<4xi32>
103+
%e = vector.extract %v[0] : i32 from vector<4xi32>
104+
%bounds = test.reflect_bounds %e : i32
105+
func.return %bounds : i32
106+
}

0 commit comments

Comments
 (0)