From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15660 invoked by alias); 19 Oct 2015 14:47:01 -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 15546 invoked by uid 48); 19 Oct 2015 14:46:58 -0000 From: "matz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/68015] New: ICE in s390_emit_compare Date: Mon, 19 Oct 2015 14:47: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: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: matz at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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 bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-10/txt/msg01500.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68015 Bug ID: 68015 Summary: ICE in s390_emit_compare Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: matz at gcc dot gnu.org Target Milestone: --- $ cat s390x-ice-datetime.i /* -O2 -march=3Dz196 --> ICE in s390_emit_compare */ extern long useme (long, ...); void foo (void) { long secs =3D useme (41); long utc_secs =3D useme (42); long h, m; utc_secs =3D useme (42); h =3D secs / 3600; m =3D secs / 60; if (utc_secs >=3D 86400) { m =3D 59; h--; if (h < 0) { h =3D 23; } } useme(h,m); } $ ./cc1 -fpreprocessed -march=3Dz196 -O2 s390x-ice-datetime.i=20 s390x-ice-datetime.i: In function =E2=80=98foo=E2=80=99: s390x-ice-datetime.i:21:1: internal compiler error: in s390_emit_compare, at config/s390/s390.c:1708 } ^ 0x10f3155 s390_emit_compare(rtx_code, rtx_def*, rtx_def*) ../../gcc/gcc/config/s390/s390.c:1707 0x1262985 gen_movdicc(rtx_def*, rtx_def*, rtx_def*, rtx_def*) ../../gcc/gcc/config/s390/s390.md:6112 0xc2beb2 insn_gen_fn::operator()(rtx_def*, rtx_def*, rtx_def*, rtx_def*) co= nst ../../gcc/gcc/recog.h:303 0xc2b98e maybe_gen_insn(insn_code, unsigned int, expand_operand*) ../../gcc/gcc/optabs.c:6721 0xc2bc8b maybe_expand_insn(insn_code, unsigned int, expand_operand*) ../../gcc/gcc/optabs.c:6751 0xc259b8 emit_conditional_move(rtx_def*, rtx_code, rtx_def*, rtx_def*, machine_mode, rtx_def*, rtx_def*, machine_mode, int) ../../gcc/gcc/optabs.c:4201 0x13d8f38 noce_emit_cmove ../../gcc/gcc/ifcvt.c:1607 0x13dd882 cond_move_convert_if_block ../../gcc/gcc/ifcvt.c:3449 0x13ddc09 cond_move_process_if_block ../../gcc/gcc/ifcvt.c:3536 0x13de284 noce_find_if_block ../../gcc/gcc/ifcvt.c:3704 0x13de93b find_if_header ../../gcc/gcc/ifcvt.c:3905 0x13e1434 if_convert ../../gcc/gcc/ifcvt.c:5051 0x13e1773 execute ../../gcc/gcc/ifcvt.c:5198 >>From gcc-bugs-return-499946-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 19 14:50:51 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 100373 invoked by alias); 19 Oct 2015 14:50:51 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 100189 invoked by uid 48); 19 Oct 2015 14:50:46 -0000 From: "matz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/68015] ICE in s390_emit_compare Date: Mon, 19 Oct 2015 14:50: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: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: matz at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: cc 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-10/txt/msg01501.txt.bz2 Content-length: 614 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68015 Michael Matz changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |krebbel at gcc dot gnu.org --- Comment #1 from Michael Matz --- This also happens on the gcc-5-branch (as of now, i.e. r228958). It requires the -march=z196, and it hits us in multiple packages (the testcase extracted from perl-DateTime, but e.g. also in qt3). This -march level is the default for us.