Update allowed precision to account for new tests
This commit is contained in:
@@ -41,10 +41,11 @@ pub fn default_ulp(ctx: &CheckCtx) -> u32 {
|
||||
(Musl, Id::Tgamma) => 20,
|
||||
|
||||
// Overrides for MPFR
|
||||
(Mpfr, Id::Acosh) => 4,
|
||||
(Mpfr, Id::Acoshf) => 4,
|
||||
(Mpfr, Id::Asinh | Id::Asinhf) => 2,
|
||||
(Mpfr, Id::Atanh | Id::Atanhf) => 2,
|
||||
(Mpfr, Id::Exp10 | Id::Exp10f) => 3,
|
||||
(Mpfr, Id::Exp10 | Id::Exp10f) => 6,
|
||||
(Mpfr, Id::Lgamma | Id::LgammaR | Id::Lgammaf | Id::LgammafR) => 16,
|
||||
(Mpfr, Id::Sinh | Id::Sinhf) => 2,
|
||||
(Mpfr, Id::Tanh | Id::Tanhf) => 2,
|
||||
@@ -105,17 +106,14 @@ impl MaybeOverride<(f32,)> for SpecialCase {
|
||||
_ulp: &mut u32,
|
||||
ctx: &CheckCtx,
|
||||
) -> Option<TestResult> {
|
||||
if ctx.basis == CheckBasis::Musl {
|
||||
if ctx.base_name == BaseName::Expm1 && input.0 > 80.0 && actual.is_infinite() {
|
||||
// we return infinity but the number is representable
|
||||
return XFAIL;
|
||||
}
|
||||
if ctx.base_name == BaseName::Expm1 && input.0 > 80.0 && actual.is_infinite() {
|
||||
// we return infinity but the number is representable
|
||||
return XFAIL;
|
||||
}
|
||||
|
||||
if ctx.base_name == BaseName::Sinh && input.0.abs() > 80.0 && actual.is_nan() {
|
||||
// we return some NaN that should be real values or infinite
|
||||
// doesn't seem to happen on x86
|
||||
return XFAIL;
|
||||
}
|
||||
if ctx.base_name == BaseName::Sinh && input.0.abs() > 80.0 && actual.is_nan() {
|
||||
// we return some NaN that should be real values or infinite
|
||||
return XFAIL;
|
||||
}
|
||||
|
||||
if ctx.base_name == BaseName::Acosh && input.0 < -1.0 {
|
||||
|
||||
Reference in New Issue
Block a user