mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-22 15:53:14 +01:00
Add support for PPC 128bit doubledouble type.
On a PowerPC target the datatype real is mapped to PPC 128bit doubledouble type. Please note that this yet does not work if you cross compile from a different architecture.
This commit is contained in:
@@ -40,6 +40,8 @@ LLType* DtoComplexBaseType(Type* t)
|
||||
case Tcomplex80:
|
||||
if ((global.params.cpu == ARCHx86) || (global.params.cpu == ARCHx86_64))
|
||||
return LLType::getX86_FP80Ty(gIR->context());
|
||||
else if (global.params.cpu == ARCHppc || global.params.cpu == ARCHppc_64)
|
||||
return LLType::getPPC_FP128Ty(gIR->context());
|
||||
else
|
||||
return LLType::getDoubleTy(gIR->context());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user