This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR optimization/8178 (x86)
- From: Richard Henderson <rth at redhat dot com>
- To: Eric Botcazou <ebotcazou at libertysurf dot fr>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 18 Oct 2003 11:17:09 -0700
- Subject: Re: [PATCH] Fix PR optimization/8178 (x86)
- References: <200310172331.45090.ebotcazou@libertysurf.fr>
On Sat, Oct 18, 2003 at 12:20:35AM +0200, Eric Botcazou wrote:
> [(parallel [(set (match_dup 2) (const_int 0))
> (clobber (reg:CC 17))])
> (parallel [(set (reg:CCZ 17) (compare:CCZ (match_dup 1) (const_int 0)))
> (set (match_dup 0) (ctz:SI (match_dup 1)))])
> (set (strict_low_part (match_dup 3))
> (eq:QI (reg:CCZ 17) (const_int 0)))
> (parallel [(set (match_dup 2) (neg:SI (match_dup 2)))
> (clobber (reg:CC 17))])
> (parallel [(set (match_dup 0) (ior:SI (match_dup 0) (match_dup 2)))
> (clobber (reg:CC 17))])
> (parallel [(set (match_dup 0) (plus:SI (match_dup 0) (const_int 1)))
> (clobber (reg:CC 17))])]
> {
> operands[3] = gen_lowpart (QImode, operands[2]);
> })
The correct fix is to remove the first pattern of the split
and invoke ix86_expand_clear from the { } .
r~