From: Edgar E. Iglesias Date: Tue, 19 Feb 2013 23:00:50 +0000 (+0000) Subject: modsi3.S (modsi3): Fix case with 0x80000000 as dividend. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7c422dbbc7446d733bc080617efe7afa3e6c0e20;p=gcc.git modsi3.S (modsi3): Fix case with 0x80000000 as dividend. * config/microblaze/modsi3.S (modsi3): Fix case with 0x80000000 as dividend. From-SVN: r196156 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index d4bc8109e7d..6032f6f1a6a 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,7 @@ +2012-02-19 Edgar E. Iglesias + * config/microblaze/modsi3.S (modsi3): Fix case with 0x80000000 + as dividend. + 2013-02-16 Alan Modra PR target/55431 diff --git a/libgcc/config/microblaze/modsi3.S b/libgcc/config/microblaze/modsi3.S index ed28acf8f63..93d0c30b688 100644 --- a/libgcc/config/microblaze/modsi3.S +++ b/libgcc/config/microblaze/modsi3.S @@ -55,6 +55,8 @@ $LaR5_Pos: $LaR6_Pos: ADDIK r3,r0,0 # Clear mod ADDIK r30,r0,0 # clear div + BLTId r5,$LaDIV2 # If r5 is still negative (0x80000000), skip + # the first bit search. ADDIK r29,r0,32 # Initialize the loop count # First part try to find the first '1' in the r5 $LaDIV1: