[TOSA] Add todtype f32 to i64 (#2012)

pull/2014/head snapshot-20230408.802
Chi_Liu 2023-04-07 09:40:56 -07:00 committed by GitHub
parent 4df1d8ae2f
commit 975815216f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -235,6 +235,7 @@ static LogicalResult checkValidityOfCast(Type src, Type dest) {
(src.isF32() && dest.isF64()) ||
(src.isF64() && dest.isF32()) ||
(src.isF32() && dest.isInteger(8)) ||
(src.isF32() && dest.isInteger(64)) ||
(src.isF32() && dest.isInteger(1))) {
return success();
}