-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
rustc_apfloat: Panic in Double::mul_add_r #93224
Comments
Can you reproduce with LLVM's APFloat? Might even be able to trigger it by getting LLVM to constant-fold FMA (assuming they have as many checks as we do). |
This test passes Add to TEST(APFloatTest, FMA_issue_93224) {
uint64_t u1 = 0x000000000000002D;
uint64_t u2 = 0xC2D6C16C166666DE;
uint64_t u3 = 0x0000000000000055;
APFloat f1(*((double*)&u1));
APFloat f2(*((double*)&u2));
APFloat f3(*((double*)&u3));
f1.fusedMultiplyAdd(f2, f3, APFloat::rmNearestTiesToEven);
} |
@mjdr Did you enable LLVM assertions? I think I independently (re)investigated this bug just now (because fuzzing found it again), and a C++ EDIT: forgot it's not fixed yet, but will be once I advance the port enough to reach the upstream fix. |
I posted a longer update to #55993 (comment) regarding the progress with the whole |
I tried this code and get a panic:
Meta
Commit: master 17d29dc
Backtrace
The text was updated successfully, but these errors were encountered: