Skip to content

Commit

Permalink
Merge pull request #4202 from laytan/add-fixed-point-dependency
Browse files Browse the repository at this point in the history
add fixed point sign extend to 128 int deps
  • Loading branch information
gingerBill authored Sep 5, 2024
2 parents a99e57c + 490f8c1 commit 78506b9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/check_builtin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 78506b9

Please sign in to comment.