From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 402F83858C42; Fri, 26 Apr 2024 07:37:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 402F83858C42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714117036; bh=Tu3IbAtpevW0YmmbYNO3BArI/z84L16gZiK3VG1zrOY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mzjoEwsoRpuxHSC4izu8Q7+FeBoe9cx/d2tchT5s0m7fPrH4AcwHL9AILEvXiP3I0 XVhCHPFT/SALAtc4ad/BZUF0kzAOgFJ6j9/eOGwQQr2nN5rL7W5qaRKTF6hTp98lx6 hW8ETkUPWr+2JO2TP4dVyVNnoMhDD2HOQtwZuubY= From: "xry111 at gcc dot 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: xry111 at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114861 Xi Ruoyao changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 --- Comment #2 from Xi Ruoyao --- It seems we are missing a constraint for bstrins__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 "and3_extended" (set_attr "mode" "")]) (define_insn_and_split "*bstrins__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" "=3Dr,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.=