This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC] Avoiding _divsi3 call during ld.so bootstrap
- From: Richard Henderson <rth at twiddle dot net>
- To: Bob Wilson <bwilson at tensilica dot com>
- Cc: libc-alpha at sourceware dot org, Chris Zankel <czankel at tensilica dot com>
- Date: Wed, 4 Apr 2007 19:35:56 -0700
- Subject: Re: [RFC] Avoiding _divsi3 call during ld.so bootstrap
- References: <1234A53C-F77D-41AD-A7F1-8527DF99E3BA@tensilica.com>
On Wed, Apr 04, 2007 at 12:18:22PM -0700, Bob Wilson wrote:
> The following line in elf_dynamic_do_rel in elf/do-rel.h is
> generating a call to _divsi3:
>
> r = r + MIN (nrelative, relsize / sizeof (ElfW(Rel)));
Do you not have a umulsi3_highpart insn? The compiler should
be able to convert this away from a real divide operation...
r~