diff options
author | Corey Minyard <minyard@acm.org> | 2001-12-13 01:21:52 +0000 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-12-12 17:21:52 -0800 |
commit | aff8a8d52b650e3ba60cb8b864f244bf23b67acd (patch) | |
tree | dd23b0e7682191ced0f522cfb780043faa7ea52e /gcc/recog.c | |
parent | c2bd38e89276e521395d42410655af037ee0c3ed (diff) | |
download | gcc-aff8a8d52b650e3ba60cb8b864f244bf23b67acd.zip gcc-aff8a8d52b650e3ba60cb8b864f244bf23b67acd.tar.gz gcc-aff8a8d52b650e3ba60cb8b864f244bf23b67acd.tar.bz2 |
recog.c (validate_replace_rtx_1): Use simplify_gen_binary instead of plus_constant.
* 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.
From-SVN: r47961
Diffstat (limited to 'gcc/recog.c')
-rw-r--r-- | gcc/recog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/recog.c b/gcc/recog.c index 49d0cd9..adcd2d4 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 |