]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix an error in a CONST_INT_P patch from 2009.
authorBernd Schmidt <bernds@codesourcery.com>
Mon, 19 May 2014 11:38:14 +0000 (11:38 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Mon, 19 May 2014 11:38:14 +0000 (11:38 +0000)
* simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
shift simplification where it was intended.

From-SVN: r210610

gcc/ChangeLog
gcc/simplify-rtx.c

index d938d1d17a704708b7cffc340e38965c64504cba..57dbd0faa692f9d3584a647079ca4a3b044e67ce 100644 (file)
@@ -1,3 +1,8 @@
+2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
+
+       * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
+       shift simplification where it was intended.
+
 2014-05-19  Christian Bruel  <christian.bruel@st.com>
 
        PR target/61195
index 7fb1c6db63d270b767e59bd2002492b58e9e8e6d..27e04f53439f572abc312bbdb1e8965c7fe1adef 100644 (file)
@@ -884,7 +884,7 @@ simplify_unary_operation_1 (enum rtx_code code, enum machine_mode mode, rtx op)
         so we can perform the above simplification.  */
       if (STORE_FLAG_VALUE == -1
          && GET_CODE (op) == ASHIFTRT
-         && GET_CODE (XEXP (op, 1))
+         && CONST_INT_P (XEXP (op, 1))
          && INTVAL (XEXP (op, 1)) == GET_MODE_PRECISION (mode) - 1)
        return simplify_gen_relational (GE, mode, VOIDmode,
                                        XEXP (op, 0), const0_rtx);