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
This commit is contained in:
Jeffrey A Law 1999-12-14 03:26:55 +00:00 committed by Jeff Law
parent edcf698d87
commit 37ac53d9bb
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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);