From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29804 invoked by alias); 9 May 2008 19:05:15 -0000 Received: (qmail 29614 invoked by uid 48); 9 May 2008 19:04:32 -0000 Date: Fri, 09 May 2008 19:05:00 -0000 Subject: [Bug middle-end/36194] New: [4.1/4.2/4.3/4.4 Regression] Truncation optimization in combine can remove necessary truncations X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "nemet 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-05/txt/msg00746.txt.bz2 On mips64-linux-gnu the following testcase aborts: void abort (void); __attribute__ ((noinline)) void f (int i) { if (i != 0x87654321) abort (); asm (""); } __attribute__ ((noinline)) void g (long long a) { f (a); asm (""); } main () { g (0x1234567887654321ll); return 0; } -- Summary: [4.1/4.2/4.3/4.4 Regression] Truncation optimization in combine can remove necessary truncations Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: nemet at gcc dot gnu dot org ReportedBy: nemet at gcc dot gnu dot org GCC target triplet: mips64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36194