From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 514F83858D39; Thu, 29 Sep 2022 12:52:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 514F83858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664455961; bh=G6UrzMYyWRRSJi03m/Kl/d0FfBQpKWffmfPc9zx1awU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FAKTJklc6WL1qFMzbHcxDtRIsLESZiQ5jv+IHKdNSYPjASClWupqIVb1m0zI1rn5H XdM4HdnYdZCicNcKXKqpCRsE6VeBjj7Z7mjuZ4C+z/RBPbqqKwmJKeNCMfdbCsJqrV NOhLbbAUQ+TdzXefktnTFGB4KQUhbMiPIQJWcJF0= From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107057] [10/11/12/13 Regression] ICE in extract_constrain_insn, at recog.cc:2692 Date: Thu, 29 Sep 2022 12:52:41 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak 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 #2 from Uro=C5=A1 Bizjak --- Reload starts with: (insn 76 67 101 5 (set (reg/v:V2DF 108 [ x ]) (vec_concat:V2DF (reg:DF 182) (reg:DF 182))) "pr107057.c":7:10 5952 {vec_concatv2df} (expr_list:REG_EQUAL (const_vector:V2DF [ (const_double:DF 1.0e+0 [0x0.8p+1]) repeated x2 ]) (nil))) And reloads the insn with: (insn 392 67 393 5 (set (reg:DI 0 ax [330]) (symbol_ref/u:DI ("*.LC0") [flags 0x2])) "pr107057.c":7:10 82 {*movdi_internal} (nil)) (insn 407 393 76 5 (set (reg:DI 4 si [331]) (reg:DI 0 ax [330])) "pr107057.c":7:10 82 {*movdi_internal} (nil)) (insn 76 407 101 5 (set (reg/v:V2DF 24 xmm4 [orig:108 x ] [108]) (vec_concat:V2DF (mem/u/c:DF (reg:DI 0 ax [330]) [0 S8 A64]) (mem/u/c:DF (reg:DI 4 si [331]) [0 S8 A64]))) "pr107057.c":7:10 5952 {vec_concatv2df} (expr_list:REG_EQUAL (const_vector:V2DF [ (const_double:DF 1.0e+0 [0x0.8p+1]) repeated x2 ]) (nil))) Non-matching mem RTXes violate the candidate (x,m,1) constraint (and also i= nsn constraint): (define_insn "vec_concatv2df" [(set (match_operand:V2DF 0 "register_operand" "=3Dx,x,v,x,v,x,x, v,x= ,x") (vec_concat:V2DF (match_operand:DF 1 "nonimmediate_operand" " 0,x,v,m,m,0,x,vm,0,0= ") (match_operand:DF 2 "nonimm_or_0_operand" " x,x,v,1,1,m,m, C,x,m")))] "TARGET_SSE && (!(MEM_P (operands[1]) && MEM_P (operands[2])) || (TARGET_SSE3 && rtx_equal_p (operands[1], operands[2])))"=