modsi3.S (modsi3): Fix case with 0x80000000 as dividend.

* config/microblaze/modsi3.S (modsi3): Fix case with 0x80000000 
as dividend.

From-SVN: r196156
This commit is contained in:
Edgar E. Iglesias 2013-02-19 23:00:50 +00:00 committed by Michael Eager
parent d6988187cd
commit 7c422dbbc7
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
* config/microblaze/modsi3.S (modsi3): Fix case with 0x80000000
as dividend.
2013-02-16 Alan Modra <amodra@gmail.com> 2013-02-16 Alan Modra <amodra@gmail.com>
PR target/55431 PR target/55431

View File

@ -55,6 +55,8 @@ $LaR5_Pos:
$LaR6_Pos: $LaR6_Pos:
ADDIK r3,r0,0 # Clear mod ADDIK r3,r0,0 # Clear mod
ADDIK r30,r0,0 # clear div 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 ADDIK r29,r0,32 # Initialize the loop count
# First part try to find the first '1' in the r5 # First part try to find the first '1' in the r5
$LaDIV1: $LaDIV1: