From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B8C98397283C; Mon, 8 Feb 2021 15:31:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B8C98397283C From: "zhan3299 at purdue dot edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug inline-asm/98991] ICE: Max. number of generated reload insns per insn is achieved (90) Date: Mon, 08 Feb 2021 15:31:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: inline-asm X-Bugzilla-Version: 10.2.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: zhan3299 at purdue dot edu X-Bugzilla-Status: WAITING 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: Message-ID: In-Reply-To: References: 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, 08 Feb 2021 15:31:28 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98991 --- Comment #3 from zhan3299 at purdue dot edu --- (In reply to Martin Li=C5=A1ka from comment #1) > Is it a valid or invalid code, please? Hi, sorry for the confusion. I used a simple delta debugging to reduce the test-case, and it seems very confused. Currently, I use C-Reduce to get a simple test-case: --- poc.cc starts --- void a() { float b; asm("" : "=3Drmf"(b) : "0"(0)); &b; } --- poc.cc ends --- run 'gcc poc.cc -fpermissive' and we can get the same ICE. --- error trace starts --- during RTL pass: reload poc.cc: In function 'void a()': poc.cc:5:1: internal compiler error: maximum number of generated reload ins= ns per insn achieved (90) 5 | } | ^ 0x20cb324 lra_constraints(bool) ../../gcc/gcc/lra-constraints.c:4951 0x20ab2c8 lra(_IO_FILE*) ../../gcc/gcc/lra.c:2440 0x1ff80de do_reload() ../../gcc/gcc/ira.c:5523 0x1ff80de (anonymous namespace)::pass_reload::execute(function*) ../../gcc/gcc/ira.c:5709 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. --- error trace ends --- I test it with gcc 10.2.0, but it seems my native 7.5.0 also failed.=