mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-27 14:45:50 +00:00
More cpp backend fixes. Now for FP stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79626 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
051cfd683f
commit
d083dfb60b
@ -223,7 +223,7 @@ namespace {
|
||||
APFloat APF = APFloat(CFP->getValueAPF()); // copy
|
||||
if (CFP->getType() == Type::getFloatTy(CFP->getContext()))
|
||||
APF.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &ignored);
|
||||
Out << "ConstantFP::get(";
|
||||
Out << "ConstantFP::get(getGlobalContext(), ";
|
||||
Out << "APFloat(";
|
||||
#if HAVE_PRINTF_A
|
||||
char Buffer[100];
|
||||
@ -1214,7 +1214,7 @@ namespace {
|
||||
break;
|
||||
}
|
||||
case Instruction::FCmp: {
|
||||
Out << "FCmpInst* " << iName << " = new FCmpInst(";
|
||||
Out << "FCmpInst* " << iName << " = new FCmpInst(*" << bbname << ", ";
|
||||
switch (cast<FCmpInst>(I)->getPredicate()) {
|
||||
case FCmpInst::FCMP_FALSE: Out << "FCmpInst::FCMP_FALSE"; break;
|
||||
case FCmpInst::FCMP_OEQ : Out << "FCmpInst::FCMP_OEQ"; break;
|
||||
@ -1236,7 +1236,7 @@ namespace {
|
||||
}
|
||||
Out << ", " << opNames[0] << ", " << opNames[1] << ", \"";
|
||||
printEscapedString(I->getName());
|
||||
Out << "\", " << bbname << ");";
|
||||
Out << "\");";
|
||||
break;
|
||||
}
|
||||
case Instruction::ICmp: {
|
||||
|
Loading…
Reference in New Issue
Block a user