From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10099 invoked by alias); 27 Feb 2008 14:14:14 -0000 Received: (qmail 9539 invoked by alias); 27 Feb 2008 14:13:26 -0000 Date: Wed, 27 Feb 2008 14:14:00 -0000 Message-ID: <20080227141326.9538.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/35390] [4.3/4.4 Regression] ~~n != n in some cases In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth 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: 2008-02/txt/msg02846.txt.bz2 ------- Comment #6 from rguenth at gcc dot gnu dot org 2008-02-27 14:13 ------- Subject: Bug 35390 Author: rguenth Date: Wed Feb 27 14:12:33 2008 New Revision: 132712 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132712 Log: 2008-02-27 Richard Guenther PR middle-end/35390 * fold-const.c (fold_unary): Return the correct argument, converted to the result type. * gcc.c-torture/execute/pr35390.c: New testcase. PR middle-end/34971 * fold-const.c (fold_binary): Use the types precision, not the bitsize of the mode if folding rotate expressions. Build rotates only for full modes. * gcc.c-torture/execute/pr34971.c: New testcase. Added: branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/execute/pr34971.c branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/execute/pr35390.c Modified: branches/gcc-4_3-branch/gcc/ChangeLog branches/gcc-4_3-branch/gcc/fold-const.c branches/gcc-4_3-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35390