From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CCD283858C5F; Wed, 25 Oct 2023 02:35:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CCD283858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698201337; bh=4JD/w7MV4sSwATh144umK7dgF5imqnXC2PgsMymqV0U=; h=From:To:Subject:Date:From; b=D4cObpbhQMD8izD/xt8C0PY2CE5uV7BrtUS9WbK3jL0x17DMlNR7yLhJbNpqRvzrg wHSYLmLGXpCswGlTSdTnScas1lKQ3M0W32ZCIPgIP6yXCU9NHRue9y7H2vDeB5U77z H8TXulWu1qjJGsPoREZjnvnDk2YvRGMgO4+3uCRc= From: "guojiufu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/111971] New: ICE: maximum number of generated reload insns per insn achieved (90) Date: Wed, 25 Oct 2023 02:35:37 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: guojiufu 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111971 Bug ID: 111971 Summary: ICE: maximum number of generated reload insns per insn achieved (90) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: guojiufu at gcc dot gnu.org Target Milestone: --- For the below code, an ICE occurs when built with "-m32 -O2". ``` void foo (unsigned long long *a) { register long long d asm ("r0") =3D 0x24; long long n; asm ("mr %0, %1" : "=3Dr"(n) : "r"(d)); *a++ =3D n; } ``` --------------- 8 | } | ^ 0x2000007c4ca3 __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 0x2000007c4f07 generic_start_main ../csu/libc-start.c:360 0x2000007c4f07 __libc_start_main_impl ../sysdeps/unix/sysv/linux/powerpc/libc-start.c:109 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. ---------------- It is ok if it is "register long d asm ("r0") =3D 0x24;". The 'd' is 'long long' DImode(64bits), but with -m32, "r0" is not 64bits without -mpowerpc64. So, it would say this code would be invalid in some aspects.=