1
Fork 0

Backport LLVM apfloat commit to rustc_apfloat

Backports LLVM commit: e34bd1e0b0

Fixes #69532
This commit is contained in:
est31 2020-09-30 17:46:18 +02:00
parent c6e4db620a
commit 7f5008c829
3 changed files with 45 additions and 0 deletions

View file

@ -566,6 +566,15 @@ fn fma() {
}
}
#[test]
fn issue_69532() {
let f = Double::from_bits(0x7FF0_0000_0000_0001u64 as u128);
let mut loses_info = false;
let r: Single = f.convert(&mut loses_info).value;
assert!(loses_info);
assert!(r.is_nan());
}
#[test]
fn min_num() {
let f1 = Double::from_f64(1.0);