Closed
Description
The following assertion passes on rustc, but fails in Miri:
fn main() {
let neg_inf: f32 = f32::NEG_INFINITY;
assert_eq!((-3.2f32).mul_add(2.4, neg_inf), neg_inf);
}
Miri uses the mul_add
from apfloat (the Rust port of LLVM's softfloat library) to implement FMA, and somehow apfloat seems to be wrong? Cc @eddyb @workingjubilee
Metadata
Metadata
Assignees
Labels
No labels