@@ -51,47 +51,47 @@ func.func @main() {
51
51
52
52
// Offset is out-of-bounds and slice runs out-of-bounds
53
53
// 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: ?>>
55
55
// CHECK-NEXT: ^ offset 0 is out-of-bounds
56
56
// CHECK-NEXT: Location: loc({{.*}})
57
57
// 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: ?>>
59
59
// CHECK-NEXT: ^ subview runs out-of-bounds along dimension 0
60
60
// CHECK-NEXT: Location: loc({{.*}})
61
61
func.call @subview_dynamic_rank_reduce (%alloca_4_dyn , %5 , %5 , %1 ) : (memref <?x4 xf32 >, index , index , index ) -> ()
62
62
63
63
// Offset is out-of-bounds and slice runs out-of-bounds
64
64
// 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: ?>>
66
66
// CHECK-NEXT: ^ offset 0 is out-of-bounds
67
67
// CHECK-NEXT: Location: loc({{.*}})
68
68
// 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: ?>>
70
70
// CHECK-NEXT: ^ subview runs out-of-bounds along dimension 0
71
71
// CHECK-NEXT: Location: loc({{.*}})
72
72
func.call @subview (%alloca , %1 ) : (memref <1 xf32 >, index ) -> ()
73
73
74
74
// Offset is out-of-bounds and slice runs out-of-bounds
75
75
// 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: ?>>
77
77
// CHECK-NEXT: ^ offset 0 is out-of-bounds
78
78
// CHECK-NEXT: Location: loc({{.*}})
79
79
// 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: ?>>
81
81
// CHECK-NEXT: ^ subview runs out-of-bounds along dimension 0
82
82
// CHECK-NEXT: Location: loc({{.*}})
83
83
func.call @subview (%alloca , %n1 ) : (memref <1 xf32 >, index ) -> ()
84
84
85
85
// Slice runs out-of-bounds due to size
86
86
// 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: ?>>
88
88
// CHECK-NEXT: ^ subview runs out-of-bounds along dimension 0
89
89
// CHECK-NEXT: Location: loc({{.*}})
90
90
func.call @subview_dynamic (%alloca_4_dyn , %0 , %5 , %1 ) : (memref <?x4 xf32 >, index , index , index ) -> ()
91
91
92
92
// Slice runs out-of-bounds due to stride
93
93
// 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: ?>>
95
95
// CHECK-NEXT: ^ subview runs out-of-bounds along dimension 0
96
96
// CHECK-NEXT: Location: loc({{.*}})
97
97
func.call @subview_dynamic (%alloca_4_dyn , %0 , %4 , %4 ) : (memref <?x4 xf32 >, index , index , index ) -> ()
0 commit comments