* config/h8300/h8300.md: Reorder some patterns.
authorKazu Hirata <kazu@cs.umass.edu>
Thu, 2 Jan 2003 02:42:57 +0000 (02:42 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 2 Jan 2003 02:42:57 +0000 (02:42 +0000)
From-SVN: r60770

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

index 26a3372b678c4cabc81adc675ef5bbccad7125e6..84f518e0d3f4b14a951b6677b23d15e2f0f234db 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md: Reorder some patterns.
+
 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.c (output_logical_op): Fix a warning.
index e9922afb42666e71cdb6be8538732ca70280b3ee..cce5181ab117c1ead750abe74a32d0994d7ab3ce 100644 (file)
   [(set_attr "cc" "clobber")
    (set_attr "length" "2")])
 
+(define_insn "*iorsi3_ashift_16"
+  [(set (match_operand:SI 0 "register_operand" "=r")
+       (ior:SI (ashift:SI (match_operand:SI 1 "register_operand" "r")
+                          (const_int 16))
+               (match_operand:SI 2 "register_operand" "0")))]
+  "TARGET_H8300H || TARGET_H8300S"
+  "or.w\\t%f1,%e0"
+  [(set_attr "cc" "clobber")
+   (set_attr "length" "2")])
+
+(define_insn "*iorsi3_two_hi"
+  [(set (match_operand:SI 0 "register_operand" "=r")
+       (ior:SI (zero_extend:SI (match_operand:HI 1 "register_operand" "0"))
+               (ashift:SI (match_operand:SI 2 "register_operand" "r")
+                          (const_int 16))))]
+  "TARGET_H8300H || TARGET_H8300S"
+  "mov.w\\t%f2,%e0"
+  [(set_attr "cc" "clobber")
+   (set_attr "length" "2")])
+
 ;; xor:HI
 
 (define_insn "*xorhi3_zextqi"
   [(set_attr "cc" "clobber")
    (set_attr "length" "2")])
 
-(define_insn "*iorsi3_two_hi"
-  [(set (match_operand:SI 0 "register_operand" "=r")
-       (ior:SI (zero_extend:SI (match_operand:HI 1 "register_operand" "0"))
-               (ashift:SI (match_operand:SI 2 "register_operand" "r")
-                          (const_int 16))))]
-  "TARGET_H8300H || TARGET_H8300S"
-  "mov.w\\t%f2,%e0"
-  [(set_attr "cc" "clobber")
-   (set_attr "length" "2")])
-
-(define_insn "*iorsi3_ashift_16"
-  [(set (match_operand:SI 0 "register_operand" "=r")
-       (ior:SI (ashift:SI (match_operand:SI 1 "register_operand" "r")
-                          (const_int 16))
-               (match_operand:SI 2 "register_operand" "0")))]
-  "TARGET_H8300H || TARGET_H8300S"
-  "or.w\\t%f1,%e0"
-  [(set_attr "cc" "clobber")
-   (set_attr "length" "2")])
-
 ;; Storing a part of HImode to QImode.
 
 (define_insn ""