summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-02 02:42:57 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-02 02:42:57 +0000
commitcc61f43e97ce49dad11eb09c055cf7e3c36fbae1 (patch)
tree403f1c3c3c68c00f8522d74a4631e8401a121c9f
parent1c75fadff6408e43af9140c92d3bc4e7a1e2f9d6 (diff)
downloadgcc-cc61f43e97ce49dad11eb09c055cf7e3c36fbae1.tar.gz
* config/h8300/h8300.md: Reorder some patterns.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60770 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/h8300/h8300.md40
2 files changed, 24 insertions, 20 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 26a3372b678..84f518e0d3f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
+ * config/h8300/h8300.md: Reorder some patterns.
+
+2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
+
* config/h8300/h8300.c (output_logical_op): Fix a warning.
2003-01-01 Neil Booth <neil@daikokuya.co.uk>
diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md
index e9922afb426..cce5181ab11 100644
--- a/gcc/config/h8300/h8300.md
+++ b/gcc/config/h8300/h8300.md
@@ -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"
@@ -2447,26 +2467,6 @@
[(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")])
-
;; Storing a part of HImode to QImode.
(define_insn ""