@@ -51,47 +51,47 @@ func.func @main() {
5151
5252 // Offset is out-of-bounds and slice runs out-of-bounds
5353 // CHECK: ERROR: Runtime op verification failed
54- // CHECK-NEXT: " memref.subview"( %{{.*}}, %{{.*}}, %{{.*}}, %{{.*}}) <{operandSegmentSizes = array<i32: 1 , 1, 1, 1>, static_offsets = array<i64: -9223372036854775808, 0>, static_sizes = array<i64: -9223372036854775808, 1>, static_strides = array<i64: -9223372036854775808, 1>}> : ( memref<?x4xf32>, index, index, index) -> memref<?xf32, strided<[?], offset: ?>>
54+ // CHECK-NEXT: memref.subview %{{.*}}[ %{{.*}}, 0] [ %{{.*}}, 1] [ %{{.*}}, 1] : memref<?x4xf32> to memref<?xf32, strided<[?], offset: ?>>
5555 // CHECK-NEXT: ^ offset 0 is out-of-bounds
5656 // CHECK-NEXT: Location: loc({{.*}})
5757 // CHECK: ERROR: Runtime op verification failed
58- // CHECK-NEXT: " memref.subview"( %{{.*}}, %{{.*}}, %{{.*}}, %{{.*}}) <{operandSegmentSizes = array<i32: 1 , 1, 1, 1>, static_offsets = array<i64: -9223372036854775808, 0>, static_sizes = array<i64: -9223372036854775808, 1>, static_strides = array<i64: -9223372036854775808, 1>}> : ( memref<?x4xf32>, index, index, index) -> memref<?xf32, strided<[?], offset: ?>>
58+ // CHECK-NEXT: memref.subview %{{.*}}[ %{{.*}}, 0] [ %{{.*}}, 1] [ %{{.*}}, 1] : memref<?x4xf32> to memref<?xf32, strided<[?], offset: ?>>
5959 // CHECK-NEXT: ^ subview runs out-of-bounds along dimension 0
6060 // CHECK-NEXT: Location: loc({{.*}})
6161 func.call @subview_dynamic_rank_reduce (%alloca_4_dyn , %5 , %5 , %1 ) : (memref <?x4 xf32 >, index , index , index ) -> ()
6262
6363 // Offset is out-of-bounds and slice runs out-of-bounds
6464 // CHECK: ERROR: Runtime op verification failed
65- // CHECK-NEXT: " memref.subview"( %{{.*}}, %{{.*}}) <{operandSegmentSizes = array<i32: 1, 1, 0, 0>, static_offsets = array<i64: -9223372036854775808>, static_sizes = array<i64: 1>, static_strides = array<i64: 1>}> : ( memref<1xf32>, index) -> memref<1xf32, strided<[1], offset: ?>>
65+ // CHECK-NEXT: memref.subview %{{.*}}[ %{{.*}}] [1] [1] : memref<1xf32> to memref<1xf32, strided<[1], offset: ?>>
6666 // CHECK-NEXT: ^ offset 0 is out-of-bounds
6767 // CHECK-NEXT: Location: loc({{.*}})
6868 // CHECK: ERROR: Runtime op verification failed
69- // CHECK-NEXT: " memref.subview"( %{{.*}}, %{{.*}}) <{operandSegmentSizes = array<i32: 1, 1, 0, 0>, static_offsets = array<i64: -9223372036854775808>, static_sizes = array<i64: 1>, static_strides = array<i64: 1>}> : ( memref<1xf32>, index) -> memref<1xf32, strided<[1], offset: ?>>
69+ // CHECK-NEXT: memref.subview %{{.*}}[ %{{.*}}] [1] [1] : memref<1xf32> to memref<1xf32, strided<[1], offset: ?>>
7070 // CHECK-NEXT: ^ subview runs out-of-bounds along dimension 0
7171 // CHECK-NEXT: Location: loc({{.*}})
7272 func.call @subview (%alloca , %1 ) : (memref <1 xf32 >, index ) -> ()
7373
7474 // Offset is out-of-bounds and slice runs out-of-bounds
7575 // CHECK: ERROR: Runtime op verification failed
76- // CHECK-NEXT: " memref.subview"( %{{.*}}, %{{.*}}) <{operandSegmentSizes = array<i32: 1, 1, 0, 0>, static_offsets = array<i64: -9223372036854775808>, static_sizes = array<i64: 1>, static_strides = array<i64: 1>}> : ( memref<1xf32>, index) -> memref<1xf32, strided<[1], offset: ?>>
76+ // CHECK-NEXT: memref.subview %{{.*}}[ %{{.*}}] [1] [1] : memref<1xf32> to memref<1xf32, strided<[1], offset: ?>>
7777 // CHECK-NEXT: ^ offset 0 is out-of-bounds
7878 // CHECK-NEXT: Location: loc({{.*}})
7979 // CHECK: ERROR: Runtime op verification failed
80- // CHECK-NEXT: " memref.subview"( %{{.*}}, %{{.*}}) <{operandSegmentSizes = array<i32: 1, 1, 0, 0>, static_offsets = array<i64: -9223372036854775808>, static_sizes = array<i64: 1>, static_strides = array<i64: 1>}> : ( memref<1xf32>, index) -> memref<1xf32, strided<[1], offset: ?>>
80+ // CHECK-NEXT: memref.subview %{{.*}}[ %{{.*}}] [1] [1] : memref<1xf32> to memref<1xf32, strided<[1], offset: ?>>
8181 // CHECK-NEXT: ^ subview runs out-of-bounds along dimension 0
8282 // CHECK-NEXT: Location: loc({{.*}})
8383 func.call @subview (%alloca , %n1 ) : (memref <1 xf32 >, index ) -> ()
8484
8585 // Slice runs out-of-bounds due to size
8686 // CHECK: ERROR: Runtime op verification failed
87- // CHECK-NEXT: " memref.subview"( %{{.*}}, %{{.*}}, %{{.*}}, %{{.*}}) <{operandSegmentSizes = array<i32: 1 , 1, 1, 1>, static_offsets = array<i64: -9223372036854775808, 0>, static_sizes = array<i64: -9223372036854775808, 4>, static_strides = array<i64: -9223372036854775808, 1>}> : ( memref<?x4xf32>, index, index, index) -> memref<?x4xf32, strided<[?, 1], offset: ?>>
87+ // CHECK-NEXT: memref.subview %{{.*}}[ %{{.*}}, 0] [ %{{.*}}, 4] [ %{{.*}}, 1] : memref<?x4xf32> to memref<?x4xf32, strided<[?, 1], offset: ?>>
8888 // CHECK-NEXT: ^ subview runs out-of-bounds along dimension 0
8989 // CHECK-NEXT: Location: loc({{.*}})
9090 func.call @subview_dynamic (%alloca_4_dyn , %0 , %5 , %1 ) : (memref <?x4 xf32 >, index , index , index ) -> ()
9191
9292 // Slice runs out-of-bounds due to stride
9393 // CHECK: ERROR: Runtime op verification failed
94- // CHECK-NEXT: " memref.subview"( %{{.*}}, %{{.*}}, %{{.*}}, %{{.*}}) <{operandSegmentSizes = array<i32: 1 , 1, 1, 1>, static_offsets = array<i64: -9223372036854775808, 0>, static_sizes = array<i64: -9223372036854775808, 4>, static_strides = array<i64: -9223372036854775808, 1>}> : ( memref<?x4xf32>, index, index, index) -> memref<?x4xf32, strided<[?, 1], offset: ?>>
94+ // CHECK-NEXT: memref.subview %{{.*}}[ %{{.*}}, 0] [ %{{.*}}, 4] [ %{{.*}}, 1] : memref<?x4xf32> to memref<?x4xf32, strided<[?, 1], offset: ?>>
9595 // CHECK-NEXT: ^ subview runs out-of-bounds along dimension 0
9696 // CHECK-NEXT: Location: loc({{.*}})
9797 func.call @subview_dynamic (%alloca_4_dyn , %0 , %4 , %4 ) : (memref <?x4 xf32 >, index , index , index ) -> ()
0 commit comments