summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CBackend/CBackend.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-08-26 17:39:23 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-08-26 17:39:23 +0000
commit5f6fc970c4ace5953be1f3cd99750fec6e59c5dc (patch)
treef035150059fa48dd4157e87e87c727590a069802 /llvm/lib/Target/CBackend/CBackend.cpp
parente7b9d71aab1d2337a6b33b03fd12aacbb0d52499 (diff)
downloadbcm5719-llvm-5f6fc970c4ace5953be1f3cd99750fec6e59c5dc.tar.gz
bcm5719-llvm-5f6fc970c4ace5953be1f3cd99750fec6e59c5dc.zip
Unbreak FP128 stuff in cbe
llvm-svn: 80115
Diffstat (limited to 'llvm/lib/Target/CBackend/CBackend.cpp')
-rw-r--r--llvm/lib/Target/CBackend/CBackend.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp
index 6fea22f14d1..29764aad32c 100644
--- a/llvm/lib/Target/CBackend/CBackend.cpp
+++ b/llvm/lib/Target/CBackend/CBackend.cpp
@@ -2173,7 +2173,8 @@ void CWriter::printFloatingPointConstants(const Constant *C) {
<< " = { 0x" << utohexstr(p[0])
<< "ULL, 0x" << utohexstr((uint16_t)p[1]) << ",{0,0,0}"
<< "}; /* Long double constant */\n";
- } else if (FPC->getType() == Type::getPPC_FP128Ty(FPC->getContext())) {
+ } else if (FPC->getType() == Type::getPPC_FP128Ty(FPC->getContext()) ||
+ FPC->getType() == Type::getFP128Ty(FPC->getContext())) {
APInt api = FPC->getValueAPF().bitcastToAPInt();
const uint64_t *p = api.getRawData();
Out << "static const ConstantFP128Ty FPConstant" << FPCounter++
OpenPOWER on IntegriCloud