aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-10-11 18:07:22 +0000
committerDale Johannesen <dalej@apple.com>2007-10-11 18:07:22 +0000
commit2aef569811b24bf254b27cab0f6307c2c8d27d17 (patch)
tree5585aa5c69106bf208bebbc089dccd54bd09154b /lib/Bitcode/Writer/BitcodeWriter.cpp
parent6ad3bd1689f2fc9732c982a8b8429b82856858fd (diff)
downloadexternal_llvm-2aef569811b24bf254b27cab0f6307c2c8d27d17.zip
external_llvm-2aef569811b24bf254b27cab0f6307c2c8d27d17.tar.gz
external_llvm-2aef569811b24bf254b27cab0f6307c2c8d27d17.tar.bz2
Next PPC long double bits. First cut at constants.
No compile-time support for constant operations yet, just format transformations. Make readers and writers work. Split constants into 2 doubles in Legalize. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42865 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--lib/Bitcode/Writer/BitcodeWriter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp
index 7999907..6bf2712 100644
--- a/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -534,13 +534,11 @@ static void WriteConstants(unsigned FirstVal, unsigned LastVal,
const uint64_t *p = api.getRawData();
Record.push_back(p[0]);
Record.push_back((uint16_t)p[1]);
- } else if (Ty == Type::FP128Ty) {
+ } else if (Ty == Type::FP128Ty || Ty == Type::PPC_FP128Ty) {
APInt api = CFP->getValueAPF().convertToAPInt();
const uint64_t *p = api.getRawData();
Record.push_back(p[0]);
Record.push_back(p[1]);
- } else if (Ty == Type::PPC_FP128Ty) {
- assert(0 && "PowerPC long double constants not handled yet.");
} else {
assert (0 && "Unknown FP type!");
}