From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27003 invoked by alias); 3 Jun 2004 04:27:32 -0000 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 Received: (qmail 26987 invoked by uid 48); 3 Jun 2004 04:27:31 -0000 Date: Thu, 03 Jun 2004 04:27:00 -0000 From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20040603042727.15792.pinskia@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug rtl-optimization/15792] New: missed subreg optimization X-Bugzilla-Reason: CC X-SW-Source: 2004-06/txt/msg00312.txt.bz2 List-Id: int test(unsigned long long x) { int g = (int)x|((int)(x>>32)); if (g) gh(); } int test1(unsigned long long x) { if (x) gh(); } These two functions should produce the same asm but test produces better asm. I noticed this when looking PR 11873. -- Summary: missed subreg optimization Product: gcc Version: 3.5.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement Priority: P2 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC target triplet: i686-pc-linux-gnu OtherBugsDependingO 11873 nThis: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15792