Skip to content

Commit 3a17f5c

Browse files
authored
add test
1 parent ef32d01 commit 3a17f5c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mlir/test/Conversion/MathToVCIX/math-to-vcix.mlir

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,14 @@ func.func @log_fixed(%a: vector<8 x f32>, %rvl: i64) -> vector<8 x f32> {
191191
%res = math.log %a : vector<8 x f32>
192192
return %res : vector<8 x f32>
193193
}
194+
195+
// -----
196+
197+
// Ensure this case exit gracefully
198+
199+
// CHECK-LABEL: func.func @no_vector_type
200+
// CHECK: math.cos
201+
func.func @no_vector_type(%arg0: f32) -> f32 {
202+
%0 = math.cos %arg0 : f32
203+
return %0 : f32
204+
}

0 commit comments

Comments
 (0)