diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-09-05 15:55:55 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-09-05 15:55:55 +0200 |
| commit | 490f8c15680ef62c4180940d8a41711a92cbdb0c (patch) | |
| tree | 90767f81c14abf44812144b2039a1fd17acbf217 /src/check_builtin.cpp | |
| parent | a99e57c62c1c2d6b0e7a5fcd841eba79e9255d5b (diff) | |
add fixed point sign extend to 128 int deps
Diffstat (limited to 'src/check_builtin.cpp')
| -rw-r--r-- | src/check_builtin.cpp | 10 |
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; } |