Skip to content
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: Double::mul_add_r panic with specific values #93225

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions compiler/rustc_apfloat/tests/ieee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,14 @@ fn fma() {
}
}

#[test]
fn issue_93224() {
let r1 = Double::from_bits(0x000000000000002D as u128);
let r2 = Double::from_bits(0xC2D6C16C166666DE as u128);
let r3 = Double::from_bits(0x0000000000000055 as u128);

let _ = r1.mul_add_r(r2, r3, Round::NearestTiesToEven);
}
#[test]
fn issue_69532() {
let f = Double::from_bits(0x7FF0_0000_0000_0001u64 as u128);
Expand Down