aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2002-05-28 12:36:03 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2002-05-28 12:36:03 +0000
commitae12a094d64ceac6fa406c67f1e38e59bdfd95c9 (patch)
treedd8c6e864ca161cceaade5e4ed66678d4c72c4af /gcc
parentc6172f145574ec24f95931012bc8deaa5d2d8e16 (diff)
downloadgcc-ae12a094d64ceac6fa406c67f1e38e59bdfd95c9.zip
gcc-ae12a094d64ceac6fa406c67f1e38e59bdfd95c9.tar.gz
gcc-ae12a094d64ceac6fa406c67f1e38e59bdfd95c9.tar.bz2
* config/h8300/h8300.md (two anonymous patterns): New.
From-SVN: r53955
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/h8300/h8300.md40
2 files changed, 44 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f7a4c60..95ce7d2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md
index 5dad996..1359a01 100644
--- a/gcc/config/h8300/h8300.md
+++ b/gcc/config/h8300/h8300.md
@@ -2179,3 +2179,43 @@
"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)))]
+ "")