summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit6271b0a83c7b677d1c0bbc03467246fbf4ee4e1c (patch)
tree05d16d256b68824f304ebd562d5e854872ec2340 /llvm
parentc3e3ca9a456be27c60933f603981b3b2c1f71db5 (diff)
downloadbcm5719-llvm-6271b0a83c7b677d1c0bbc03467246fbf4ee4e1c.tar.gz
bcm5719-llvm-6271b0a83c7b677d1c0bbc03467246fbf4ee4e1c.zip
Temporarily revert functionality change from my previous patch;
it is too aggressive. llvm-svn: 57203
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Support/APFloat.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp
index df65f112af0..3e37d796b41 100644
--- a/llvm/lib/Support/APFloat.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud