* config/m32c/m32c_lib1.S (__mulsi3): Use only registers for dest.
authorNaveen.H.S <naveenh@kpitcummins.com>
Thu, 17 Aug 2006 00:05:07 +0000 (00:05 +0000)
committerDJ Delorie <dj@gcc.gnu.org>
Thu, 17 Aug 2006 00:05:07 +0000 (20:05 -0400)
From-SVN: r116196

gcc/ChangeLog
gcc/config/m32c/m32c-lib1.S

index 29fa23f..31adfc7 100644 (file)
@@ -1,3 +1,7 @@
+2006-08-16  Naveen.H.S  <naveenh@kpitcummins.com>
+
+       * config/m32c/m32c_lib1.S (__mulsi3): Use only registers for dest.
+
 2006-08-16  Joseph S. Myers  <joseph@codesourcery.com>
 
        PR c/27697
index d45f1fa..ee02411 100644 (file)
@@ -152,14 +152,15 @@ __m32c_eh_return:
 ___mulsi3:
        enter   #0
        push.w  r2
-       mov.w   SAL,mem0
-       mov.w   SAH,mem2
-       mulu.w  SBL,mem0        /* writes to r2r0 */
+       mov.w   SAL,r0
+       mulu.w  SBL,r0          /* writes to r2r0 */
+       mov.w   r0,mem0
+       mov.w   r2,mem2
        mov.w   SAL,r0
        mulu.w  SBH,r0          /* writes to r2r0 */
        add.w   r0,mem2
        mov.w   SAH,r0
-       mulu.w  SBL,r0
+       mulu.w  SBL,r0          /* writes to r2r0 */
        add.w   r0,mem2
        pop.w   r2
        exitd