diff options
author | cbaylis <cbaylis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-18 15:42:21 +0000 |
---|---|---|
committer | cbaylis <cbaylis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-18 15:42:21 +0000 |
commit | 17ec8cc2132cab32d4db98dc718bad913f380cc7 (patch) | |
tree | d1d9de0802bfab0be2acaf40420026c4cc434b55 /libgcc | |
parent | 29f3c355bc38a6cf91de04fe4cb69c01491b9d41 (diff) | |
download | gcc-17ec8cc2132cab32d4db98dc718bad913f380cc7.tar.gz |
2014-06-18 Charles Baylis <charles.baylis@linaro.org>
* config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211793 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/config/arm/bpabi.S | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/libgcc/config/arm/bpabi.S b/libgcc/config/arm/bpabi.S index 927e37ffd14..3f9ece58ba0 100644 --- a/libgcc/config/arm/bpabi.S +++ b/libgcc/config/arm/bpabi.S @@ -174,18 +174,10 @@ ARM_FUNC_START aeabi_ldivmod cfi_start __aeabi_ldivmod, LSYM(Lend_aeabi_ldivmod) test_div_by_zero signed - sub sp, sp, #8 -#if defined(__thumb2__) - mov ip, sp - push {ip, lr} -#else - do_push {sp, lr} -#endif -98: cfi_push 98b - __aeabi_ldivmod, 0xe, -0xc, 0x10 + push_for_divide __aeabi_ldivmod + /* arguments in (r0:r1), (r2:r3) and *sp */ bl SYM(__gnu_ldivmod_helper) __PLT__ - ldr lr, [sp, #4] - add sp, sp, #8 - do_pop {r2, r3} + pop_for_divide RET cfi_end LSYM(Lend_aeabi_ldivmod) |