Skip to content

Commit 0b9bbd6

Browse files
authored
Merge pull request rust-lang#524 from Amanieu/fix-ppc
2 parents 828af90 + 702cdb9 commit 0b9bbd6

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

testcrate/tests/conv.rs

+17-12
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,23 @@ macro_rules! i_to_f {
2323
|| ((error_minus == error || error_plus == error)
2424
&& ((f0.to_bits() & 1) != 0))
2525
{
26-
panic!(
27-
"incorrect rounding by {}({}): {}, ({}, {}, {}), errors ({}, {}, {})",
28-
stringify!($fn),
29-
x,
30-
f1.to_bits(),
31-
y_minus_ulp,
32-
y,
33-
y_plus_ulp,
34-
error_minus,
35-
error,
36-
error_plus,
37-
);
26+
if !cfg!(any(
27+
target_arch = "powerpc",
28+
target_arch = "powerpc64"
29+
)) {
30+
panic!(
31+
"incorrect rounding by {}({}): {}, ({}, {}, {}), errors ({}, {}, {})",
32+
stringify!($fn),
33+
x,
34+
f1.to_bits(),
35+
y_minus_ulp,
36+
y,
37+
y_plus_ulp,
38+
error_minus,
39+
error,
40+
error_plus,
41+
);
42+
}
3843
}
3944
// Test against native conversion. We disable testing on all `x86` because of
4045
// rounding bugs with `i686`. `powerpc` also has the same rounding bug.

0 commit comments

Comments
 (0)