Commit f493def1 by Charles Baylis Committed by Charles Baylis

bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.

2014-06-18  Charles Baylis  <charles.baylis@linaro.org>

	* config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.

From-SVN: r211793
parent 0b227df4
2014-06-18 Charles Baylis <charles.baylis@linaro.org> 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
* config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
2014-06-18 Charles Baylis <charles.baylis@linaro.org>
* config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
to __udivmoddi4. to __udivmoddi4.
......
...@@ -174,18 +174,10 @@ ARM_FUNC_START aeabi_ldivmod ...@@ -174,18 +174,10 @@ ARM_FUNC_START aeabi_ldivmod
cfi_start __aeabi_ldivmod, LSYM(Lend_aeabi_ldivmod) cfi_start __aeabi_ldivmod, LSYM(Lend_aeabi_ldivmod)
test_div_by_zero signed test_div_by_zero signed
sub sp, sp, #8 push_for_divide __aeabi_ldivmod
#if defined(__thumb2__) /* arguments in (r0:r1), (r2:r3) and *sp */
mov ip, sp
push {ip, lr}
#else
do_push {sp, lr}
#endif
98: cfi_push 98b - __aeabi_ldivmod, 0xe, -0xc, 0x10
bl SYM(__gnu_ldivmod_helper) __PLT__ bl SYM(__gnu_ldivmod_helper) __PLT__
ldr lr, [sp, #4] pop_for_divide
add sp, sp, #8
do_pop {r2, r3}
RET RET
cfi_end LSYM(Lend_aeabi_ldivmod) cfi_end LSYM(Lend_aeabi_ldivmod)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment