Skip to content

Commit 995952b

Browse files
committed
Add negative tests for function declarations and for scalable vectors
1 parent 99fc708 commit 995952b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

mlir/test/Conversion/ConvertToSPIRV/func-signature-vector-unroll.mlir

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,18 @@ func.func @reduction(%arg0 : vector<8xi32>, %arg1 : vector<8xi32>, %arg2 : i32)
130130
%2 = arith.addi %1, %arg2 : i32
131131
return %2 : i32
132132
}
133+
134+
// -----
135+
136+
// CHECK-LABEL: func.func private @unsupported_decl(vector<8xi32>)
137+
func.func private @unsupported_decl(vector<8xi32>)
138+
139+
// -----
140+
141+
// CHECK-LABEL: @unsupported_scalable
142+
// CHECK-SAME: (%[[ARG0:.+]]: vector<[8]xi32>)
143+
func.func @unsupported_scalable(%arg0 : vector<[8]xi32>) -> (vector<[8]xi32>) {
144+
// CHECK: return %[[ARG0]] : vector<[8]xi32>
145+
return %arg0 : vector<[8]xi32>
146+
}
147+

0 commit comments

Comments
 (0)