From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17583 invoked by alias); 21 Nov 2014 09:46:23 -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 17539 invoked by uid 48); 21 Nov 2014 09:46:19 -0000 From: "ktkachov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/64015] New: [5.0 Regression] AArch64 ICE due to conditional compare Date: Fri, 21 Nov 2014 09:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc cf_gcctarget attachments.created Message-ID: 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: 2014-11/txt/msg02385.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64015 Bug ID: 64015 Summary: [5.0 Regression] AArch64 ICE due to conditional compare Product: gcc Version: 5.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: ktkachov at gcc dot gnu.org CC: zhenqiang.chen at arm dot com Target: aarch64* Created attachment 34065 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34065&action=edit Reduced testcase Attached testcase ICEs with: ice.c: In function 'test': ice.c:4:1: error: unrecognizable insn: } ^ (insn 8 7 9 2 (set (reg:CC_DGTU 66 cc) (compare:CC_DGTU (and:SI (ne:SI (reg:CC_DGTU 66 cc) (const_int 0 [0])) (gtu:SI (reg/v:SI 79 [ b ]) (const_int 252 [0xfc]))) (const_int 0 [0]))) ice.c:3 -1 (nil)) I've tracked it down to the aarch64 conditional compare patches. r217638 works whereas r217646 has the ICE. -O2 should be enough to reproduce. Zhenqiang, can you take a look please?