From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21305 invoked by alias); 13 Mar 2003 00:46:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 21254 invoked by uid 71); 13 Mar 2003 00:46:00 -0000 Date: Thu, 13 Mar 2003 00:46:00 -0000 Message-ID: <20030313004600.21253.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Richard Henderson Subject: Re: optimization/8178: __builtin_ffs broken Reply-To: Richard Henderson X-SW-Source: 2003-03/txt/msg00751.txt.bz2 List-Id: The following reply was made to PR optimization/8178; it has been noted by GNATS. From: Richard Henderson To: Volker Reichelt Cc: christianbiere@gmx.de, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, falk.hueffner@student.uni-tuebingen.de, ebotcazou@libertysurf.fr, gcc-patches@gcc.gnu.org Subject: Re: optimization/8178: __builtin_ffs broken Date: Wed, 12 Mar 2003 16:42:15 -0800 On Wed, Mar 12, 2003 at 01:30:29PM +0100, Volker Reichelt wrote: > I can confirm that the problem is still present on k6. > According to Phil's tester the problem for the ix86 was fixed > between 2003-01-31 and 2003-02-01. Backporting the patch you mention isn't an option, but this bug is fixable for 3.2/3.3 trivially. r~ * config/i386/i386.md (ffssi2): Tighten op1 predicate to match the requirements of the output insns. Index: gcc/config/i386/i386.md =================================================================== RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.md,v retrieving revision 1.404.2.10 diff -c -p -d -u -r1.404.2.10 i386.md --- gcc/config/i386/i386.md 12 Mar 2003 09:35:27 -0000 1.404.2.10 +++ gcc/config/i386/i386.md 13 Mar 2003 00:41:08 -0000 @@ -13671,7 +13671,7 @@ (define_expand "ffssi2" [(set (match_operand:SI 0 "nonimmediate_operand" "") - (ffs:SI (match_operand:SI 1 "general_operand" "")))] + (ffs:SI (match_operand:SI 1 "nonimmediate_operand" "")))] "" { rtx out = gen_reg_rtx (SImode), tmp = gen_reg_rtx (SImode);