mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
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
This commit is contained in:
@ -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!");
|
||||
}
|
||||
|
Reference in New Issue
Block a user