From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE8A63857C63; Tue, 30 Nov 2021 07:58:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE8A63857C63 From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103463] [12 Regression] ICE: in ix86_attr_length_immediate_default, at config/i386/i386.c:16686 with -Os -fno-tree-dominator-opts -fno-tree-vrp Date: Tue, 30 Nov 2021 07:58:06 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: crazylht at gmail dot com X-Bugzilla-Target-Milestone: 12.0 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: Tue, 30 Nov 2021 07:58:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103463 --- Comment #4 from Hongtao.liu --- (In reply to Hongtao.liu from comment #3) > (In reply to Hongtao.liu from comment #1) > > It should be fixed by > > https://gcc.gnu.org/pipermail/gcc-patches/2021-November/585613.html >=20 > Hmm, it looks to be broken again. I thought is was same problem as https://gcc.gnu.org/pipermail/gcc-regression/2021-November/075893.html, but it's not. It's caused by r12-5558 the insn hit gcc_assert in ix86_attr_length_immediate_default is (insn 20 19 21 2 (parallel [ (set (reg:DI 1 dx [orig:110 bar0_u128_0 ] [110]) (ior:DI (lshiftrt:DI (reg:DI 1 dx [orig:110 bar0_u128_0 ] [110]) (const_int 0 [0])) (subreg:DI (ashift:TI (zero_extend:TI (reg:DI 0 ax [orig:111+8 ] [111])) (const_int 64 [0x40])) 0))) (clobber (reg:CC 17 flags)) which set len =3D 1 and hit gcc_assert (!len); if (IN_RANGE (ival, -128, 127)) { len =3D 1; continue; } }=