arm.c (arm_init_libfuncs): Use __aeabi_idiv and __aeabi_uidiv.

* config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
	__aeabi_uidiv.

From-SVN: r106492
This commit is contained in:
Daniel Jacobowitz 2005-11-04 15:29:01 +00:00 committed by Daniel Jacobowitz
parent 74900b5a75
commit e993ba8f57
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-11-04 Daniel Jacobowitz <dan@codesourcery.com>
* config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
__aeabi_uidiv.
2005-11-04 Mark Mitchell <mark@codesourcery.com>
Daniel Jacobowitz <dan@codesourcery.com>

View File

@ -817,8 +817,11 @@ arm_init_libfuncs (void)
routines. */
set_optab_libfunc (sdiv_optab, DImode, "__aeabi_ldivmod");
set_optab_libfunc (udiv_optab, DImode, "__aeabi_uldivmod");
set_optab_libfunc (sdiv_optab, SImode, "__aeabi_idivmod");
set_optab_libfunc (udiv_optab, SImode, "__aeabi_uidivmod");
/* For SImode division the ABI provides div-without-mod routines,
which are faster. */
set_optab_libfunc (sdiv_optab, SImode, "__aeabi_idiv");
set_optab_libfunc (udiv_optab, SImode, "__aeabi_uidiv");
/* We don't have mod libcalls. Fortunately gcc knows how to use the
divmod libcalls instead. */