aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2003-03-04 01:22:01 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2003-03-04 01:22:01 +0000
commit8dfb356fa8ebeb3c4a6ab4c79131de0f802e7b90 (patch)
treec045705533a86f8414427c781ff85daba930589b
parent0d9bf032e5d3447f53bb10da134fc5b6fd3a2667 (diff)
downloadgcc-8dfb356fa8ebeb3c4a6ab4c79131de0f802e7b90.zip
gcc-8dfb356fa8ebeb3c4a6ab4c79131de0f802e7b90.tar.gz
gcc-8dfb356fa8ebeb3c4a6ab4c79131de0f802e7b90.tar.bz2
h8300.md (*ixorsi3_ashift_16): New.
* config/h8300/h8300.md (*ixorsi3_ashift_16): New. (*ixorsi3_lshiftrt_16): New. (*iorsi3_ashift_16): Remove. From-SVN: r63756
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/h8300/h8300.md32
2 files changed, 28 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 890fafa..fbd9b6fa 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
+ * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
+ (*ixorsi3_lshiftrt_16): New.
+ (*iorsi3_ashift_16): Remove.
+
+2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
+
* config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
pattern.
diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md
index 1286fd9..4ecd97e 100644
--- a/gcc/config/h8300/h8300.md
+++ b/gcc/config/h8300/h8300.md
@@ -2801,6 +2801,28 @@
[(set_attr "cc" "clobber")
(set_attr "length" "2")])
+(define_insn "*ixorsi3_ashift_16"
+ [(set (match_operand:SI 0 "register_operand" "=r")
+ (match_operator:SI 1 "iorxor_operator"
+ [(ashift:SI (match_operand:SI 2 "register_operand" "r")
+ (const_int 16))
+ (match_operand:SI 3 "register_operand" "0")]))]
+ "TARGET_H8300H || TARGET_H8300S"
+ "%c1.w\\t%f2,%e0"
+ [(set_attr "cc" "clobber")
+ (set_attr "length" "2")])
+
+(define_insn "*ixorsi3_lshiftrt_16"
+ [(set (match_operand:SI 0 "register_operand" "=r")
+ (match_operator:SI 1 "iorxor_operator"
+ [(lshiftrt:SI (match_operand:SI 2 "register_operand" "r")
+ (const_int 16))
+ (match_operand:SI 3 "register_operand" "0")]))]
+ "TARGET_H8300H || TARGET_H8300S"
+ "%c1.w\\t%e2,%f0"
+ [(set_attr "cc" "clobber")
+ (set_attr "length" "2")])
+
;; ior:HI
(define_insn "*iorhi3_ashift_8"
@@ -2835,16 +2857,6 @@
;; ior:SI
-(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"))