summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-05-09 15:13:45 +0000
committerPavel Labath <labath@google.com>2018-05-09 15:13:45 +0000
commitb1bcafd70647b88e0679f03ce952cc2b14746b9d (patch)
tree36f74832738615f119b41e7c787e479f31952f3a /lldb/packages/Python/lldbsuite
parent8e7625eed7da9c4be06262f2235b5294ee6c2f5a (diff)
downloadbcm5719-llvm-b1bcafd70647b88e0679f03ce952cc2b14746b9d.tar.gz
bcm5719-llvm-b1bcafd70647b88e0679f03ce952cc2b14746b9d.zip
APFloat/x87: Fix string conversion for "unnormal" values (pr35860)
Summary: Unnormal values are a feature of some very old x87 processors. We handle them correctly for the most part -- the only exception was an unnormal value whose significand happened to be zero. In this case the APFloat was still initialized as normal number (category = fcNormal), but a subsequent toString operation would assert because the math would produce nonsensical values for the zero significand. During review, it was decided that the correct way to fix this is to treat all unnormal values as NaNs (as that is what any >=386 processor will do). The issue was discovered because LLDB would crash when trying to print some "long double" values. Reviewers: skatkov, scanon, gottesmm Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D41868 llvm-svn: 331884
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud