]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/lower-subreg.c
alias.c: Use REG_P...
[thirdparty/gcc.git] / gcc / lower-subreg.c
index ea9c6a0d3477914b711df46eeac5f6a4cee0ff18..c8947f9d36ad633da6d7d169c77df0fc69164d30 100644 (file)
@@ -922,7 +922,7 @@ find_decomposable_shift_zext (rtx insn)
     }
   else /* left or right shift */
     {
-      if (GET_CODE (XEXP (op, 1)) != CONST_INT
+      if (!CONST_INT_P (XEXP (op, 1))
          || INTVAL (XEXP (op, 1)) < BITS_PER_WORD
          || GET_MODE_BITSIZE (GET_MODE (op_operand)) != 2 * BITS_PER_WORD)
        return 0;