diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-07-07 15:46:02 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-07-07 15:46:02 +0000 |
commit | fb7d7712f6ab49440fab72b70179b2b209b26de2 (patch) | |
tree | 8d79d58e8789faaf685f66a9c439fd601b63075e /gcc | |
parent | 6b3517eaf567c4b740e4d339369d081cc3a10e38 (diff) | |
download | gcc-fb7d7712f6ab49440fab72b70179b2b209b26de2.zip gcc-fb7d7712f6ab49440fab72b70179b2b209b26de2.tar.gz gcc-fb7d7712f6ab49440fab72b70179b2b209b26de2.tar.bz2 |
h8300.md (pushqi1_h8300hs): Optimize by pushing 2 bytes and then subtract 2 from the stack pointer.
* config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
2 bytes and then subtract 2 from the stack pointer.
(pushhi1_h8300hs): Likewise.
From-SVN: r69042
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.md | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9a26e4d..a762872 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-07-07 Kazu Hirata <kazu@cs.umass.edu> + + * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing + 2 bytes and then subtract 2 from the stack pointer. + (pushhi1_h8300hs): Likewise. + 2003-07-07 Nathan Sidwell <nathan@codesourcery.com> * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index 209e919..19dc9c8 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -126,7 +126,7 @@ (match_operand:QI 0 "register_operand" "r"))])] "(TARGET_H8300H || TARGET_H8300S) && REGNO (operands[0]) != SP_REG" - "mov.l\\t%S0,@-er7" + "mov.w\\t%f0,@-er7\;subs\\t#2,er7" [(set_attr "length" "4") (set_attr "cc" "clobber")]) @@ -218,7 +218,7 @@ (match_operand:HI 0 "register_operand" "r"))])] "(TARGET_H8300H || TARGET_H8300S) && REGNO (operands[0]) != SP_REG" - "mov.l\\t%S0,@-er7" + "mov.w\\t%f0,@-er7\;subs\\t#2,er7" [(set_attr "length" "4") (set_attr "cc" "clobber")]) |