From 77937e9bbcd8cc239eb23c2fb0687021d9a8c109 Mon Sep 17 00:00:00 2001 From: Ben Kimock Date: Tue, 2 Apr 2024 12:44:41 -0400 Subject: [PATCH] Enable PowerPC tests --- build.rs | 6 ------ src/lib.rs | 2 -- src/math/ceilf.rs | 2 -- src/math/fabsf.rs | 2 -- src/math/floorf.rs | 2 -- src/math/j1f.rs | 2 -- src/math/rint.rs | 2 -- src/math/rintf.rs | 2 -- src/math/roundf.rs | 2 -- src/math/sincosf.rs | 2 -- src/math/sqrtf.rs | 2 -- src/math/truncf.rs | 2 -- 12 files changed, 28 deletions(-) diff --git a/build.rs b/build.rs index 80145a9cc..61f23385c 100644 --- a/build.rs +++ b/build.rs @@ -61,12 +61,6 @@ mod musl_reference_tests { } pub fn generate() { - // PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520 - let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap(); - if target_arch == "powerpc64" { - return; - } - let files = fs::read_dir("src/math") .unwrap() .map(|f| f.unwrap().path()) diff --git a/src/lib.rs b/src/lib.rs index 1f23ef8a8..590e3002a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,7 +54,5 @@ pub fn _eq(a: f64, b: f64) -> Result<(), u64> { } } -// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520 -#[cfg(not(target_arch = "powerpc64"))] #[cfg(all(test, feature = "musl-reference-tests"))] include!(concat!(env!("OUT_DIR"), "/musl-tests.rs")); diff --git a/src/math/ceilf.rs b/src/math/ceilf.rs index 7bcc647ca..f1edbd061 100644 --- a/src/math/ceilf.rs +++ b/src/math/ceilf.rs @@ -40,8 +40,6 @@ pub fn ceilf(x: f32) -> f32 { f32::from_bits(ui) } -// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520 -#[cfg(not(target_arch = "powerpc64"))] #[cfg(test)] mod tests { use super::*; diff --git a/src/math/fabsf.rs b/src/math/fabsf.rs index 23f3646dc..6655c4c3c 100644 --- a/src/math/fabsf.rs +++ b/src/math/fabsf.rs @@ -14,8 +14,6 @@ pub fn fabsf(x: f32) -> f32 { f32::from_bits(x.to_bits() & 0x7fffffff) } -// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520 -#[cfg(not(target_arch = "powerpc64"))] #[cfg(test)] mod tests { use super::*; diff --git a/src/math/floorf.rs b/src/math/floorf.rs index dfdab91a0..287f08642 100644 --- a/src/math/floorf.rs +++ b/src/math/floorf.rs @@ -40,8 +40,6 @@ pub fn floorf(x: f32) -> f32 { f32::from_bits(ui) } -// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520 -#[cfg(not(target_arch = "powerpc64"))] #[cfg(test)] mod tests { use super::*; diff --git a/src/math/j1f.rs b/src/math/j1f.rs index c39f8ff7e..80b842f66 100644 --- a/src/math/j1f.rs +++ b/src/math/j1f.rs @@ -357,8 +357,6 @@ fn qonef(x: f32) -> f32 { return (0.375 + r / s) / x; } -// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520 -#[cfg(not(target_arch = "powerpc64"))] #[cfg(test)] mod tests { use super::{j1f, y1f}; diff --git a/src/math/rint.rs b/src/math/rint.rs index 8edbe3440..41234c61c 100644 --- a/src/math/rint.rs +++ b/src/math/rint.rs @@ -35,8 +35,6 @@ pub fn rint(x: f64) -> f64 { } } -// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520 -#[cfg(not(target_arch = "powerpc64"))] #[cfg(test)] mod tests { use super::rint; diff --git a/src/math/rintf.rs b/src/math/rintf.rs index 7a7da618a..93a0d0abd 100644 --- a/src/math/rintf.rs +++ b/src/math/rintf.rs @@ -35,8 +35,6 @@ pub fn rintf(x: f32) -> f32 { } } -// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520 -#[cfg(not(target_arch = "powerpc64"))] #[cfg(test)] mod tests { use super::rintf; diff --git a/src/math/roundf.rs b/src/math/roundf.rs index becdb5620..c0872a782 100644 --- a/src/math/roundf.rs +++ b/src/math/roundf.rs @@ -7,8 +7,6 @@ pub fn roundf(x: f32) -> f32 { truncf(x + copysignf(0.5 - 0.25 * f32::EPSILON, x)) } -// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520 -#[cfg(not(target_arch = "powerpc64"))] #[cfg(test)] mod tests { use super::roundf; diff --git a/src/math/sincosf.rs b/src/math/sincosf.rs index 9a4c36104..a8c284da7 100644 --- a/src/math/sincosf.rs +++ b/src/math/sincosf.rs @@ -123,8 +123,6 @@ pub fn sincosf(x: f32) -> (f32, f32) { } } -// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520 -#[cfg(not(target_arch = "powerpc64"))] #[cfg(test)] mod tests { use super::sincosf; diff --git a/src/math/sqrtf.rs b/src/math/sqrtf.rs index 8ec72fbf7..88e0015df 100644 --- a/src/math/sqrtf.rs +++ b/src/math/sqrtf.rs @@ -128,8 +128,6 @@ pub fn sqrtf(x: f32) -> f32 { } } -// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520 -#[cfg(not(target_arch = "powerpc64"))] #[cfg(test)] mod tests { use super::*; diff --git a/src/math/truncf.rs b/src/math/truncf.rs index 20d5b73bd..a4c001629 100644 --- a/src/math/truncf.rs +++ b/src/math/truncf.rs @@ -31,8 +31,6 @@ pub fn truncf(x: f32) -> f32 { f32::from_bits(i) } -// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520 -#[cfg(not(target_arch = "powerpc64"))] #[cfg(test)] mod tests { #[test]