Skip to content

Commit

Permalink
fixup! 5c220a7
Browse files Browse the repository at this point in the history
Co-authored-by: beetrees <b@beetr.ee>
  • Loading branch information
tgross35 and beetrees authored Oct 28, 2024
1 parent f6f5946 commit 15b2ad5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/libm-test/src/special_case.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,11 @@ fn maybe_check_nan_bits<F: Float>(actual: F, expected: F, ctx: &CheckCtx) -> Opt
return None;
}

// The musl implementations uses x87 instructions on i686 which quiets signaling NaNs
if cfg!(target_arch = "x86") && ctx.basis == CheckBasis::Musl && ctx.canonical_name == "fabs" {
// LLVM currently uses x87 instructions which quieten signalling NaNs to handle the i686
// `extern "C"` `f32`/`f64` return ABI.
// LLVM issue </~https://github.com/llvm/llvm-project/issues/66803>
// Rust issue </~https://github.com/rust-lang/rust/issues/115567>
if cfg!(target_arch = "x86") && ctx.basis == CheckBasis::Musl {
return SKIP;
}

Expand Down

0 comments on commit 15b2ad5

Please sign in to comment.