mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 07:05:03 +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
|
APFloat APF = APFloat(CFP->getValueAPF()); // copy
|
||||||
if (CFP->getType() == Type::getFloatTy(CFP->getContext()))
|
if (CFP->getType() == Type::getFloatTy(CFP->getContext()))
|
||||||
APF.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &ignored);
|
APF.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &ignored);
|
||||||
Out << "ConstantFP::get(";
|
Out << "ConstantFP::get(getGlobalContext(), ";
|
||||||
Out << "APFloat(";
|
Out << "APFloat(";
|
||||||
#if HAVE_PRINTF_A
|
#if HAVE_PRINTF_A
|
||||||
char Buffer[100];
|
char Buffer[100];
|
||||||
@ -1214,7 +1214,7 @@ namespace {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Instruction::FCmp: {
|
case Instruction::FCmp: {
|
||||||
Out << "FCmpInst* " << iName << " = new FCmpInst(";
|
Out << "FCmpInst* " << iName << " = new FCmpInst(*" << bbname << ", ";
|
||||||
switch (cast<FCmpInst>(I)->getPredicate()) {
|
switch (cast<FCmpInst>(I)->getPredicate()) {
|
||||||
case FCmpInst::FCMP_FALSE: Out << "FCmpInst::FCMP_FALSE"; break;
|
case FCmpInst::FCMP_FALSE: Out << "FCmpInst::FCMP_FALSE"; break;
|
||||||
case FCmpInst::FCMP_OEQ : Out << "FCmpInst::FCMP_OEQ"; break;
|
case FCmpInst::FCMP_OEQ : Out << "FCmpInst::FCMP_OEQ"; break;
|
||||||
@ -1236,7 +1236,7 @@ namespace {
|
|||||||
}
|
}
|
||||||
Out << ", " << opNames[0] << ", " << opNames[1] << ", \"";
|
Out << ", " << opNames[0] << ", " << opNames[1] << ", \"";
|
||||||
printEscapedString(I->getName());
|
printEscapedString(I->getName());
|
||||||
Out << "\", " << bbname << ");";
|
Out << "\");";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Instruction::ICmp: {
|
case Instruction::ICmp: {
|
||||||
|
Loading…
Reference in New Issue
Block a user