diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-03-08 17:25:33 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-03-08 17:25:33 +0000 |
commit | 3c8fdae78cf5d73c6739912a1ff087c0f23b2a47 (patch) | |
tree | 85203dba56f72d897ffa073aa53fb03b011f4e52 /arch/arm | |
parent | 7986824e4e31d6c66f39d2f11ab93fcfed21f593 (diff) | |
download | op-kernel-dev-3c8fdae78cf5d73c6739912a1ff087c0f23b2a47.zip op-kernel-dev-3c8fdae78cf5d73c6739912a1ff087c0f23b2a47.tar.gz |
[ARM] Fix muldi3.S
When shifting the low-parts of signed numbers, a logical shift
should be used to avoid sign-extending a bit which isn't a sign
bit.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/lib/muldi3.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/lib/muldi3.S b/arch/arm/lib/muldi3.S index 72d5941..d89c606 100644 --- a/arch/arm/lib/muldi3.S +++ b/arch/arm/lib/muldi3.S @@ -29,8 +29,8 @@ ENTRY(__aeabi_lmul) mul xh, yl, xh mla xh, xl, yh, xh - mov ip, xl, asr #16 - mov yh, yl, asr #16 + mov ip, xl, lsr #16 + mov yh, yl, lsr #16 bic xl, xl, ip, lsl #16 bic yl, yl, yh, lsl #16 mla xh, yh, ip, xh |