__aeabi_ldivmod: fix sign logic26/326/2
commitde57a53027e3fcbfc06e98a02c3ac6f6a62be000
authorBen Gras <ben@minix3.org>
Mon, 11 Feb 2013 01:02:08 +0000 (11 02:02 +0100)
committerBen Gras <ben@minix3.org>
Mon, 11 Feb 2013 20:37:10 +0000 (11 21:37 +0100)
tree4f7415590f0e11d2650cf71637076444176a482d
parent3bc6d7df0683c9d9ee2bf39f0e2dc44438506ec0
__aeabi_ldivmod: fix sign logic

. signed 64-bit divide incorrectly tested for sign compensation
  bits in the NEG (R5) register, causing the signedness of the
  quotient and modulus to be wrong for negative numerators.

Fixes test45 on ARM.

Change-Id: Id0df8fd97ea67cd0722db8cdd70a07e01b3d7870
common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S