OSDN Git Service

* config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Jul 2003 15:46:02 +0000 (15:46 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Jul 2003 15:46:02 +0000 (15:46 +0000)
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

gcc/ChangeLog
gcc/config/h8300/h8300.md

index 9a26e4d..a762872 100644 (file)
@@ -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
index 209e919..19dc9c8 100644 (file)
                   (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")])
 
                   (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")])