This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: sets_cc0_p fixes
- To: Roman Zippel <zippel at linux-m68k dot org>
- Subject: Re: sets_cc0_p fixes
- From: Richard Henderson <rth at redhat dot com>
- Date: Wed, 25 Jul 2001 23:42:46 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <Pine.LNX.4.33.0107260440380.29211-100000@serv>
On Thu, Jul 26, 2001 at 05:11:49AM +0200, Roman Zippel wrote:
> We can now either fix all callers or add this to sets_cc0_p:
>
> if (GET_RTX_CLASS (GET_CODE (x) == 'i'))
> x = PATTERN (x);
Hum. It may be easier to do this, because it's too easy to forget.
Your patch isn't correct either, becase of these:
> - if (sets_cc0_p (PREV_INSN (copy)))
> + if (sets_cc0_p (PREV_INSN (PATTERN (copy))))
The PATTERN goes on the outside.
r~