aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-10-06 20:43:48 +0000
committerDale Johannesen <dalej@apple.com>2008-10-06 20:43:48 +0000
commit21c12cf42cde39307f97e3a971baa50ca66e6392 (patch)
treec545060970aff115b2eeca16cb3be1643acda755
parent3faa412ba04e687a9e3f9e60e8c5d1a482857f4a (diff)
downloadexternal_llvm-21c12cf42cde39307f97e3a971baa50ca66e6392.tar.gz
external_llvm-21c12cf42cde39307f97e3a971baa50ca66e6392.tar.bz2
external_llvm-21c12cf42cde39307f97e3a971baa50ca66e6392.zip
Temporarily revert functionality change from my previous patch;
it is too aggressive. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57203 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Support/APFloat.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp
index df65f112af..3e37d796b4 100644
--- a/lib/Support/APFloat.cpp
+++ b/lib/Support/APFloat.cpp
@@ -1727,12 +1727,11 @@ APFloat::convert(const fltSemantics &toSemantics,
APInt::tcShiftLeft(significandParts(), newPartCount, shift);
else if (shift < 0)
APInt::tcShiftRight(significandParts(), newPartCount, -shift);
- // If the new size is shorter, we lost information.
- fs = (shift < 0) ? opInexact : opOK;
// gcc forces the Quiet bit on, which means (float)(double)(float_sNan)
// does not give you back the same bits. This is dubious, and we
// don't currently do it. You're really supposed to get
// an invalid operation signal at runtime, but nobody does that.
+ fs = opOK;
} else {
semantics = &toSemantics;
fs = opOK;