diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/loop.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d8212aff14c..10736c02ce0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue Aug 1 12:34:21 MET DST 2000 Jan Hubicka <jh@suse.cz> + + * loop.c (canonicalize_condition): Use destination, not source to + determine SET's mode. + 2000-07-31 Mark Mitchell <mark@codesourcery.com> * flow.c (clear_log_links): Fix typo. diff --git a/gcc/loop.c b/gcc/loop.c index 20211c67297..ea4a0271762 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -9017,7 +9017,7 @@ canonicalize_condition (insn, cond, reverse, earliest, want_reg) relevant. */ if (rtx_equal_p (SET_DEST (set), op0)) { - enum machine_mode inner_mode = GET_MODE (SET_SRC (set)); + enum machine_mode inner_mode = GET_MODE (SET_DEST (set)); /* ??? We may not combine comparisons done in a CCmode with comparisons not done in a CCmode. This is to aid targets |