mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
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:
parent
07cad1c6ce
commit
d0763b9159
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user