Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit d1e9aa0

Browse files
committed
Disable powerpc64 tests which were broken by the LLVM 13 upgrade
1 parent 89eaba1 commit d1e9aa0

File tree

9 files changed

+17
-1
lines changed

9 files changed

+17
-1
lines changed

ci/run-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ run() {
1818
--user $(id -u):$(id -g) \
1919
-e CARGO_HOME=/cargo \
2020
-e CARGO_TARGET_DIR=/target \
21-
-v $(dirname $(dirname `which cargo`)):/cargo \
21+
-v "${HOME}/.cargo":/cargo \
2222
-v `pwd`/target:/target \
2323
-v `pwd`:/checkout:ro \
2424
-v `rustc --print sysroot`:/rust:ro \

src/math/ceilf.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ pub fn ceilf(x: f32) -> f32 {
4040
f32::from_bits(ui)
4141
}
4242

43+
// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520
44+
#[cfg(not(target_arch = "powerpc64"))]
4345
#[cfg(test)]
4446
mod tests {
4547
use super::*;

src/math/fabsf.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ pub fn fabsf(x: f32) -> f32 {
1414
f32::from_bits(x.to_bits() & 0x7fffffff)
1515
}
1616

17+
// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520
18+
#[cfg(not(target_arch = "powerpc64"))]
1719
#[cfg(test)]
1820
mod tests {
1921
use super::*;

src/math/floorf.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ pub fn floorf(x: f32) -> f32 {
4040
f32::from_bits(ui)
4141
}
4242

43+
// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520
44+
#[cfg(not(target_arch = "powerpc64"))]
4345
#[cfg(test)]
4446
mod tests {
4547
use super::*;

src/math/j1f.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ fn qonef(x: f32) -> f32 {
357357
return (0.375 + r / s) / x;
358358
}
359359

360+
// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520
361+
#[cfg(not(target_arch = "powerpc64"))]
360362
#[cfg(test)]
361363
mod tests {
362364
use super::{j1f, y1f};

src/math/roundf.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ pub fn roundf(x: f32) -> f32 {
77
truncf(x + copysignf(0.5 - 0.25 * f32::EPSILON, x))
88
}
99

10+
// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520
11+
#[cfg(not(target_arch = "powerpc64"))]
1012
#[cfg(test)]
1113
mod tests {
1214
use super::roundf;

src/math/sincosf.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ pub fn sincosf(x: f32) -> (f32, f32) {
122122
}
123123
}
124124

125+
// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520
126+
#[cfg(not(target_arch = "powerpc64"))]
125127
#[cfg(test)]
126128
mod tests {
127129
use super::sincosf;

src/math/sqrtf.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ pub fn sqrtf(x: f32) -> f32 {
128128
}
129129
}
130130

131+
// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520
132+
#[cfg(not(target_arch = "powerpc64"))]
131133
#[cfg(test)]
132134
mod tests {
133135
use super::*;

src/math/truncf.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ pub fn truncf(x: f32) -> f32 {
3131
f32::from_bits(i)
3232
}
3333

34+
// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520
35+
#[cfg(not(target_arch = "powerpc64"))]
3436
#[cfg(test)]
3537
mod tests {
3638
#[test]

0 commit comments

Comments
 (0)