softfloat: fix floatx80 pseudo-denormal comparisons
commitbe53fa785ab766d2722628403edee75b3e6ab599
authorJoseph Myers <joseph@codesourcery.com>
Mon, 4 May 2020 23:39:39 +0000 (4 23:39 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 15 May 2020 18:04:50 +0000 (15 11:04 -0700)
tree17bd6e1126e4ce4005f5f70b005f25d6092d1a7c
parent41602807766e253ccb6fb761f3ff12767f786e2c
softfloat: fix floatx80 pseudo-denormal comparisons

The softfloat floatx80 comparisons fail to allow for pseudo-denormals,
which should compare equal to corresponding values with biased
exponent 1 rather than 0.  Add an adjustment for that case when
comparing numbers with the same sign.

Signed-off-by: Joseph Myers <joseph@codesourcery.com>
Message-Id: <alpine.DEB.2.21.2005042338470.22972@digraph.polyomino.org.uk>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
fpu/softfloat.c
tests/tcg/i386/test-i386-pseudo-denormal.c