Fix denormal check in float->APInt conversion.

PR 1804.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44201 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dale Johannesen 2007-11-17 01:02:27 +00:00
parent 07cad1c6ce
commit d0763b9159

View File

@ -2551,7 +2551,7 @@ APFloat::convertFloatAPFloatToAPInt() const
if (category==fcNormal) {
myexponent = exponent+127; //bias
mysignificand = *significandParts();
if (myexponent == 1 && !(mysignificand & 0x400000))
if (myexponent == 1 && !(mysignificand & 0x800000))
myexponent = 0; // denormal
} else if (category==fcZero) {
myexponent = 0;