From: Richard Kenner Date: Tue, 25 Mar 1997 19:17:05 +0000 (-0500) Subject: (__modsi3, __umodsi3): Use mulsl instruction instead of __mulsi3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=125bcee0015e2751c154eed8602a4e232118ed4d;p=gcc.git (__modsi3, __umodsi3): Use mulsl instruction instead of __mulsi3 function call on the coldfire. From-SVN: r13793 --- diff --git a/gcc/config/m68k/lb1sf68.asm b/gcc/config/m68k/lb1sf68.asm index dd8c42dc4e1..e624269ab8d 100644 --- a/gcc/config/m68k/lb1sf68.asm +++ b/gcc/config/m68k/lb1sf68.asm @@ -444,10 +444,14 @@ SYM (__umodsi3): jbsr SYM (__udivsi3) addql IMM (8), sp movel sp@(8), d1 /* d1 = divisor */ +#ifndef __mcf5200__ movel d1, sp@- movel d0, sp@- jbsr SYM (__mulsi3) /* d0 = (a/b)*b */ addql IMM (8), sp +#else + mulsl d1,d0 +#endif movel sp@(4), d1 /* d1 = dividend */ subl d0, d1 /* d1 = a - (a/b)*b */ movel d1, d0 @@ -466,10 +470,14 @@ SYM (__modsi3): jbsr SYM (__divsi3) addql IMM (8), sp movel sp@(8), d1 /* d1 = divisor */ +#ifndef __mcf5200__ movel d1, sp@- movel d0, sp@- jbsr SYM (__mulsi3) /* d0 = (a/b)*b */ addql IMM (8), sp +#else + mulsl d1,d0 +#endif movel sp@(4), d1 /* d1 = dividend */ subl d0, d1 /* d1 = a - (a/b)*b */ movel d1, d0