]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
combine.c (combine_simplify_rtx): Pass the mode of the shift count...
authorStephen Clarke <stephen.clarke@superh.com>
Fri, 28 Jun 2002 21:34:47 +0000 (21:34 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 28 Jun 2002 21:34:47 +0000 (15:34 -0600)
        * combine.c (combine_simplify_rtx): Pass the mode of the
        shift count, not the shift operation when trying to simplify
        a shift on a SHIFT_COUNT_TRUNCATED target.

From-SVN: r55085

gcc/ChangeLog
gcc/combine.c

index 033fc4baea3ebe6b557532b3562836eb2af8ef08..f5cfca8cd6bdb4567fb2e0103fbc82eb9b9b38ca 100644 (file)
@@ -1,3 +1,9 @@
+2002-06-28  Stephen Clarke  <stephen.clarke@superh.com>
+
+       * combine.c (combine_simplify_rtx): Pass the mode of the
+       shift count, not the shift operation when trying to simplify
+       a shift on a SHIFT_COUNT_TRUNCATED target.
+
 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
 
        * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
index ea12b1309227c9cdf5343b33d3a39ba4df92dc14..c94eddc58e0f1091323eef8fdc93646fb4df501e 100644 (file)
@@ -4583,7 +4583,7 @@ combine_simplify_rtx (x, op0_mode, last, in_dest)
 #ifdef SHIFT_COUNT_TRUNCATED
       else if (SHIFT_COUNT_TRUNCATED && GET_CODE (XEXP (x, 1)) != REG)
        SUBST (XEXP (x, 1),
-              force_to_mode (XEXP (x, 1), GET_MODE (x),
+              force_to_mode (XEXP (x, 1), GET_MODE (XEXP (x, 1)),
                              ((HOST_WIDE_INT) 1
                               << exact_log2 (GET_MODE_BITSIZE (GET_MODE (x))))
                              - 1,