[patch] h8300.md: Add a new insn pattern.

Kazu Hirata kazu@cs.umass.edu
Tue Nov 26 05:49:00 GMT 2002


Hi,

Attached is a patch to add a new pattern for the combiner to exploit.

Tested on h8300 port.  Committed.

Kazu Hirata

2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>

	* config/h8300/h8300.md (an anonymous pattern): New.

Index: h8300.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.md,v
retrieving revision 1.109
diff -u -r1.109 h8300.md
--- h8300.md	25 Nov 2002 20:43:04 -0000	1.109
+++ h8300.md	26 Nov 2002 00:40:47 -0000
@@ -2239,6 +2239,16 @@
   [(set_attr "cc" "clobber")
    (set_attr "length" "2")])
 
+(define_insn ""
+  [(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 ""



More information about the Gcc-patches mailing list