OSDN Git Service

* config/h8300/h8300.md (two anonymous patterns): New.
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 May 2002 12:36:03 +0000 (12:36 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 May 2002 12:36:03 +0000 (12:36 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53955 138bc75d-0d04-0410-961f-82ee72b054a4

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

index f7a4c60..95ce7d2 100644 (file)
@@ -1,3 +1,7 @@
+2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md (two anonymous patterns): New.
+
 2002-05-28  David S. Miller  <davem@redhat.com>
 
        * config/sparc/sparc.md (cpu): Tidy.
index 5dad996..1359a01 100644 (file)
   "mov.w\\t%f2,%e0"
   [(set_attr "cc" "clobber")
    (set_attr "length" "2")])
+
+(define_insn_and_split ""
+  [(set (pc)
+       (if_then_else (eq (zero_extract:SI (subreg:SI (match_operand:QI 0 "register_operand" "") 0)
+                                          (const_int 1)
+                                          (const_int 7))
+                         (const_int 0))
+                     (label_ref (match_operand 1 "" ""))
+                     (pc)))]
+  ""
+  "#"
+  ""
+  [(set (cc0)
+       (match_dup 0))
+   (set (pc)
+       (if_then_else (ge (cc0)
+                         (const_int 0))
+                     (label_ref (match_dup 1))
+                     (pc)))]
+  "")
+
+(define_insn_and_split ""
+  [(set (pc)
+       (if_then_else (ne (zero_extract:SI (subreg:SI (match_operand:QI 0 "register_operand" "") 0)
+                                          (const_int 1)
+                                          (const_int 7))
+                         (const_int 0))
+                     (label_ref (match_operand 1 "" ""))
+                     (pc)))]
+  ""
+  "#"
+  ""
+  [(set (cc0)
+       (match_dup 0))
+   (set (pc)
+       (if_then_else (lt (cc0)
+                         (const_int 0))
+                     (label_ref (match_dup 1))
+                     (pc)))]
+  "")