diff options
Diffstat (limited to 'lib/libc/arm/gen/divsi3.S')
-rw-r--r-- | lib/libc/arm/gen/divsi3.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/arm/gen/divsi3.S b/lib/libc/arm/gen/divsi3.S index baab96b..104a958 100644 --- a/lib/libc/arm/gen/divsi3.S +++ b/lib/libc/arm/gen/divsi3.S @@ -47,7 +47,7 @@ ENTRY(__modsi3) /* XXX should cause a fatal error */ mvn r0, #0 #endif - mov pc, lr + RET ENTRY(__udivsi3) .L_udivide: /* r0 = r0 / r1; r1 = r0 % r1 */ @@ -69,7 +69,7 @@ ENTRY(__udivsi3) .L_divide_l0: /* r0 == 1 */ mov r0, r1 mov r1, #0 - mov pc, lr + RET ENTRY(__divsi3) .L_divide: /* r0 = r0 / r1; r1 = r0 % r1 */ @@ -373,7 +373,7 @@ ENTRY(__divsi3) movs ip, ip, lsl #1 bicmi r0, r0, #0x80000000 /* Fix incase we divided 0x80000000 */ rsbmi r0, r0, #0 - mov pc, lr + RET .L_udivide_l1: tst ip, #0x10000000 @@ -384,4 +384,4 @@ ENTRY(__divsi3) subhs r1, r1, r0 addhs r3, r3, r2 mov r0, r3 - mov pc, lr + RET |