fix the quotient returned by sdivrem() for the case when LHS is negative and RHS...
authorNuno Lopes <nunoplopes@sapo.pt>
Tue, 22 May 2012 01:09:48 +0000 (01:09 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Tue, 22 May 2012 01:09:48 +0000 (01:09 +0000)
commita7a2a3635f2fbe46d7d9074798e79e853f69d40b
treea8eff441253ba0dd28644172d2aa310d9b71bd0f
parent6b07bc604ee891185435c040f0a872774c64af29
fix the quotient returned by sdivrem() for the case when LHS is negative and RHS is positive
based on a patch by Preston Briggs, with some modifications

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157231 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APInt.h
unittests/ADT/APIntTest.cpp