From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7195 invoked by alias); 22 Nov 2005 21:00:39 -0000 Received: (qmail 7187 invoked by uid 48); 22 Nov 2005 21:00:38 -0000 Date: Tue, 22 Nov 2005 21:00:00 -0000 Message-ID: <20051122210038.7186.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/18908] Missed folding opportunities with bools 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/msg03151.txt.bz2 List-Id: ------- Comment #6 from pinskia at gcc dot gnu dot org 2005-11-22 21:00 ------- The current issue with f4 is that (~((int)a)) != 0 is not converted to ((int)a != (~0)) which will then fold to 1, this issue with ~a != 0 not being convert to a != ~0 is PR 24990 which I am working on a fix. Then the only one left in this bug would be f1. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18908