h8300.md (movsi_h8300hs): Change the order of alternatives to correct the length...
authorKazu Hirata <kazu@cs.umass.edu>
Fri, 29 Nov 2002 16:24:58 +0000 (16:24 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Fri, 29 Nov 2002 16:24:58 +0000 (16:24 +0000)
* config/h8300/h8300.md (movsi_h8300hs): Change the order of
alternatives to correct the length when the memory operand is
either pre_dec or post_inc.

From-SVN: r59637

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

index 8d4f86cb61de97bb4cd1f0fdf3c75cbaf14eb5db..bdbc6619dba66306b9b6244a0e48a4ccc2765e92 100644 (file)
@@ -1,3 +1,9 @@
+2002-11-29  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md (movsi_h8300hs): Change the order of
+       alternatives to correct the length when the memory operand is
+       either pre_dec or post_inc.
+
 2002-11-29  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.md (an anonymous pattern): Give an
index 5da3397fffa3533f3a6ef2d387709b988463346f..08bdb8e4c69d4fda4fc8090e1c6744aa7d4adce2 100644 (file)
    (set_attr "cc" "clobber")])
 
 (define_insn "movsi_h8300hs"
-  [(set (match_operand:SI 0 "general_operand_dst" "=r,r,r,r,m,<,r,*a,*a,r")
-       (match_operand:SI 1 "general_operand_src" "I,r,i,m,r,r,>,I,r,*a"))]
+  [(set (match_operand:SI 0 "general_operand_dst" "=r,r,r,<,r,r,m,*a,*a,r")
+       (match_operand:SI 1 "general_operand_src" "I,r,i,r,>,m,r,I,r,*a"))]
   "(TARGET_H8300S || TARGET_H8300H)
    && (register_operand (operands[0], SImode)
        || register_operand (operands[1], SImode))
     }
    return \"mov.l      %S1,%S0\";
 }"
-  [(set_attr "length" "2,2,6,10,10,4,4,2,6,4")
+  [(set_attr "length" "2,2,6,4,4,10,10,2,6,4")
    (set_attr "cc" "set_zn,set_znv,clobber,set_znv,set_znv,set_znv,set_znv,none_0hit,none_0hit,set_znv")])
 
 (define_insn "movsf_h8300h"