Add min_f16 and max_f16 dependencies

This commit is contained in:
gingerBill
2021-05-03 18:48:48 +01:00
parent 746e880eb5
commit d027a5f1a4
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -1509,6 +1509,10 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
{
Type *bt = base_type(x.type);
if (are_types_identical(bt, t_f16)) {
add_package_dependency(c, "runtime", "min_f16");
add_package_dependency(c, "runtime", "max_f16");
}
if (are_types_identical(bt, t_f32)) {
add_package_dependency(c, "runtime", "min_f32");
add_package_dependency(c, "runtime", "max_f32");