Commit a62a282b by Kazu Hirata Committed by Kazu Hirata

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
parent 773f1fa6
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> 2003-11-16 Richard Sandiford <rsandifo@redhat.com>
* Makefile.in (expr.o): Depend on $(TARGET_H). * Makefile.in (expr.o): Depend on $(TARGET_H).
......
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
(set (mem:QI (plus:HI (reg:HI SP_REG) (const_int -1))) (set (mem:QI (plus:HI (reg:HI SP_REG) (const_int -1)))
(match_operand:QI 0 "register_operand" "r"))])] (match_operand:QI 0 "register_operand" "r"))])]
"TARGET_H8300 "TARGET_H8300
&& REGNO (operands[0]) != SP_REG" && operands[0] != stack_pointer_rtx"
"mov.w\\t%T0,@-r7" "mov.w\\t%T0,@-r7"
[(set_attr "length" "2") [(set_attr "length" "2")
(set_attr "cc" "clobber")]) (set_attr "cc" "clobber")])
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
(set (mem:QI (plus:SI (reg:SI SP_REG) (const_int -3))) (set (mem:QI (plus:SI (reg:SI SP_REG) (const_int -3)))
(match_operand:QI 0 "register_operand" "r"))])] (match_operand:QI 0 "register_operand" "r"))])]
"(TARGET_H8300H || TARGET_H8300S) "(TARGET_H8300H || TARGET_H8300S)
&& REGNO (operands[0]) != SP_REG" && operands[0] != stack_pointer_rtx"
"mov.l\\t%S0,@-er7" "mov.l\\t%S0,@-er7"
[(set_attr "length" "4") [(set_attr "length" "4")
(set_attr "cc" "clobber")]) (set_attr "cc" "clobber")])
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
[(set (mem:HI (pre_dec:HI (reg:HI SP_REG))) [(set (mem:HI (pre_dec:HI (reg:HI SP_REG)))
(match_operand:HI 0 "register_operand" ""))] (match_operand:HI 0 "register_operand" ""))]
"TARGET_H8300 "TARGET_H8300
&& REGNO (operands[0]) != SP_REG" && operands[0] != stack_pointer_rtx"
"") "")
(define_insn "pushhi1_h8300hs" (define_insn "pushhi1_h8300hs"
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
(set (mem:HI (plus:SI (reg:SI SP_REG) (const_int -2))) (set (mem:HI (plus:SI (reg:SI SP_REG) (const_int -2)))
(match_operand:HI 0 "register_operand" "r"))])] (match_operand:HI 0 "register_operand" "r"))])]
"(TARGET_H8300H || TARGET_H8300S) "(TARGET_H8300H || TARGET_H8300S)
&& REGNO (operands[0]) != SP_REG" && operands[0] != stack_pointer_rtx"
"mov.l\\t%S0,@-er7" "mov.l\\t%S0,@-er7"
[(set_attr "length" "4") [(set_attr "length" "4")
(set_attr "cc" "clobber")]) (set_attr "cc" "clobber")])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment