From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28680 invoked by alias); 17 Apr 2007 14:15:31 -0000 Received: (qmail 27228 invoked by uid 48); 17 Apr 2007 14:15:07 -0000 Date: Tue, 17 Apr 2007 14:15:00 -0000 Message-ID: <20070417141506.27227.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/31605] [4.3 Regression] VRP eliminates a useful test due with conversion from unsigned int to int 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-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-04/txt/msg01226.txt.bz2 ------- Comment #1 from pinskia at gcc dot gnu dot org 2007-04-17 15:15 ------- The range for cur_bitshift_6 is just completely bogus as there is no overflow with the conversion from unsigned int to int. I am going to check when I get into work if 4.2 also miscompiles this code. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org Severity|normal |blocker Keywords| |wrong-code Summary|VRP eliminates a useful test|[4.3 Regression] VRP |due to overflow |eliminates a useful test due | |with conversion from | |unsigned int to int Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31605