From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22014 invoked by alias); 8 Jun 2015 09:41:07 -0000 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 Received: (qmail 21946 invoked by uid 48); 8 Jun 2015 09:41:02 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/66444] [5/6 Regression] Miscompilation of Xen since r211078 Date: Mon, 08 Jun 2015 09:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 5.1.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: vries at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-06/txt/msg00650.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66444 --- Comment #7 from vries at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #6) > The 0xe000000000UL constant is probably not very good for ilp32 targets. > Try some < 4GB one if it still reproduces without the patch, or > conditionalize it on __SIZEOF_POINTER__. I've tried with 0xe0000000U. The m64 case still reproduces. With -m32 -mregparm=1 we get: ... .cfi_startproc call bar sall $4, %eax leal -536870912(%eax), %edx movl %edx, %eax call fn1 movl %edx, %eax call fn2 xorl %eax, %eax ret ... The reload_combine doesn't trigger for this case.