(subst, shift and rotate cases): Test value of SHIFT_COUNT_TRUNCATED
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 11 Oct 1993 11:38:22 +0000 (07:38 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 11 Oct 1993 11:38:22 +0000 (07:38 -0400)
if it is defined.

From-SVN: r5730

gcc/combine.c

index fa34ce00f51509a48a8436a77a1c0ee6e30d1960..d7bfaf2321bda5ccab02c45310503124d2d1c8d7 100644 (file)
@@ -4674,7 +4674,7 @@ subst (x, from, to, in_dest, unique_copy)
        }
 
 #ifdef SHIFT_COUNT_TRUNCATED
-      else if (GET_CODE (XEXP (x, 1)) != REG)
+      else if (SHIFT_COUNT_TRUNCATED && GET_CODE (XEXP (x, 1)) != REG)
        SUBST (XEXP (x, 1),
               force_to_mode (XEXP (x, 1), GET_MODE (x),
                              ((HOST_WIDE_INT) 1