Commit 5e849f6e by Alexandre Oliva Committed by Alexandre Oliva

mn10300.md (movqi): Simplify.

* config/mn10300/mn10300.md (movqi): Simplify.  Prefer data
registers.

From-SVN: r33485
parent 2a5b96fd
Thu Apr 27 11:45:16 2000 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.md (movqi): Simplify. Prefer data
registers.
Thu Apr 27 16:11:00 MET DST 2000 Jan Hubicka <jh@suse.cz> Thu Apr 27 16:11:00 MET DST 2000 Jan Hubicka <jh@suse.cz>
* expr.c (store_expr): Use clear_storage instead of direct memset * expr.c (store_expr): Use clear_storage instead of direct memset
......
...@@ -56,8 +56,8 @@ ...@@ -56,8 +56,8 @@
}") }")
(define_insn "" (define_insn ""
[(set (match_operand:QI 0 "general_operand" "=dx,a,dx,a,dx,a,dx,a,dxa,m") [(set (match_operand:QI 0 "general_operand" "=d*x*a,d*x,d*x*a,d*x*a,m")
(match_operand:QI 1 "general_operand" "0,0,I,I,a,dx,dxi,ia,m,dxa"))] (match_operand:QI 1 "general_operand" "0,I,d*xai,m,d*xa"))]
"TARGET_AM33 "TARGET_AM33
&& (register_operand (operands[0], QImode) && (register_operand (operands[0], QImode)
|| register_operand (operands[1], QImode))" || register_operand (operands[1], QImode))"
...@@ -66,15 +66,10 @@ ...@@ -66,15 +66,10 @@
switch (which_alternative) switch (which_alternative)
{ {
case 0: case 0:
case 1:
return \"nop\"; return \"nop\";
case 2: case 1:
return \"clr %0\"; return \"clr %0\";
case 3: case 2:
case 4:
case 5:
case 6:
case 7:
if (GET_CODE (operands[1]) == CONST_DOUBLE) if (GET_CODE (operands[1]) == CONST_DOUBLE)
{ {
rtx xoperands[2]; rtx xoperands[2];
...@@ -94,18 +89,18 @@ ...@@ -94,18 +89,18 @@
return \"movu %1,%0\"; return \"movu %1,%0\";
} }
return \"mov %1,%0\"; return \"mov %1,%0\";
case 8: case 3:
case 9: case 4:
return \"movbu %1,%0\"; return \"movbu %1,%0\";
default: default:
abort (); abort ();
} }
}" }"
[(set_attr "cc" "none,none,clobber,none_0hit,none_0hit,none_0hit,none_0hit,none_0hit,none_0hit,none_0hit")]) [(set_attr "cc" "none,clobber,none_0hit,none_0hit,none_0hit")])
(define_insn "" (define_insn ""
[(set (match_operand:QI 0 "general_operand" "=dx,*a,dx,*a,dx,*a,dx,*a,dx,m") [(set (match_operand:QI 0 "general_operand" "=d*a,d,d*a,d,m")
(match_operand:QI 1 "general_operand" "0,0,I,I,a,dx,dxi,ia,m,dx"))] (match_operand:QI 1 "general_operand" "0,I,dai,m,d"))]
"register_operand (operands[0], QImode) "register_operand (operands[0], QImode)
|| register_operand (operands[1], QImode)" || register_operand (operands[1], QImode)"
"* "*
...@@ -113,15 +108,10 @@ ...@@ -113,15 +108,10 @@
switch (which_alternative) switch (which_alternative)
{ {
case 0: case 0:
case 1:
return \"nop\"; return \"nop\";
case 2: case 1:
return \"clr %0\"; return \"clr %0\";
case 3: case 2:
case 4:
case 5:
case 6:
case 7:
if (GET_CODE (operands[1]) == CONST_DOUBLE) if (GET_CODE (operands[1]) == CONST_DOUBLE)
{ {
rtx xoperands[2]; rtx xoperands[2];
...@@ -132,14 +122,14 @@ ...@@ -132,14 +122,14 @@
} }
return \"mov %1,%0\"; return \"mov %1,%0\";
case 8: case 3:
case 9: case 4:
return \"movbu %1,%0\"; return \"movbu %1,%0\";
default: default:
abort (); abort ();
} }
}" }"
[(set_attr "cc" "none,none,clobber,none_0hit,none_0hit,none_0hit,none_0hit,none_0hit,none_0hit,none_0hit")]) [(set_attr "cc" "none,clobber,none_0hit,none_0hit,none_0hit")])
;; movhi ;; movhi
......
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