+Wed Jan 14 01:26:05 1998 Jeffrey A Law (law@cygnus.com)
+
+ * loop.c (check_dbra_loop): Make sure initial value is a
+ CONST_INT before trying to normalize it.
+
Tue Jan 13 23:27:54 1998 Robert Lipe (robertl@dgii.com)
* sco5.h (ASM_OUTPUT_SECTION_NAME): Refresh from ../svr4.h.
comparison_val = INTVAL (XEXP (comparison, 1));
initial_value = bl->initial_value;
- /* Normalize the initial value if it has no other use
- except as a counter. This will allow a few more loops
- to be reversed. */
- if (no_use_except_counting)
+ /* Normalize the initial value if it is an integer and
+ has no other use except as a counter. This will allow
+ a few more loops to be reversed. */
+ if (no_use_except_counting
+ && GET_CODE (initial_value) == CONST_INT)
{
comparison_val = comparison_val - INTVAL (bl->initial_value);
initial_value = const0_rtx;