qemu-patch-raspberry4/tests/fp
Richard Henderson 2fa3546c8f softfloat: Move floatN_log2 to softfloat-parts.c.inc
Rename to parts$N_log2.  Though this is partly a ruse, since I do not
believe the code will succeed for float128 without work.  Which is ok
for now, because we do not need this for more than float32 and float64.

Since berkeley-testfloat-3 doesn't support log2, compare float64_log2
vs the system log2.  Fix the errors for inputs near 1.0:

test: 3ff00000000000b0  +0x1.00000000000b0p+0
  sf: 3d2fa00000000000  +0x1.fa00000000000p-45
libm: 3d2fbd422b1bd36f  +0x1.fbd422b1bd36fp-45
Error in fraction: 32170028290927 ulp

test: 3feec24f6770b100  +0x1.ec24f6770b100p-1
  sf: bfad3740d13c9ec0  -0x1.d3740d13c9ec0p-5
libm: bfad3740d13c9e98  -0x1.d3740d13c9e98p-5
Error in fraction: 40 ulp

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2021-06-03 14:09:02 -07:00
..
berkeley-softfloat-3@b64af41c32 gitmodules: add berkeley's softfloat + testfloat version 3 2018-10-05 12:57:41 -05:00
berkeley-testfloat-3@5a59dcec19 berkeley-testfloat-3: pull changes 2019-01-22 20:47:57 +00:00
fp-bench.c softfloat: Move muladd_floats to softfloat-parts.c.inc 2021-05-16 07:13:51 -05:00
fp-test-log2.c softfloat: Move floatN_log2 to softfloat-parts.c.inc 2021-06-03 14:09:02 -07:00
fp-test.c tests/fp/fp-test: Reverse order of floatx80 precision tests 2021-06-03 14:09:02 -07:00
meson.build softfloat: Move floatN_log2 to softfloat-parts.c.inc 2021-06-03 14:09:02 -07:00
platform.h tests/fp/platform.h: include config-host.h 2019-01-22 20:48:15 +00:00
wrap.c.inc softfloat: Move muladd_floats to softfloat-parts.c.inc 2021-05-16 07:13:51 -05:00