From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 56F5A384B104; Mon, 20 Apr 2020 12:54:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 56F5A384B104 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587387258; bh=87E5hJyVA6dM3fSm3hDPD5ujn5KpyscTZxbanNtN5b8=; h=From:To:Subject:Date:From; b=h4po38fas7DBoSV+5ez8UkESCmunFMC+R5tKDvIMTolLuOUKz0HfIxEfhcZmuAR5s rTMM5HWlqkBb+FgZrnCLQHhYIlpTrz4qVoyHlmBq1xb5bvEnvl8bE3TioijDsAct3L FyBxSicy3KfGhUAlU0V4RMnv4r34X1++WFWG5uTY= From: "doko at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/94670] New: ICE in extract_insn, at recog.c:2310 on s390x-linux-gnu with -march=z13 Date: Mon, 20 Apr 2020 12:54:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: doko at debian dot 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-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2020 12:54:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94670 Bug ID: 94670 Summary: ICE in extract_insn, at recog.c:2310 on s390x-linux-gnu with -march=3Dz13 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: doko at debian dot org Target Milestone: --- Seen on the gcc-8, gcc-9 branches and trunk, worked around with -O2. $ cat hb-set.ii struct f { long operator[](int i) { return c.d[i]; } struct { long d[sizeof 0]; } c; }; template struct o { int g; e h; e &operator[](int i) { e *j; unsigned b =3D i; j =3D &h; return j[b]; } }; int k, m; unsigned l; struct n { struct C { int t() { int p =3D l =3D sizeof(d); for (unsigned b =3D 0; b < l; b++) { long q =3D d[b], d =3D q; k =3D __builtin_popcountl(d); p +=3D k; } return p; } f d; }; o pages; int m_fn1() { unsigned a =3D pages.g; for (unsigned b =3D 0; b < a; b++) m +=3D pages[b].t(); return m; } } r; void s() { r.m_fn1(); } $ s390x-linux-gnu-g++ -c -mbackchain -march=3Dz13 -mzarch -O3 -Wall -Wno-strict-aliasing -std=3Dgnu++98 -fno-stack-protector hb-set.ii hb-set.ii: In function =E2=80=98void s()=E2=80=99: hb-set.ii:40:23: error: unrecognizable insn: 40 | void s() { r.m_fn1(); } | ^ (insn 109 108 110 7 (set (reg:V16QI 1302) (unspec:V16QI [ (subreg:V16QI (subreg:V2DI (reg:V16QI 1300) 0) 0) ] UNSPEC_POPCNT)) "hb-set.ii":25:32 -1 (nil)) during RTL pass: vregs hb-set.ii:40:23: internal compiler error: in extract_insn, at recog.c:2310 Please submit a full bug report, with preprocessed source if appropriate.=