- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined symbol: ___floatunoitf #22667
Comments
Here's a bit of a cleaner reproduction that makes the issue more obvious: test "___floatunoitf" {
_ = foo(20);
}
fn foo(p: u256) f128 {
return @floatFromInt(p);
} |
The strange Lines 677 to 685 in 7d699be
LLVM doesn't implement anything with |
switching to BigRational in 26a79a0 resulted in a fairly large performance regression, using a Rational(u256) mitigates most of this (6-7x faster). Unfortunately, the u256 field trips an issue with Zig's compiler_rt support: ziglang/zig#22667. Not the end of the world given its only in the debugging code so it can just be commented out temporarily
Some more info:
test "bar" {
_ = foo(20);
}
fn foo(p: u256) f64 {
return @floatFromInt(p);
}
|
Zig Version
0.14.0-dev.2987+183bb8b08
Steps to Reproduce and Observed Behavior
Expected Behavior
Passing test. Switching from
u256
->u128
works.#15057 appears to be the same issue that was closed for not being able to reproduce, but it definitely reproduces on 0.11.0, 0.12.0, 0.13.0, and master for me.
The text was updated successfully, but these errors were encountered: