llvm.org GIT mirror llvm / d0763b9
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 Dale Johannesen 13 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
25502550 if (category==fcNormal) {
25512551 myexponent = exponent+127; //bias
25522552 mysignificand = *significandParts();
2553 if (myexponent == 1 && !(mysignificand & 0x400000))
2553 if (myexponent == 1 && !(mysignificand & 0x800000))
25542554 myexponent = 0; // denormal
25552555 } else if (category==fcZero) {
25562556 myexponent = 0;