From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21019 invoked by alias); 7 May 2002 03:40:19 -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 20999 invoked by uid 61); 7 May 2002 03:40:17 -0000 Date: Mon, 06 May 2002 20:40:00 -0000 Message-ID: <20020507034017.20998.qmail@sources.redhat.com> To: 105309-quiet@bugs.debian.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, herbert@gondor.apana.org.au, nobody@gcc.gnu.org From: sayle@gcc.gnu.org Reply-To: sayle@gcc.gnu.org, 105309-quiet@bugs.debian.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, herbert@gondor.apana.org.au, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: optimization/3995: i386 optimisation: joining tests X-SW-Source: 2002-05/txt/msg00176.txt.bz2 List-Id: Synopsis: i386 optimisation: joining tests State-Changed-From-To: analyzed->closed State-Changed-By: sayle State-Changed-When: Mon May 6 20:40:16 2002 State-Changed-Why: This problem has been fixed on mainline by the recent patch: 2002-05-06 Roger Sayle * fold-const.c (sign_bit_p): New function. (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and (A & C) != 0 into A < 0, when constant C is the sign bit of A's type. Reapply fold when converting (A & C) == C into (A & C) != 0. We now join the two tests together and generate better code. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3995