[llvm-commits] [llvm] r57203 - /llvm/trunk/lib/Support/APFloat.cpp
Dale Johannesen
dalej at apple.com
Mon Oct 6 13:43:48 PDT 2008
Author: johannes
Date: Mon Oct 6 15:43:48 2008
New Revision: 57203
URL: http://llvm.org/viewvc/llvm-project?rev=57203&view=rev
Log:
Temporarily revert functionality change from my previous patch;
it is too aggressive.
Modified:
llvm/trunk/lib/Support/APFloat.cpp
Modified: llvm/trunk/lib/Support/APFloat.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APFloat.cpp?rev=57203&r1=57202&r2=57203&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APFloat.cpp (original)
+++ llvm/trunk/lib/Support/APFloat.cpp Mon Oct 6 15:43:48 2008
@@ -1727,12 +1727,11 @@
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;
More information about the llvm-commits
mailing list