Skip to content

Commit 1dfdb33

Browse files
authored
add test
1 parent c2bff67 commit 1dfdb33

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// RUN: mlir-opt -convert-scf-to-emitc %s -split-input-file -verify-diagnostics
2+
3+
func.func @unsupported_type_vector(%arg0 : index, %arg1 : index, %arg2 : index) -> vector<3xindex> {
4+
%zero = arith.constant dense<0> : vector<3xindex>
5+
// expected-error@+1 {{failed to legalize operation 'scf.for'}}
6+
%r = scf.for %i0 = %arg0 to %arg1 step %arg2 iter_args(%acc = %zero) -> vector<3xindex> {
7+
scf.yield %acc : vector<3xindex>
8+
}
9+
return %r : vector<3xindex>
10+
}

0 commit comments

Comments
 (0)