diff options
author | Dale Johannesen <dalej@apple.com> | 2007-11-17 01:02:27 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-11-17 01:02:27 +0000 |
commit | d0763b91594982752db9f3eabbb2ea40867ca88a (patch) | |
tree | 8cda09f0cd58621b72867850af6e226b6d5a9b37 /lib/Support | |
parent | 07cad1c6ceebd108db87309814c8dc47041c58c3 (diff) |
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
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/APFloat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index c724f9b962..b84f64a423 100644 --- a/lib/Support/APFloat.cpp +++ b/lib/Support/APFloat.cpp @@ -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; |