diff options
author | Qiu Chaofan <qiucofan@cn.ibm.com> | 2021-10-09 10:12:10 +0800 |
---|---|---|
committer | Qiu Chaofan <qiucofan@cn.ibm.com> | 2021-10-09 10:12:10 +0800 |
commit | f45d5e71d3e1ef9d565815850681719418a99d19 (patch) | |
tree | 24a2534d4a7d106341196f312146a0a4ca1d2a5c /llvm/lib/Support/APFloat.cpp | |
parent | 573531fb1f529b1413b789fa9eee11c7b41ac83d (diff) | |
download | llvm-f45d5e71d3e1ef9d565815850681719418a99d19.zip llvm-f45d5e71d3e1ef9d565815850681719418a99d19.tar.gz llvm-f45d5e71d3e1ef9d565815850681719418a99d19.tar.bz2 |
[APFloat] Set size of PPCDoubleDouble to 128
566690b0 uses size information in float semantics, but PPCDoubleDouble
left them empty.
As follow-up, we can consider remove PPCDoubleDoubleLegacy and fill
other fields in the future.
Reviewed By: foad
Differential Revision: https://reviews.llvm.org/D111398
Diffstat (limited to 'llvm/lib/Support/APFloat.cpp')
-rw-r--r-- | llvm/lib/Support/APFloat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp index c456a5c..4b75c9d 100644 --- a/llvm/lib/Support/APFloat.cpp +++ b/llvm/lib/Support/APFloat.cpp @@ -92,7 +92,7 @@ namespace llvm { Note: we need to make the value different from semBogus as otherwise an unsafe optimization may collapse both values to a single address, and we heavily rely on them having distinct addresses. */ - static const fltSemantics semPPCDoubleDouble = {-1, 0, 0, 0}; + static const fltSemantics semPPCDoubleDouble = {-1, 0, 0, 128}; /* These are legacy semantics for the fallback, inaccrurate implementation of IBM double-double, if the accurate semPPCDoubleDouble doesn't handle the |