* config/h8300/h8300.md (two anonymous patterns): New.
authorKazu Hirata <kazu@hxi.com>
Wed, 31 Oct 2001 16:33:03 +0000 (16:33 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Wed, 31 Oct 2001 16:33:03 +0000 (16:33 +0000)
From-SVN: r46679

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

index a0bac328b725d056cc3f600f79180cad1937ebca..2d435e33b6d601ab9b07b34ad3f37c4f60f75f4d 100644 (file)
@@ -1,3 +1,7 @@
+2001-10-31  Kazu Hirata  <kazu@hxi.com>
+
+       * config/h8300/h8300.md (two anonymous patterns): New.
+
 2001-10-31  Aldy Hernandez  <aldyh@redhat.com>
 
        * tree.h (tree_index): Add support for V16QI and V8HI.
index 6d443054a0a9e680905384bda9e0b446a69e7b5d..07b308bac500007473bb0bedd57dd5e40efa2b9a 100644 (file)
   "xor\\t%X1,%s0"
   [(set_attr "cc" "clobber")
    (set_attr "length" "2")])
+
+(define_insn ""
+  [(set (match_operand:HI 0 "register_operand" "=r")
+        (ior:HI
+           (zero_extend:HI (match_operand:QI 1 "register_operand" "0"))
+           (ashift:HI (match_operand:HI 2 "register_operand" "r")
+                      (const_int 8))))]
+  "REGNO (operands[0]) != REGNO (operands[2])"
+  "mov.b\\t%s2,%t0"
+  [(set_attr "cc" "clobber")
+   (set_attr "length" "2")])
+
+(define_insn ""
+  [(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)
+    && (REGNO (operands[0]) != REGNO (operands[2]))"
+  "mov.w\\t%f2,%e0"
+  [(set_attr "cc" "clobber")
+   (set_attr "length" "2")])