From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 72A9A3938381; Wed, 28 Apr 2021 07:50:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72A9A3938381 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100305] [11/12 Regression] aarch64: ICE in output_operand_lossage with -O3 Date: Wed, 28 Apr 2021 07:50:44 +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: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone 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: Wed, 28 Apr 2021 07:50:44 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100305 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |11.2 --- Comment #5 from Andrew Pinski --- This is the cause here: (insn:TI 39 32 34 (set (reg:V2DF 34 v2 [118]) (vec_concat:V2DF (mem/c:DF (plus:DI (reg/f:DI 31 sp) (const_int 32800 [0x8020])) [2 MEM[(double[3] *)_19][0]= +0 S8 A128]) (mem/c:DF (plus:DI (reg:DI 2 x2 [140]) (const_int 40 [0x28])) [2 MEM[(double[3] *)_19][1]+0 S8 A64]))) "t88.cc":33:14 2479 {load_pair_lanesdf} (expr_list:REG_DEAD (reg:DI 2 x2 [140]) (nil))) That mem RTL is not valid. This instruction is valid before "reload": t88.cc.291r.ira-(insn 39 32 57 2 (set (reg:V2DF 118) t88.cc.291r.ira- (vec_concat:V2DF (mem/c:DF (plus:DI (reg/f:DI 64 sf= p) t88.cc.291r.ira- (const_int -16384 [0xffffffffffffc000])= ) [2 MEM[(double[3] *)_19][0]+0 S8 A128]) t88.cc.291r.ira- (mem/c:DF (plus:DI (reg/f:DI 64 sfp) t88.cc.291r.ira: (const_int -16376 [0xffffffffffffc008])= ) [2 MEM[(double[3] *)_19][1]+0 S8 A64]))) "t88.cc":33:14 2479 {load_pair_lanesd= f} t88.cc.291r.ira- (nil)) But after we get: t88.cc.292r.reload-(insn 39 65 57 2 (set (reg:V2DF 34 v2 [118]) t88.cc.292r.reload- (vec_concat:V2DF (mem/c:DF (plus:DI (reg/f:DI 31= sp) t88.cc.292r.reload- (const_int 32800 [0x8020])) [2 MEM[(double[3] *)_19][0]+0 S8 A128]) t88.cc.292r.reload- (mem/c:DF (plus:DI (reg:DI 2 x2 [140]) t88.cc.292r.reload: (const_int 40 [0x28])) [2 MEM[(doubl= e[3] *)_19][1]+0 S8 A64]))) "t88.cc":33:14 2479 {load_pair_lanesdf} t88.cc.292r.reload- (nil))=