projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07cad1c
)
Fix denormal check in float->APInt conversion.
author
Dale Johannesen
<dalej@apple.com>
Sat, 17 Nov 2007 01:02:27 +0000
(
01:02
+0000)
committer
Dale Johannesen
<dalej@apple.com>
Sat, 17 Nov 2007 01:02:27 +0000
(
01:02
+0000)
PR 1804.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44201
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/APFloat.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/APFloat.cpp
b/lib/Support/APFloat.cpp
index c724f9b96282453c6efaaf571d04247de130126a..b84f64a4239d767380be93480b49802ccd0d5713 100644
(file)
--- 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 & 0x
4
00000))
+ if (myexponent == 1 && !(mysignificand & 0x
8
00000))
myexponent = 0; // denormal
} else if (category==fcZero) {
myexponent = 0;