summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprComplex.cpp
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2014-10-17 11:51:19 +0000
committerJoerg Sonnenberger <joerg@bec.de>2014-10-17 11:51:19 +0000
commitaa3e9f5a0f45dd0736c831dfb2607df05dab627c (patch)
tree25286216adb95fc79841b4f938e50c608178bc0c /clang/lib/CodeGen/CGExprComplex.cpp
parent218dad8568570942246cca62660bb8b2b49a8a7d (diff)
downloadbcm5719-llvm-aa3e9f5a0f45dd0736c831dfb2607df05dab627c.tar.gz
bcm5719-llvm-aa3e9f5a0f45dd0736c831dfb2607df05dab627c.zip
complex long double support for PowerPC
llvm-svn: 220034
Diffstat (limited to 'clang/lib/CodeGen/CGExprComplex.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprComplex.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprComplex.cpp b/clang/lib/CodeGen/CGExprComplex.cpp
index 271c9bc5d44..b1cc1efa58e 100644
--- a/clang/lib/CodeGen/CGExprComplex.cpp
+++ b/clang/lib/CodeGen/CGExprComplex.cpp
@@ -615,6 +615,8 @@ ComplexPairTy ComplexExprEmitter::EmitBinMul(const BinOpInfo &Op) {
return EmitComplexBinOpLibCall("__mulsc3", Op);
case llvm::Type::DoubleTyID:
return EmitComplexBinOpLibCall("__muldc3", Op);
+ case llvm::Type::PPC_FP128TyID:
+ return EmitComplexBinOpLibCall("__multc3", Op);
case llvm::Type::X86_FP80TyID:
return EmitComplexBinOpLibCall("__mulxc3", Op);
}
@@ -674,6 +676,8 @@ ComplexPairTy ComplexExprEmitter::EmitBinDiv(const BinOpInfo &Op) {
return EmitComplexBinOpLibCall("__divsc3", LibCallOp);
case llvm::Type::DoubleTyID:
return EmitComplexBinOpLibCall("__divdc3", LibCallOp);
+ case llvm::Type::PPC_FP128TyID:
+ return EmitComplexBinOpLibCall("__divtc3", LibCallOp);
case llvm::Type::X86_FP80TyID:
return EmitComplexBinOpLibCall("__divxc3", LibCallOp);
}
OpenPOWER on IntegriCloud