aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-09-05 15:55:55 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2024-09-05 15:55:55 +0200
commit490f8c15680ef62c4180940d8a41711a92cbdb0c (patch)
tree90767f81c14abf44812144b2039a1fd17acbf217 /src
parenta99e57c62c1c2d6b0e7a5fcd841eba79e9255d5b (diff)
add fixed point sign extend to 128 int deps
Diffstat (limited to 'src')
-rw-r--r--src/check_builtin.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index 910e7ffdb..888aa074d 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -5203,6 +5203,16 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
return false;
}
+ if (sz >= 64) {
+ if (is_type_unsigned(x.type)) {
+ add_package_dependency(c, "runtime", "umodti3", true);
+ add_package_dependency(c, "runtime", "udivti3", true);
+ } else {
+ add_package_dependency(c, "runtime", "modti3", true);
+ add_package_dependency(c, "runtime", "divti3", true);
+ }
+ }
+
operand->type = x.type;
operand->mode = Addressing_Value;
}