From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 918FD3858403; Fri, 10 Dec 2021 01:49:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 918FD3858403 From: "linkw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103623] error: unable to generate reloads (ICE in curr_insn_transform, at lra-constraints.c:4132), or error: insn does not satisfy its constraints (ICE in extract_constrain_insn_cached, at recog.c:2682) Date: Fri, 10 Dec 2021 01:49:01 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: linkw 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: 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: Fri, 10 Dec 2021 01:49:01 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103623 Kewen Lin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |linkw at gcc dot gnu.org --- Comment #1 from Kewen Lin --- Thanks for reporting this as well as PR103622. Confirmed. It's starting to fail from r12-5752, but isn't a dup of PR10362= 2. With r12-5751, we will get the error messages like: test.c: In function =E2=80=98main=E2=80=99: test.c:2:16: error: =E2=80=98__builtin_unpack_longdouble=E2=80=99 requires = the =E2=80=98-mlong-double-128=E2=80=99 option 2 | #define UNPACK __builtin_unpack_longdouble | ^ test.c:11:15: note: in expansion of macro =E2=80=98UNPACK=E2=80=99 11 | double x0 =3D UNPACK (a, 0); | ^~~~~~ In the previous bif support, __builtin_{pack,unpack}_longdouble are guarded with bif mask (RS6000_BTM_HARD_FLOAT | RS6000_BTM_LDBL128), but new bif sup= port puts them under "always" stanza. One fix seems to introduce one stanza for 128bit long double like previous RS6000_BTM_LDBL128 which is enabled only if (TARGET_LONG_DOUBLE_128 && TARGET_HARD_FLOAT && !TARGET_IEEEQUAD), and guard __builtin_{pack,unpack}_longdouble under this new stanza. I also noticed that there also is a TODO for long double vs. ibm128.=