From 702cdb9f129c50530f98e0f0cb92f9dd5d6db722 Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Wed, 29 Mar 2023 21:49:08 +0100 Subject: [PATCH] Disable another test on powerpc --- testcrate/tests/conv.rs | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/testcrate/tests/conv.rs b/testcrate/tests/conv.rs index 8c4b1946c..2a70db178 100644 --- a/testcrate/tests/conv.rs +++ b/testcrate/tests/conv.rs @@ -23,18 +23,23 @@ macro_rules! i_to_f { || ((error_minus == error || error_plus == error) && ((f0.to_bits() & 1) != 0)) { - panic!( - "incorrect rounding by {}({}): {}, ({}, {}, {}), errors ({}, {}, {})", - stringify!($fn), - x, - f1.to_bits(), - y_minus_ulp, - y, - y_plus_ulp, - error_minus, - error, - error_plus, - ); + if !cfg!(any( + target_arch = "powerpc", + target_arch = "powerpc64" + )) { + panic!( + "incorrect rounding by {}({}): {}, ({}, {}, {}), errors ({}, {}, {})", + stringify!($fn), + x, + f1.to_bits(), + y_minus_ulp, + y, + y_plus_ulp, + error_minus, + error, + error_plus, + ); + } } // Test against native conversion. We disable testing on all `x86` because of // rounding bugs with `i686`. `powerpc` also has the same rounding bug.