From: Russell King Date: Wed, 8 Mar 2006 17:25:33 +0000 (+0000) Subject: [ARM] Fix muldi3.S X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3c8fdae78cf5d73c6739912a1ff087c0f23b2a47;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [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 --- 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