From: Kazu Hirata Date: Mon, 7 Jul 2003 15:46:02 +0000 (+0000) Subject: h8300.md (pushqi1_h8300hs): Optimize by pushing 2 bytes and then subtract 2 from... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fb7d7712f6ab49440fab72b70179b2b209b26de2;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9a26e4d228e..a762872b9d6 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 209e919b8b9..19dc9c88a0e 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")])