From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1D751385780C; Tue, 9 Feb 2021 18:51:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1D751385780C From: "bergner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/99041] New: combine creates invalid address which ICEs in decompose_normal_address Date: Tue, 09 Feb 2021 18:51:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bergner at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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, 09 Feb 2021 18:51:08 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99041 Bug ID: 99041 Summary: combine creates invalid address which ICEs in decompose_normal_address Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: bergner at gcc dot gnu.org Target Milestone: --- Created attachment 50153 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D50153&action=3Dedit creduced test case For a reduced test case from the Eigen library with some MMA builtin usage,= we are ICEing in decompose_normal_address(): bergner@pike:~/gcc/BUGS/MMA/CHIP$ xg++ -B/path/to/gcc -S -mcpu=3Dpower10 -std=3Dc++03 -nostdinc -fno-check-new -fno-common -fstrict-aliasing -ansi -= O2 -w polynomialsolver.ii=20 during RTL pass: reload polynomialsolver.ii: In function =E2=80=98void test_polynomialsolver()=E2= =80=99: polynomialsolver.ii:78:67: internal compiler error: in decompose_normal_address, at rtlanal.c:6754 78 | void test_polynomialsolver() { polynomialsolver< double, 5 >(5); } | ^ 0x10ecf3cf decompose_normal_address /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/rtlanal.c:6754 0x10ecf3cf decompose_address(address_info*, rtx_def**, machine_mode, unsign= ed char, rtx_code) /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/rtlanal.c:6787 0x10cda44f process_address_1 /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/lra-constraints.c:34= 60 0x10cdd80b process_address /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/lra-constraints.c:37= 34 0x10cdd80b curr_insn_transform /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/lra-constraints.c:40= 49 0x10ce497f lra_constraints(bool) /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/lra-constraints.c:51= 38 0x10cc560f lra(_IO_FILE*) /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/lra.c:2336 0x10c535bb do_reload /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/ira.c:5821 0x10c535bb execute /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/ira.c:6007 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. The invalid address comes from: (insn 127 126 128 3 (set (reg:OO 138 [ _41 ]) (unspec:OO [ (mem:V16QI (reg:DI 149 [ ivtmp.49 ]) [0 MEM [(void *)_75]+0 S16 A8]) (mem:V16QI (plus:DI (plus:DI (reg:DI 142 [ _63 ]) (reg:DI 149 [ ivtmp.49 ])) (reg:DI 197)) [0 MEM [(void *)_24 + _16 * 1]+0= S16 A8]) ] UNSPEC_MMA_ASSEMBLE)) 2074 {*mma_assemble_pair} (nil))=