fixes float to 128-bit int/uint conversion

This commit is contained in:
Mihail Moskov
2026-08-12 19:25:46 +03:00
parent 79c2c65bb1
commit 6a81351de3
4 changed files with 144 additions and 53 deletions

View File

@@ -3982,7 +3982,7 @@ gb_internal void check_cast(CheckerContext *c, Operand *x, Type *type, bool forb
add_package_dependency(c, "runtime", "floattidf", REQUIRE);
} else if (is_type_integer_128bit(dst) && is_type_float(src)) {
add_package_dependency(c, "runtime", "fixunsdfti", REQUIRE);
add_package_dependency(c, "runtime", "fixunsdfdi", REQUIRE);
add_package_dependency(c, "runtime", "fixdfti", REQUIRE);
} else if (src == t_f16 && is_type_float(dst)) {
add_package_dependency(c, "runtime", "gnu_h2f_ieee", REQUIRE);
add_package_dependency(c, "runtime", "extendhfsf2", REQUIRE);