aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-05-03 18:48:48 +0100
committergingerBill <bill@gingerbill.org>2021-05-03 18:48:48 +0100
commitd027a5f1a470233a0307bcf3c7c4fe0b6494cd87 (patch)
treea8409bbd5d40e66503b60061dbbf12f5ed0396a0 /src/check_builtin.cpp
parent746e880eb521e6cf5b6a452004da9bc5d2095076 (diff)
Add min_f16 and max_f16 dependencies
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index 898239234..6b299a68a 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -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");