Revise previous patch per review comments.

Next round of x87 long double stuff.
Getting close now, basically works.

llvm-svn: 41875
This commit is contained in:
Dale Johannesen
2007-09-12 03:30:33 +00:00
parent 521988b604
commit 028084efe5
15 changed files with 162 additions and 89 deletions

View File

@@ -629,7 +629,6 @@ bool BitcodeReader::ParseConstants() {
V = ConstantFP::get(CurTy, APFloat(APInt(32, (uint32_t)Record[0])));
else if (CurTy == Type::DoubleTy)
V = ConstantFP::get(CurTy, APFloat(APInt(64, Record[0])));
// FIXME: Make long double constants work. BitsToDouble does not make it.
else if (CurTy == Type::X86_FP80Ty)
V = ConstantFP::get(CurTy, APFloat(APInt(80, 2, &Record[0])));
else if (CurTy == Type::FP128Ty)