summaryrefslogtreecommitdiff
path: root/gcc/recog.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-13 01:21:52 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-13 01:21:52 +0000
commit7d6080d60a13e6133cfa079ec46ec2c21ffb11d2 (patch)
treedd23b0e7682191ced0f522cfb780043faa7ea52e /gcc/recog.c
parent6f428e8ba056d4e204ce41d5899948abac35d591 (diff)
downloadgcc-7d6080d60a13e6133cfa079ec46ec2c21ffb11d2.tar.gz
* recog.c (validate_replace_rtx_1): Use simplify_gen_binary
instead of plus_constant. * simplify-rtx.c (neg_const_int): New. (simplify_gen_binary, simplify_plus_minus): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47961 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/recog.c')
-rw-r--r--gcc/recog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/recog.c b/gcc/recog.c
index 49d0cd927b1..adcd2d48dc1 100644
--- a/gcc/recog.c
+++ b/gcc/recog.c
@@ -512,7 +512,8 @@ validate_replace_rtx_1 (loc, from, to, object)
separated from this function. */
if (GET_CODE (XEXP (x, 1)) == CONST_INT)
validate_change (object, loc,
- plus_constant (XEXP (x, 0), INTVAL (XEXP (x, 1))), 1);
+ simplify_gen_binary
+ (PLUS, GET_MODE (x), XEXP (x, 0), XEXP (x, 1)), 1);
break;
case MINUS:
if (GET_CODE (XEXP (x, 1)) == CONST_INT