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 | |
parent | 7986824e4e31d6c66f39d2f11ab93fcfed21f593 (diff) |
[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>
-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 72d594184b8..d89c6061579 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 |