This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
canonicalize_condition fix
- To: gcc-patches at gcc dot gnu dot org, rth at cygnus dot com
- Subject: canonicalize_condition fix
- From: Jan Hubicka <jh at suse dot cz>
- Date: Mon, 31 Jul 2000 12:26:57 +0200
Hi
The canonicalize_condition determines mode of set insn using sources. This
bombs with my checking code when insn in question is asm statement, that does
have destination of VOIDmode. Determining mode from the source looks much
safer to me.
Honza
Mon Jul 31 11:46:59 CEST 2000 Jan Hubicka <jh@suse.cz>
* loop.c (canonicalize_condition): Use destination, not source to
determine SET's mode.
*** loop.c.bug Mon Jul 31 11:45:37 2000
--- loop.c Mon Jul 31 11:45:39 2000
*************** canonicalize_condition (insn, cond, reve
*** 9024,9030 ****
relevant. */
if (rtx_equal_p (SET_DEST (set), op0))
{
! enum machine_mode inner_mode = GET_MODE (SET_SRC (set));
/* ??? We may not combine comparisons done in a CCmode with
comparisons not done in a CCmode. This is to aid targets
--- 9024,9030 ----
relevant. */
if (rtx_equal_p (SET_DEST (set), op0))
{
! 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