From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42725 invoked by alias); 8 Apr 2015 16:47:49 -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 42670 invoked by uid 48); 8 Apr 2015 16:47:45 -0000 From: "ktkachov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/65694] [5 Regression] ICE (in decompose, at rtl.h:2007) on arm-linux-gnueabihf Date: Wed, 08 Apr 2015 16:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ktkachov at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ktkachov at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 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-04/txt/msg00584.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65694 --- Comment #6 from ktkachov at gcc dot gnu.org --- (In reply to ktkachov from comment #5) > (In reply to ktkachov from comment #4) > > This looks similar to PR 64600. > > The problem seems to be arm_canonicalize_comparison that > > canonicalizes a comparison with 2147483647 (0x7fffffff) > > into a comparison with that +1, that is 0x80000000 without properly > > sign-extending it into 0xffffffff80000000 (which would make it -2147483648). > > That's not right logic, need to think a bit harder on what to do here... err... Ignore this. I think doing the sign-extend here is the right thing to do. All these numbers close to INT_MIN/MAX are very fiddly :(