diff options
| author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-20 16:02:36 +0000 |
|---|---|---|
| committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-20 16:02:36 +0000 |
| commit | 1b19d1e8f0543d485fb0f5a80946dc0ec7d139fe (patch) | |
| tree | 4d3beb821b94ab0ae7a25334b9061ccb79a1d4c1 | |
| parent | 60a388b7f596e1b29cd16bea87ca06a89d3a0060 (diff) | |
| download | ppe42-gcc-1b19d1e8f0543d485fb0f5a80946dc0ec7d139fe.tar.gz ppe42-gcc-1b19d1e8f0543d485fb0f5a80946dc0ec7d139fe.zip | |
* config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
Bum three instructions from each routine.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52557 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/h8300/lib1funcs.asm | 39 |
2 files changed, 22 insertions, 22 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f3556f860df..5435330cac9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/h8300/lib1funcs.asm b/gcc/config/h8300/lib1funcs.asm index a5a9f9559d5..aa68ebcab37 100644 --- a/gcc/config/h8300/lib1funcs.asm +++ b/gcc/config/h8300/lib1funcs.asm @@ -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 |

