From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 19B9438515E3; Thu, 25 Mar 2021 09:47:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 19B9438515E3 From: "ktkachov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/99766] New: ICE: unable to generate reloads with SVE code Date: Thu, 25 Mar 2021 09:47:15 +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: 11.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-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 keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget 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: Thu, 25 Mar 2021 09:47:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99766 Bug ID: 99766 Summary: ICE: unable to generate reloads with SVE code Product: gcc Version: 11.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 Target Milestone: --- Target: aarch64 #include #include typedef float b __attribute__((__mode__(HF))); typedef struct { b c; b d; } e; int f; e *g; void l(int s) { std::vector m(s); for (; f;) { auto a =3D &g[0]; for (int i;; ++i) { int n =3D i; auto o =3D &a[n]; auto p =3D &m[i]; float16_t q; for (int k; k < s;) for (int j; j < i; ++j) { auto r =3D o; for (k =3D 0; k < s; ++k) p[k].c =3D r[k].c * r[k].d; } for (int k; k < s; ++k) { p[k].c *=3D q; p[k].d *=3D q; } } } } With -std=3Dc++17 -O3 -march=3Darmv8.5-a+sve2 ICEs with: ice.c: In function 'void l(int)': ice.c:31:1: error: unable to generate reloads for: 31 | } | ^ (insn 312 308 326 39 (set (subreg:VNx4SI (reg:VNx8HF 105 [ _17 ]) 0) (unspec:VNx4SI [ (subreg:VNx4BI (reg:VNx16BI 365) 0) (vec_duplicate:VNx4SI (mem/c:SI (plus:DI (reg/f:DI 64 sfp) (const_int 272 [0x110])) [12 S4 A128])) (const_vector:VNx4SI [ (const_int 0 [0]) ]) ] UNSPEC_SEL)) 4825 {sve_ld1rvnx4si} (nil)) during RTL pass: reload This seems to be very recent. A trunk from 23 March doesn't ICE=