aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2021-05-29 15:33:11 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2021-05-29 15:33:11 +0200
commit6944e2fc04cd5c0d8913e11df3202196c4344a49 (patch)
tree9ad3130f1b603143e6c7ac0486365a3ba368096a /src/check_builtin.cpp
parentc8b353b6d8ac03a887a2e141243192cbbf5a9ea9 (diff)
Add abs_f16 dependency when used.
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index 1630b5b7d..ccc234af9 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -1406,6 +1406,7 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
{
Type *bt = base_type(operand->type);
+ if (are_types_identical(bt, t_f16)) add_package_dependency(c, "runtime", "abs_f16");
if (are_types_identical(bt, t_f32)) add_package_dependency(c, "runtime", "abs_f32");
if (are_types_identical(bt, t_f64)) add_package_dependency(c, "runtime", "abs_f64");
if (are_types_identical(bt, t_complex64)) add_package_dependency(c, "runtime", "abs_complex64");