Fix a problem with APFloat::roundToIntegral where it would return incorrect results...
authorOwen Anderson <resistor@mac.com>
Wed, 15 Aug 2012 05:39:46 +0000 (05:39 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 15 Aug 2012 05:39:46 +0000 (05:39 +0000)
commitf7a5dfcb3b68b782543d25ba3151893111ff008f
treeb90574a5d05d8eb8d2dc60ee2ee8f0421d3be6a5
parent9441ad0b6e02ee9558168b37a9620ef1afe79388
Fix a problem with APFloat::roundToIntegral where it would return incorrect results for negative inputs to trunc.  Add unit tests to verify this behavior.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161929 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/APFloat.cpp
unittests/ADT/APFloatTest.cpp