[APFloat] Fix subtraction of subnormal numbers
authorEhud Katz <ehudkatz@gmail.com>
Sun, 3 Nov 2019 15:28:54 +0000 (17:28 +0200)
committerEhud Katz <ehudkatz@gmail.com>
Fri, 22 Nov 2019 19:17:11 +0000 (21:17 +0200)
commite62555c129d535d524354351791c5474c9929582
tree45c2b1575ccad7f48ea02f19be6b076a00611255
parent718d68e6ca874fcb8a720790c899fa311f15675a
[APFloat] Fix subtraction of subnormal numbers

Fix incorrect determination of the bigger number out of the two
subtracted, while subnormal numbers are involved.
Fixes PR44010.

Differential Revision: https://reviews.llvm.org/D69772
llvm/lib/Support/APFloat.cpp
llvm/unittests/ADT/APFloatTest.cpp