]> gcc.gnu.org Git - gcc.git/commitdiff
h8300.md (four define_peephole2's): Use h8300_regs_ok_for_stm().
authorKazu Hirata <kazu@cs.umass.edu>
Wed, 18 Feb 2004 21:55:02 +0000 (21:55 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Wed, 18 Feb 2004 21:55:02 +0000 (21:55 +0000)
* config/h8300/h8300.md (four define_peephole2's): Use
h8300_regs_ok_for_stm().

From-SVN: r78048

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

index 82b99989b292800f7233be09c5fa3c102a266820..d89ce3c146231505a9334a299f9ce6400bf02917 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md (four define_peephole2's): Use
+       h8300_regs_ok_for_stm().
+
 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300-protos.h: Update the prototype for
index bf37b8928baa4f5ff3550da1ed96d0171f3509fd..dd77e3279ecd17c2521975d7ecdf8cf7d870dddc 100644 (file)
    (set (mem:SI (pre_dec:SI (reg:SI SP_REG)))
        (match_operand:SI 3 "register_operand" ""))]
   "TARGET_H8300S && !TARGET_NORMAL_MODE
-   && REGNO (operands[0]) == 0
-   && REGNO (operands[1]) == 1
-   && REGNO (operands[2]) == 2
-   && REGNO (operands[3]) == 3"
+   && h8300_regs_ok_for_stm (4, operands)"
   [(parallel [(set (reg:SI SP_REG)
                   (plus:SI (reg:SI SP_REG)
                            (const_int -16)))
    (set (mem:SI (pre_dec:HI (reg:HI SP_REG)))
        (match_operand:SI 3 "register_operand" ""))]
   "TARGET_H8300S && TARGET_NORMAL_MODE
-   && REGNO (operands[0]) == 0
-   && REGNO (operands[1]) == 1
-   && REGNO (operands[2]) == 2
-   && REGNO (operands[3]) == 3"
+   && h8300_regs_ok_for_stm (4, operands)"
   [(parallel [(set (reg:HI SP_REG)
                   (plus:HI (reg:HI SP_REG)
                            (const_int -16)))
    (set (mem:SI (pre_dec:SI (reg:SI SP_REG)))
        (match_operand:SI 2 "register_operand" ""))]
   "TARGET_H8300S && !TARGET_NORMAL_MODE
-   && ((REGNO (operands[0]) == 0
-       && REGNO (operands[1]) == 1
-       && REGNO (operands[2]) == 2)
-       || (REGNO (operands[0]) == 4
-          && REGNO (operands[1]) == 5
-          && REGNO (operands[2]) == 6))"
+   && h8300_regs_ok_for_stm (3, operands)"
   [(parallel [(set (reg:SI SP_REG)
                   (plus:SI (reg:SI SP_REG)
                            (const_int -12)))
    (set (mem:SI (pre_dec:HI (reg:HI SP_REG)))
        (match_operand:SI 2 "register_operand" ""))]
   "TARGET_H8300S && TARGET_NORMAL_MODE
-   && ((REGNO (operands[0]) == 0
-       && REGNO (operands[1]) == 1
-       && REGNO (operands[2]) == 2)
-       || (REGNO (operands[0]) == 4
-          && REGNO (operands[1]) == 5
-          && REGNO (operands[2]) == 6))"
+   && h8300_regs_ok_for_stm (3, operands)"
   [(parallel [(set (reg:HI SP_REG)
                   (plus:HI (reg:HI SP_REG)
                            (const_int -12)))
    (set (mem:SI (pre_dec:SI (reg:SI SP_REG)))
        (match_operand:SI 1 "register_operand" ""))]
   "TARGET_H8300S && !TARGET_NORMAL_MODE
-   && ((REGNO (operands[0]) == 0 && REGNO (operands[1]) == 1)
-       || (REGNO (operands[0]) == 2 && REGNO (operands[1]) == 3)
-       || (REGNO (operands[0]) == 4 && REGNO (operands[1]) == 5))"
+   && h8300_regs_ok_for_stm (2, operands)"
   [(parallel [(set (reg:SI SP_REG)
                   (plus:SI (reg:SI SP_REG)
                            (const_int -8)))
    (set (mem:SI (pre_dec:HI (reg:HI SP_REG)))
        (match_operand:SI 1 "register_operand" ""))]
   "TARGET_H8300S && TARGET_NORMAL_MODE
-   && ((REGNO (operands[0]) == 0 && REGNO (operands[1]) == 1)
-       || (REGNO (operands[0]) == 2 && REGNO (operands[1]) == 3)
-       || (REGNO (operands[0]) == 4 && REGNO (operands[1]) == 5))"
+   && h8300_regs_ok_for_stm (2, operands)"
   [(parallel [(set (reg:HI SP_REG)
                   (plus:HI (reg:HI SP_REG)
                            (const_int -8)))
This page took 0.082316 seconds and 5 git commands to generate.