diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-11-17 02:26:54 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-11-17 02:26:54 +0000 |
commit | a62a282bf47bfccc4aa3a71e10c0c4277954ef2b (patch) | |
tree | cdbcd5bd64ce21ca94bdffcd9fa1c30137168546 /gcc | |
parent | 773f1fa639fcbb7f266b3aaab9b7d36875251148 (diff) | |
download | gcc-a62a282bf47bfccc4aa3a71e10c0c4277954ef2b.zip gcc-a62a282bf47bfccc4aa3a71e10c0c4277954ef2b.tar.gz gcc-a62a282bf47bfccc4aa3a71e10c0c4277954ef2b.tar.bz2 |
h8300.md: Don't use REGNO when its operand is not guaranteed to be a REG.
* config/h8300/h8300.md: Don't use REGNO when its operand is
not guaranteed to be a REG.
From-SVN: r73661
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.md | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4105673b..19446d7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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). diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index 478c917..5ebb891 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -124,7 +124,7 @@ (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")]) @@ -135,7 +135,7 @@ (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")]) @@ -218,7 +218,7 @@ [(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" @@ -227,7 +227,7 @@ (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")]) |