Skip to content

Commit 556026d

Browse files
committed
Add test case
1 parent 0ad2039 commit 556026d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mlir/test/Dialect/Arith/invalid.mlir

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,14 @@ func.func @bitcast_tensor_dim(%arg0 : tensor<4xf32>) {
727727

728728
// -----
729729

730+
func.func @bitcast_tensor_dim(%arg0 : tensor<?xf32>) {
731+
// expected-error@+1 {{'arith.bitcast' op failed to verify that input and output have the same tensor dimensions}}
732+
%0 = arith.bitcast %arg0 : tensor<?xf32> to tensor<4xi32>
733+
return
734+
}
735+
736+
// -----
737+
730738
func.func @trunci_fl_to_scalable(%arg0 : vector<4xi32>) {
731739
// expected-error@+1 {{'arith.trunci' op requires the same shape for all operands and results}}
732740
%0 = arith.trunci %arg0 : vector<4xi32> to vector<[4]xi8>

0 commit comments

Comments
 (0)