public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "xry111 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114861] LoongArch: ICE building the kernel with -Os Date: Fri, 26 Apr 2024 07:37:15 +0000 [thread overview] Message-ID: <bug-114861-4-pxzLawea6E@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-114861-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114861 Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 --- Comment #2 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- It seems we are missing a constraint for bstrins_<mode>_for_mask: diff --git a/gcc/config/loongarch/loongarch.md b/gcc/config/loongarch/loongarch.md index a316c8fb820..0c86f27e768 100644 --- a/gcc/config/loongarch/loongarch.md +++ b/gcc/config/loongarch/loongarch.md @@ -1543,9 +1543,9 @@ (define_insn "and<mode>3_extended" (set_attr "mode" "<MODE>")]) (define_insn_and_split "*bstrins_<mode>_for_mask" - [(set (match_operand:GPR 0 "register_operand") - (and:GPR (match_operand:GPR 1 "register_operand") - (match_operand:GPR 2 "ins_zero_bitmask_operand")))] + [(set (match_operand:GPR 0 "register_operand" "=r,r") + (and:GPR (match_operand:GPR 1 "register_operand" "r,m") + (match_operand:GPR 2 "ins_zero_bitmask_operand" "i,i")))] "" "#" "" This fixes the ICE on the attached test case. I still need to review other splits and make a reduced test case.
next prev parent reply other threads:[~2024-04-26 7:37 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-04-26 7:00 [Bug target/114861] New: LoongArch: Fail to build " xry111 at gcc dot gnu.org 2024-04-26 7:05 ` [Bug target/114861] LoongArch: ICE building " xry111 at gcc dot gnu.org 2024-04-26 7:37 ` xry111 at gcc dot gnu.org [this message] 2024-04-26 7:41 ` jakub at gcc dot gnu.org 2024-04-26 7:51 ` xry111 at gcc dot gnu.org 2024-04-26 9:29 ` xry111 at gcc dot gnu.org 2024-04-26 14:27 ` [Bug target/114861] [14/15 Regression] " rguenth at gcc dot gnu.org 2024-04-26 15:57 ` xry111 at gcc dot gnu.org 2024-04-27 4:00 ` cvs-commit at gcc dot gnu.org 2024-04-27 4:02 ` cvs-commit at gcc dot gnu.org 2024-04-27 4:03 ` xry111 at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-114861-4-pxzLawea6E@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).