From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 124CA3858C2F; Wed, 19 Oct 2022 06:28:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 124CA3858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666160909; bh=PYAIYHtIvrueV+Nn83rNCzgKtDjqwHdQULdd9tShRjk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rVDiZKcIYvbq9XEdIYISahmJQ0YR3A3bQexpZLW38StsD2/phMmedvT2wbNT7LNfb NjQ0+xWNIjPBW1ypotRX5LHGJYmvngmg1dAHZUSw+BXgi0nr/WfJRT1nRo92SuAEDq MmIXR8ACyiXOp9mhFyYYaoFUWBXeEwjuvRmSHNXM= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/107057] [10/11/12/13 Regression] ICE in extract_constrain_insn, at recog.cc:2692 Date: Wed, 19 Oct 2022 06:28:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code, ra X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107057 --- Comment #4 from Hongtao.liu --- It lookes like after replace equiv value, the pattern turns into 3482(insn 76 67 101 5 (set (reg/v:V2DF 108 [ x ]) 3483 (vec_concat:V2DF (const_double:DF 1.0e+0 [0x0.8p+1]) 3484 (const_double:DF 1.0e+0 [0x0.8p+1]))) "/:7:10 5956 {vec_concatv2df} 3485 (expr_list:REG_EQUAL (const_vector:V2DF [ 3486 (const_double:DF 1.0e+0 [0x0.8p+1]) repeated x2 3487 ]) 3488 (nil))) and in op1 and op2(the same as op1) is forced to mem separately with=20 3734(insn 76 67 101 5 (set (reg/v:V2DF 108 [ x ]) 3735 (vec_concat:V2DF (mem/u/c:DF (reg:DI 330) [0 S8 A64]) 3736 (const_double:DF 1.0e+0 [0x0.8p+1]))) "":7:10 5956 {vec_concatv2df} 3737 (expr_list:REG_EQUAL (const_vector:V2DF [ 3738 (const_double:DF 1.0e+0 [0x0.8p+1]) repeated x2 3739 ]) 3740 (nil))) 3741(insn 76 67 101 5 (set (reg/v:V2DF 108 [ x ]) 3742 (vec_concat:V2DF (mem/u/c:DF (reg:DI 330) [0 S8 A64]) 3743 (mem/u/c:DF (symbol_ref/u:DI ("*.LC0") [flags 0x2]) [0 S8 A64]))) "test.c":7:10 5956 {vec_concatv2df} 3744 (expr_list:REG_EQUAL (const_vector:V2DF [ 3745 (const_double:DF 1.0e+0 [0x0.8p+1]) repeated x2 3746 ]) 3747 (nil))) 3755(insn 76 67 101 5 (set (reg/v:V2DF 108 [ x ]) 3756 (vec_concat:V2DF (mem/u/c:DF (reg:DI 330) [0 S8 A64]) 3757 (mem/u/c:DF (reg:DI 331) [0 S8 A64]))) "test.c":7:10 5956 {vec_concatv2df} 3758 (expr_list:REG_EQUAL (const_vector:V2DF [ 3759 (const_double:DF 1.0e+0 [0x0.8p+1]) repeated x2 3760 ]) 3761 (nil))) but gcc do set goal_alt_win[2] as false, but ignored it since below codes thought it's already matched before. 4507 /* Operands that match previous ones have already been handled. = */ 4508=3D> if (goal_alt_matches[i] >=3D 0) 4509 continue;=