Add missing test cases for __unordsf2/__unorddf2

This commit is contained in:
Paolo Teti 2018-02-25 18:35:36 +01:00
parent 28c57e7212
commit 944ab5cb92
1 changed files with 12 additions and 0 deletions

View File

@ -143,6 +143,18 @@ fn main() {
}, },
"compiler_builtins::float::cmp::__lesf2(a, b)"); "compiler_builtins::float::cmp::__lesf2(a, b)");
gen(|(a, b): (MyF32, MyF32)| {
let c = a.0.is_nan() || b.0.is_nan();
Some(c as i32)
},
"compiler_builtins::float::cmp::__unordsf2(a, b)");
gen(|(a, b): (MyF64, MyF64)| {
let c = a.0.is_nan() || b.0.is_nan();
Some(c as i32)
},
"compiler_builtins::float::cmp::__unorddf2(a, b)");
if target_arch_arm { if target_arch_arm {
gen(|(a, b): (MyF32, MyF32)| { gen(|(a, b): (MyF32, MyF32)| {
if a.0.is_nan() || b.0.is_nan() { if a.0.is_nan() || b.0.is_nan() {