ftmemsim-valgrind/none/tests/mips32/test_math.stdout.exp
Stefan Maksimovic 3e0e34aecd mips64: rework math tests to take into account allowed approximation
Change the math tests to check whether the results are approximate to the
expected values instead of checking for exact matches since the calculations
in question are allowed to be approximate.

This fixes
  /none/tests/mips64/test_math and
  /none/tests/mips64/msa_fpu

on mips64r6.
2020-01-17 12:58:07 +00:00

56 lines
1.5 KiB
Plaintext

fesetround(FE_UPWARD)
lrint(1234.01): 1235
lrintf(1234.01f): 1235
lrintl(1234.01): 1235
fesetround(FE_TOWARDZERO)
lrint(1234.01): 1234
lrintf(1234.01f): 1234
lrintl(1234.01): 1234
fesetround(FE_UPWARD)
llrint(1234.01): 1235
llrintf(1234.01f): 1235
llrintf(1234.01f): 1235
fesetround(FE_TOWARDZERO)
llrint(1234.01): 1234
llrintf(1234.01f): 1234
llrintl(1234.01): 1234
fesetround(FE_UPWARD)
feclearexcept(FE_ALL_EXCEPT)
rint(1234.0): 1234.000000
(fetestexcept(FE_ALL_EXCEPT) & FE_INEXACT): 0
rint(1234.01): 1235.000000
(fetestexcept(FE_ALL_EXCEPT) & FE_INEXACT): 4
feclearexcept(FE_ALL_EXCEPT)
rintf(1234.0f): 1234.000000
(fetestexcept(FE_ALL_EXCEPT) & FE_INEXACT): 0
rintf(1234.01f): 1235.000000
(fetestexcept(FE_ALL_EXCEPT) & FE_INEXACT): 4
feclearexcept(FE_ALL_EXCEPT)
rintl(1234.0): 1234.000000
(fetestexcept(FE_ALL_EXCEPT) & FE_INEXACT): 0
rintl(1234.01): 1235.000000
(fetestexcept(FE_ALL_EXCEPT) & FE_INEXACT): 4
fesetround(FE_TOWARDZERO)
rint(1234.01): 1234.000000
rintf(1234.01f): 1234.000000
rintl(1234.01): 1234.000000
fesetround(FE_UPWARD)
feclearexcept(FE_ALL_EXCEPT)
nearbyint(1234.0): 1234.000000
nearbyint(1234.01): 1235.000000
feclearexcept(FE_ALL_EXCEPT)
nearbyintf(1234.0f): 1234.000000
nearbyintf(1234.01f): 1235.000000
feclearexcept(FE_ALL_EXCEPT)
nearbyintl(1234.0f): 1234.000000
nearbyintl(1234.01f): 1235.000000
fesetround(FE_TOWARDZERO)
nearbyint(1234.01): 1234.000000
nearbyintf(1234.01f): 1234.000000
nearbyintl(1234.01): 1234.000000
log(M_E): 1.000000
tgamma(5.0): PASS
cbrt(27.0): PASS
feclearexcept(FE_ALL_EXCEPT): 0
raised: 32