diff options
author | Joseph Myers | 2020-05-05 01:39:39 +0200 |
---|---|---|
committer | Richard Henderson | 2020-05-15 20:04:50 +0200 |
commit | be53fa785ab766d2722628403edee75b3e6ab599 (patch) | |
tree | 17bd6e1126e4ce4005f5f70b005f25d6092d1a7c /tests/tcg | |
parent | softfloat: fix floatx80 pseudo-denormal addition / subtraction (diff) | |
download | qemu-be53fa785ab766d2722628403edee75b3e6ab599.tar.gz qemu-be53fa785ab766d2722628403edee75b3e6ab599.tar.xz qemu-be53fa785ab766d2722628403edee75b3e6ab599.zip |
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>
Diffstat (limited to 'tests/tcg')
-rw-r--r-- | tests/tcg/i386/test-i386-pseudo-denormal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tcg/i386/test-i386-pseudo-denormal.c b/tests/tcg/i386/test-i386-pseudo-denormal.c index cfa2a500b0..acf2b9cf03 100644 --- a/tests/tcg/i386/test-i386-pseudo-denormal.c +++ b/tests/tcg/i386/test-i386-pseudo-denormal.c @@ -20,5 +20,9 @@ int main(void) printf("FAIL: pseudo-denormal add\n"); ret = 1; } + if (ld_pseudo_m16382.ld != 0x1p-16382L) { + printf("FAIL: pseudo-denormal compare\n"); + ret = 1; + } return ret; } |