libm icon indicating copy to clipboard operation
libm copied to clipboard

Specific test failures

Open tgross35 opened this issue 11 months ago • 12 comments

Just making a list of failures that should be turned into xfails or fixed.

My loose plan is to put all of these into a single test file and assert that they fail, then if they get fixed they can be converted to test cases.


i586-unknown-linux-gnu from on https://github.com/rust-lang/libm/pull/379, musl's result is more accurate.

thread 'musl_random_asinhf' panicked at crates/libm-test/tests/compare_built_musl.rs:43:51:
called `Result::unwrap()` on an `Err` value:
    input:    (-0.37330312,) (0xbebf2196,)
    expected: -0.36513534            0xbebaf305
    actual:   -0.36513525            0xbebaf302

i686-unknown-linux-gnu from on https://github.com/rust-lang/libm/pull/379, musl has the incorrect result here. Not sure why this would be, is compiler-rt incorrect?

 thread 'musl_random_fdim' panicked at crates/libm-test/tests/compare_built_musl.rs:43:51:
called `Result::unwrap()` on an `Err` value: 
    input:    (5.1720626866622296e88, -5.1749184040104636e103) (0x5259ffdf64f0d2f8, 0xd5771addd21280b5)
    expected: 5.174918404010469e103  0x55771addd21280bc
    actual:   5.174918404010468e103  0x55771addd21280bb

Caused by:
    ulp 1 > 0

tgross35 avatar Jan 06 '25 01:01 tgross35