diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-03-08 18:25:33 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-03-08 18:25:33 +0100 |
commit | 3c8fdae78cf5d73c6739912a1ff087c0f23b2a47 (patch) | |
tree | 85203dba56f72d897ffa073aa53fb03b011f4e52 /arch/arm/lib | |
parent | Merge master.kernel.org:/home/rmk/linux-2.6-serial (diff) | |
download | linux-3c8fdae78cf5d73c6739912a1ff087c0f23b2a47.tar.xz linux-3c8fdae78cf5d73c6739912a1ff087c0f23b2a47.zip |
[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/lib')
-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 72d594184b8a..d89c60615794 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 |