h8300.md: Don't use REGNO when its operand is not guaranteed to be a REG.
authorKazu Hirata <kazu@cs.umass.edu>
Mon, 17 Nov 2003 02:26:54 +0000 (02:26 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Mon, 17 Nov 2003 02:26:54 +0000 (02:26 +0000)
* config/h8300/h8300.md: Don't use REGNO when its operand is
not guaranteed to be a REG.

From-SVN: r73661

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

index 4105673b69f70cff7bc71fa8bf0c6002cb2d93e0..19446d7f72eb71178a31f2b071c4c7957c5783a7 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md: Don't use REGNO when its operand is
+       not guaranteed to be a REG.
+
 2003-11-16  Richard Sandiford  <rsandifo@redhat.com>
 
        * Makefile.in (expr.o): Depend on $(TARGET_H).
index 478c917590246a1740dacd3c6c06a18452d1f666..5ebb8919f0e37c851cec0fcc2b50a2655aea5e96 100644 (file)
              (set (mem:QI (plus:HI (reg:HI SP_REG) (const_int -1)))
                   (match_operand:QI 0 "register_operand" "r"))])]
   "TARGET_H8300
-   && REGNO (operands[0]) != SP_REG"
+   && operands[0] != stack_pointer_rtx"
   "mov.w\\t%T0,@-r7"
   [(set_attr "length" "2")
    (set_attr "cc" "clobber")])
              (set (mem:QI (plus:SI (reg:SI SP_REG) (const_int -3)))
                   (match_operand:QI 0 "register_operand" "r"))])]
   "(TARGET_H8300H || TARGET_H8300S)
-   && REGNO (operands[0]) != SP_REG"
+   && operands[0] != stack_pointer_rtx"
   "mov.l\\t%S0,@-er7"
   [(set_attr "length" "4")
    (set_attr "cc" "clobber")])
   [(set (mem:HI (pre_dec:HI (reg:HI SP_REG)))
        (match_operand:HI 0 "register_operand" ""))]
   "TARGET_H8300
-   && REGNO (operands[0]) != SP_REG"
+   && operands[0] != stack_pointer_rtx"
   "")
 
 (define_insn "pushhi1_h8300hs"
              (set (mem:HI (plus:SI (reg:SI SP_REG) (const_int -2)))
                   (match_operand:HI 0 "register_operand" "r"))])]
   "(TARGET_H8300H || TARGET_H8300S)
-   && REGNO (operands[0]) != SP_REG"
+   && operands[0] != stack_pointer_rtx"
   "mov.l\\t%S0,@-er7"
   [(set_attr "length" "4")
    (set_attr "cc" "clobber")])