From: kazu Date: Mon, 7 Jul 2003 15:46:02 +0000 (+0000) Subject: * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=960ade81e7b98a5a603748ddcf4544b522b9e499;p=thirdparty%2Fgcc.git * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing 2 bytes and then subtract 2 from the stack pointer. (pushhi1_h8300hs): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69042 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9a26e4d228ed..a762872b9d63 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-07-07 Kazu Hirata + + * 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 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index 209e919b8b96..19dc9c88a0e2 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")])