Skip to content

Commit

Permalink
Really drop support for doubledouble on PPC32/64.
Browse files Browse the repository at this point in the history
The IR was still using the doubledouble type for real on PPC32/64.
  • Loading branch information
redstar committed Oct 15, 2014
1 parent 15e7ea6 commit 320fdce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ir/irtype.cpp
Expand Up @@ -77,7 +77,8 @@ llvm::Type * IrTypeBasic::basic2llvm(Type* t)
llvm::LLVMContext& ctx = llvm::getGlobalContext();
llvm::Triple::ArchType const a = global.params.targetTriple.getArch();
bool const anyX86 = (a == llvm::Triple::x86) || (a == llvm::Triple::x86_64);
bool const anyPPC = (a == llvm::Triple::ppc) || (a == llvm::Triple::ppc64);
// Support for doubledouble has been dropped
//bool const anyPPC = (a == llvm::Triple::ppc) || (a == llvm::Triple::ppc64);

switch(t->ty)
{
Expand Down Expand Up @@ -122,9 +123,10 @@ llvm::Type * IrTypeBasic::basic2llvm(Type* t)
// only x86 has 80bit float
if (anyX86)
return llvm::Type::getX86_FP80Ty(ctx);
// Support for doubledouble has been dropped
// PPC has a special 128bit float
else if (anyPPC)
return llvm::Type::getPPC_FP128Ty(ctx);
//else if (anyPPC)
// return llvm::Type::getPPC_FP128Ty(ctx);
// other platforms use 64bit reals
else
return llvm::Type::getDoubleTy(ctx);
Expand Down

0 comments on commit 320fdce

Please sign in to comment.