Uh oh!
There was an error while loading. Please reload this page.
Deduplicated float tests and unified in floats/mod.rs - #148206
Conversation
rustbot
commented
Oct 28, 2025
|
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
xonx4l
commented
Nov 11, 2025
Any update @bjorn3 ? |
bjorn3
commented
Nov 11, 2025
CI is still failing. |
xonx4l
commented
Nov 11, 2025
ok let me fix . |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
rustbot
commented
Nov 14, 2025
Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 |
b802b19 to
abd73fdCompare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| let inf: Float = Float::INFINITY; | ||
| let neg_inf: Float = Float::NEG_INFINITY; | ||
| assert_biteq!((10.0 as Float).log(10.0), 1.0); | ||
| assert_approx_eq!((2.3 as Float).log(3.5), 0.664858, Float::LOG_APPROX); |
There was a problem hiding this comment.
This test here for f128 will fail because the precision is much higher, if you look at the original test, the expected value is much more precise than what you have written:
assert_approx_eq!(2.3f128.log(3.5),0.66485771361478710036766645911922010272,TOL);When testing higher precision floats, you need much more precise expected values or the tests will fail, as they do now. In Miri, this is even more strict.
If you look at the source of f16 constants, they use much more digits after the decimal point than needed:
pubconstPI:f16 = 3.14159265358979323846264338327950288_f16;So you should probably do that as well.
There was a problem hiding this comment.
Okay it makes sense . Thanks
tgross35
commented
Nov 19, 2025
Thank you for the final cleanup here. Until CI is fixed, |
rustbot
commented
Nov 19, 2025
Reminder, once the PR becomes ready for a review, use |
xonx4l
commented
Nov 19, 2025
Will finish this as soon as possible . A bit busy these days. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
0f27f23 to
507fb72CompareDeduplicated float tests and unified in floats/mod.rs try-job: aarch64-apple try-job: x86_64-mingw-1
This comment has been minimized.
This comment has been minimized.
💔 Test for 7250dcf failed: CI. Failed job:
|
xonx4l
commented
Jan 31, 2026
@tgross35 what you suggest for these macOS linker errors? |
tgross35
commented
Feb 12, 2026
Sorry, I've been a bit busy. It looks like 451738f got wiped away, could you cherry pick it back? Those look like the right kind of failures. (maybe you know already but in case you don't - if you add |
xonx4l
commented
Feb 12, 2026
Yeah not a problem I myself was busy and I will cherry-pick that commit asap. |
This comment has been minimized.
This comment has been minimized.
tgross35
commented
Feb 12, 2026
You'll need to add the |
tgross35
commented
Feb 13, 2026
@bors try jobs=aarch64-apple,x86_64-mingw-1 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
💔 Test for 014baa1 failed: CI. Failed job:
|
This comment has been minimized.
This comment has been minimized.
rustbot
commented
Feb 15, 2026
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
New float tests in core are failing on clif with issues like the following: Undefined symbols for architecture arm64: "_coshf128", referenced from: __RNvMNtCshY0fR2o0hOA_3std4f128C4f1284coshCs5TKtJxXQNGL_9coretests in coretests-e38519c0cc90db54.coretests.44b6247a565e10d1-cgu.10.rcgu.o "_exp2f128", referenced from: __RNvMNtCshY0fR2o0hOA_3std4f128C4f1284exp2Cs5TKtJxXQNGL_9coretests in coretests-e38519c0cc90db54.coretests.44b6247a565e10d1-cgu.10.rcgu.o ... Disable f128 math unless the symbols are known to be available, which for now is only glibc targets. This matches the LLVM backend.
xonx4l
commented
Feb 16, 2026
@tgross35 If everything looks good you can rerun bors . I hope it passes this time . |
tgross35
commented
Feb 16, 2026
@bors try jobs=aarch64-apple,x86_64-mingw-1 |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Let's try again! Thanks for the updates.
@bors r+ rollup=iffy
xonx4l
commented
Feb 16, 2026
tgross35
commented
Feb 16, 2026
We’re always happy to help, and we appreciate the effort :) |
In this PR Float tests are deduplicated and are unified in floats/mod.rs, as discussed in #141726.
The moved float tests are:
-> test_powf
-> test_exp
-> test_exp2
-> test_ln
-> test_log_generic
-> test_log2
-> test_log10
-> test_asinh
-> test_acosh
-> test_atanh
-> test_gamma
-> test_ln_gamma
Closes: #141726
r? tgross35