From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31866 invoked by alias); 26 Nov 2005 21:43:15 -0000 Received: (qmail 31858 invoked by uid 48); 26 Nov 2005 21:43:13 -0000 Date: Sat, 26 Nov 2005 21:43:00 -0000 Message-ID: <20051126214313.31857.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/23666] Fold does not reduce C - ~a into a + (C+1) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2005-11/txt/msg03669.txt.bz2 List-Id: ------- Comment #4 from pinskia at gcc dot gnu dot org 2005-11-26 21:43 ------- The problem here is my fault, slightly. Fold is converting -(~a) in the NEGATE_EXPR but not in the generic functions to do the negation. I will do the patch for this one. (I am saying that -(~a) is more complex than a+1 which is true). -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23666