File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -213,12 +213,6 @@ LogicalResult arith::ConstantOp::verify() {
213
213
return emitOpError (
214
214
" value must be an integer, float, or elements attribute" );
215
215
}
216
-
217
- auto vecType = dyn_cast<VectorType>(type);
218
- if (vecType && vecType.isScalable () && !isa<SplatElementsAttr>(getValue ()))
219
- return emitOpError (
220
- " intializing scalable vectors with elements attribute is not supported"
221
- " unless it's a vector splat" );
222
216
return success ();
223
217
}
224
218
Original file line number Diff line number Diff line change @@ -64,15 +64,6 @@ func.func @constant_out_of_range() {
64
64
65
65
// -----
66
66
67
- func.func @constant_invalid_scalable_vec_initialization () {
68
- ^bb0 :
69
- // expected-error@+1 {{'arith.constant' op intializing scalable vectors with elements attribute is not supported unless it's a vector splat}}
70
- %c = arith.constant dense <[0 , 1 ]> : vector <[2 ] x i32 >
71
- return
72
- }
73
-
74
- // -----
75
-
76
67
func.func @constant_wrong_type () {
77
68
^bb :
78
69
%x = " arith.constant" (){value = 10. } : () -> f32 // expected-error {{'arith.constant' op failed to verify that all of {value, result} have same type}}
You can’t perform that action at this time.
0 commit comments