aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1999-12-14 03:26:55 +0000
committerJeff Law <law@gcc.gnu.org>1999-12-13 20:26:55 -0700
commit37ac53d9bb53027fc4bc1112a740c7dee4ca5f11 (patch)
tree10fa1b7c4c77475a19de79e4efb47e103ee0c325
parentedcf698d87520c1e9d16f4b59b827ed037a310c0 (diff)
downloadgcc-37ac53d9bb53027fc4bc1112a740c7dee4ca5f11.zip
gcc-37ac53d9bb53027fc4bc1112a740c7dee4ca5f11.tar.gz
gcc-37ac53d9bb53027fc4bc1112a740c7dee4ca5f11.tar.bz2
combine.c (combine_simplify_rtx): Fix order of checks for (ashiftrt foo C) -> (lt foo (const_int 0)) simplification.
* combine.c (combine_simplify_rtx): Fix order of checks for (ashiftrt foo C) -> (lt foo (const_int 0)) simplification. From-SVN: r30894
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/combine.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e0696bf..7e76aed 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Mon Dec 13 20:25:29 1999 Jeffrey A Law (law@cygnus.com)
+
+ * combine.c (combine_simplify_rtx): Fix order of checks for
+ (ashiftrt foo C) -> (lt foo (const_int 0)) simplification.
+
1999-12-13 Clinton Popetz <cpopetz@cygnus.com>
* config/arm/arm.md (*mulsidi3adddi, *umulsidi3adddi) Backed out
diff --git a/gcc/combine.c b/gcc/combine.c
index f3bd234..33de1bf 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -3823,8 +3823,8 @@ combine_simplify_rtx (x, op0_mode, last, in_dest)
perform the above simplification. */
if (STORE_FLAG_VALUE == -1
- && XEXP (x, 1) == const1_rtx
&& GET_CODE (XEXP (x, 0)) == ASHIFTRT
+ && XEXP (x, 1) == const1_rtx
&& GET_CODE (XEXP (XEXP (x, 0), 1)) == CONST_INT
&& INTVAL (XEXP (XEXP (x, 0), 1)) == GET_MODE_BITSIZE (mode) - 1)
return gen_rtx_combine (GE, mode, XEXP (XEXP (x, 0), 0), const0_rtx);