]> gcc.gnu.org Git - gcc.git/commitdiff
lib1funcs.asm (___cmpsi2, ___ucmpsi2): Bum three instructions from each routine.
authorToshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
Sat, 20 Apr 2002 16:02:36 +0000 (16:02 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sat, 20 Apr 2002 16:02:36 +0000 (16:02 +0000)
* config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
Bum three instructions from each routine.

From-SVN: r52557

gcc/ChangeLog
gcc/config/h8300/lib1funcs.asm

index f3556f860df15aae14a33beb19fa11418de3ad49..5435330cac9c690e4b85d8dc5420d91e15ede461 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
+
+       * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
+       Bum three instructions from each routine.
+
 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * Makefile.in: Update.
index a5a9f9559d58ce4970986765aff0b8d4a9475f88..aa68ebcab373532bbed5db140f1eb43d20e6d766 100644 (file)
@@ -1,5 +1,6 @@
 ;; libgcc routines for the Hitachi H8/300 CPU.
 ;; Contributed by Steve Chamberlain <sac@cygnus.com>
+;; Optimizations by Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
 
 /* Copyright (C) 1994, 2000, 2001 Free Software Foundation, Inc.
 
@@ -108,24 +109,21 @@ Boston, MA 02111-1307, USA.  */
        .align 2
        .global ___cmpsi2
 ___cmpsi2:
-       cmp.w   A2,A0
-       bne     .L2
-       cmp.w   A3,A1
+       cmp.w   A0,A2
        bne     .L2
+       cmp.w   A1,A3
+       bne     .L4
        mov.w   #1,A0
        rts
 .L2:
-       cmp.w   A0,A2
-       bgt     .L4
-       bne     .L3
-       cmp.w   A1,A3
-       bls     .L3
-.L4:
-       sub.w   A0,A0
-       rts
+       bgt     .L5
 .L3:
        mov.w   #2,A0
+       rts
+.L4:
+       bls     .L3
 .L5:
+       sub.w   A0,A0
        rts
        .end
 #endif
@@ -137,24 +135,21 @@ ___cmpsi2:
        .align 2
        .global ___ucmpsi2
 ___ucmpsi2:
-       cmp.w   A2,A0
-       bne     .L2
-       cmp.w   A3,A1
+       cmp.w   A0,A2
        bne     .L2
+       cmp.w   A1,A3
+       bne     .L4
        mov.w   #1,A0
        rts
 .L2:
-       cmp.w   A0,A2
-       bhi     .L4
-       bne     .L3
-       cmp.w   A1,A3
-       bls     .L3
-.L4:
-       sub.w   A0,A0
-       rts
+       bhi     .L5
 .L3:
        mov.w   #2,A0
+       rts
+.L4:
+       bls     .L3
 .L5:
+       sub.w   A0,A0
        rts
        .end
 #endif
This page took 0.078709 seconds and 5 git commands to generate.