This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] h8300.md: Reorder some patters.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 01 Jan 2003 21:43:05 -0500 (EST)
- Subject: [patch] h8300.md: Reorder some patters.
Hi,
Attached is a patch to reorder some patterns for readability.
Committed as obvious.
Kazu Hirata
2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.md: Reorder some patterns.
Index: h8300.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.md,v
retrieving revision 1.139
diff -u -r1.139 h8300.md
--- h8300.md 31 Dec 2002 21:06:43 -0000 1.139
+++ h8300.md 2 Jan 2003 02:40:29 -0000
@@ -2409,6 +2409,26 @@
[(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"
@@ -2444,26 +2464,6 @@
&& REG_P (operands[1])
&& REGNO (operands[0]) != REGNO (operands[1])"
"xor\\t%X1,%w0"
- [(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")])