mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-30 03:31:28 +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. llvm-svn: 42865
This commit is contained in:
1 parent
899cc56612
commit
007aa378ad
10 files changed
+196
-18
No files matched your search
@@ -632,9 +632,9 @@ bool BitcodeReader::ParseConstants() {
|
||||
else if (CurTy == Type::X86_FP80Ty)
|
||||
V = ConstantFP::get(CurTy, APFloat(APInt(80, 2, &Record[0])));
|
||||
else if (CurTy == Type::FP128Ty)
|
||||
V = ConstantFP::get(CurTy, APFloat(APInt(128, 2, &Record[0])));
|
||||
V = ConstantFP::get(CurTy, APFloat(APInt(128, 2, &Record[0]), true));
|
||||
else if (CurTy == Type::PPC_FP128Ty)
|
||||
assert(0 && "PowerPC long double constants not handled yet.");
|
||||
V = ConstantFP::get(CurTy, APFloat(APInt(128, 2, &Record[0])));
|
||||
else
|
||||
V = UndefValue::get(CurTy);
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user