Change LegalFPImmediates to use APFloat.

Add APFloat interfaces to ConstantFP, SelectionDAG.
Fix integer bit in double->APFloat conversion.
Convert LegalizeDAG to use APFloat interface in
ConstantFPSDNode uses.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41587 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dale Johannesen
2007-08-30 00:23:21 +00:00
parent 055c5449a4
commit f04afdbb48
11 changed files with 141 additions and 35 deletions

View File

@@ -1617,7 +1617,7 @@ APFloat::APFloat(double d) {
sign = mysign;
category = fcNormal;
exponent = myexponent - 1023;
*significandParts() = mysignificand | 0x100000000000000LL;
*significandParts() = mysignificand | 0x10000000000000LL;
}
}