aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@hxi.com>2001-06-13 17:41:19 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2001-06-13 17:41:19 +0000
commita60e88ea1867a20925922f2d79a5275180ebf741 (patch)
treed43aa75f15cd794882b6e3c113855164616b29c2
parent2ee7cd3e814c6a555dd3cbccad4d65e100a10640 (diff)
downloadgcc-a60e88ea1867a20925922f2d79a5275180ebf741.zip
gcc-a60e88ea1867a20925922f2d79a5275180ebf741.tar.gz
gcc-a60e88ea1867a20925922f2d79a5275180ebf741.tar.bz2
h8300.h (OK_FOR_T): Remove.
2001-06-13 Kazu Hirata <kazu@hxi.com> * config/h8300/h8300.h (OK_FOR_T): Remove. (EXTRA_CONSTRAINT): Do not use OK_FOR_T. * config/h8300/h8300.md: Remove alternatives involving inc and dec in the helper patterns for addhi3 and addsi3. From-SVN: r43329
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/h8300/h8300.h9
-rw-r--r--gcc/config/h8300/h8300.md24
3 files changed, 18 insertions, 22 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3800bc6..3e1c875 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2001-06-13 Kazu Hirata <kazu@hxi.com>
+
+ * config/h8300/h8300.h (OK_FOR_T): Remove.
+ (EXTRA_CONSTRAINT): Do not use OK_FOR_T.
+ * config/h8300/h8300.md: Remove alternatives involving inc and dec
+ in the helper patterns for addhi3 and addsi3.
+
2001-06-13 Phil Edwards <pme@sources.redhat.com>
* doc/contrib.texi: Link to libstdc++'s thanks.html for now.
diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h
index d633757..74252e6 100644
--- a/gcc/config/h8300/h8300.h
+++ b/gcc/config/h8300/h8300.h
@@ -846,12 +846,6 @@ struct cum_arg
/* Extra constraints. */
-/* 'T' if valid for dec.[wl] on H8/300H and H8/S. Note that, for
- inc.[wl], we can use 'K', which has already been defined. */
-#define OK_FOR_T(OP) \
- (GET_CODE (OP) == CONST_INT \
- && (INTVAL (OP) == -1 || INTVAL (OP) == -2))
-
/* Nonzero if X is a constant address suitable as an 8-bit absolute on
the H8/300H, which is a special case of the 'R' operand. */
@@ -881,8 +875,7 @@ struct cum_arg
&& GET_CODE (XEXP (OP, 0)) == CONST_INT))
#define EXTRA_CONSTRAINT(OP, C) \
- ((C) == 'T' ? OK_FOR_T (OP) : \
- (C) == 'U' ? OK_FOR_U (OP) : \
+ ((C) == 'U' ? OK_FOR_U (OP) : \
0)
/* GO_IF_LEGITIMATE_ADDRESS recognizes an RTL expression
diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md
index d79750a..a10f723 100644
--- a/gcc/config/h8300/h8300.md
+++ b/gcc/config/h8300/h8300.md
@@ -628,19 +628,17 @@
(set_attr "cc" "none_0hit,none_0hit,clobber,set_zn,set_zn")])
(define_insn ""
- [(set (match_operand:HI 0 "register_operand" "=r,r,r,r,r,r")
- (plus:HI (match_operand:HI 1 "register_operand" "%0,0,0,0,0,0")
- (match_operand:HI 2 "nonmemory_operand" "K,T,L,N,n,r")))]
+ [(set (match_operand:HI 0 "register_operand" "=r,r,r,r")
+ (plus:HI (match_operand:HI 1 "register_operand" "%0,0,0,0")
+ (match_operand:HI 2 "nonmemory_operand" "L,N,n,r")))]
"TARGET_H8300H || TARGET_H8300S"
"@
- inc.w %2,%T0
- dec.w %G2,%T0
adds %2,%A0
subs %G2,%A0
add.w %T2,%T0
add.w %T2,%T0"
- [(set_attr "length" "2,2,2,2,4,2")
- (set_attr "cc" "set_znv,set_znv,none_0hit,none_0hit,set_zn,set_zn")])
+ [(set_attr "length" "2,2,4,2")
+ (set_attr "cc" "none_0hit,none_0hit,set_zn,set_zn")])
(define_split
[(set (match_operand:HI 0 "register_operand" "")
@@ -670,19 +668,17 @@
(set_attr "cc" "clobber")])
(define_insn "addsi_h8300h"
- [(set (match_operand:SI 0 "register_operand" "=r,r,r,r,r,r")
- (plus:SI (match_operand:SI 1 "register_operand" "%0,0,0,0,0,0")
- (match_operand:SI 2 "nonmemory_operand" "K,T,L,N,i,r")))]
+ [(set (match_operand:SI 0 "register_operand" "=r,r,r,r")
+ (plus:SI (match_operand:SI 1 "register_operand" "%0,0,0,0")
+ (match_operand:SI 2 "nonmemory_operand" "L,N,i,r")))]
"TARGET_H8300H || TARGET_H8300S"
"@
- inc.l %2,%S0
- dec.l %G2,%S0
adds %2,%A0
subs %G2,%A0
add.l %S2,%S0
add.l %S2,%S0"
- [(set_attr "length" "2,2,2,2,6,2")
- (set_attr "cc" "set_znv,set_znv,none_0hit,none_0hit,set_zn,set_zn")])
+ [(set_attr "length" "2,2,6,2")
+ (set_attr "cc" "none_0hit,none_0hit,set_zn,set_zn")])
(define_split
[(set (match_operand:SI 0 "register_operand" "")