From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 41866398C80F; Fri, 22 Jan 2021 11:04:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 41866398C80F From: "acoplan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/98791] New: ICE in paradoxical_subreg_p (in ira) with SVE, LTO Date: Fri, 22 Jan 2021 11:04:52 +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: acoplan 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 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: Fri, 22 Jan 2021 11:04:52 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98791 Bug ID: 98791 Summary: ICE in paradoxical_subreg_p (in ira) with SVE, LTO Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following fails: $ cat test.c extern char a[]; extern long b[]; void c(unsigned d, unsigned long long g[][13]) { for (int f =3D 0; f < 24; f +=3D d - 45810) { a[f] =3D g[0][2]; b[f] =3D 0; } } static unsigned long long e[1][13]; int main() { c(45811, e); } $ aarch64-elf-gcc -flto -O1 -ftree-vectorize -march=3Darmv8.2-a+sve --param=3Daarch64-autovec-preference=3D3 test.c during RTL pass: ira test.c: In function 'main': test.c:10:27: internal compiler error: in paradoxical_subreg_p, at rtl.h:31= 70 10 | int main() { c(45811, e); } | ^ 0xab2093 paradoxical_subreg_p(machine_mode, machine_mode) /home/alecop01/toolchain/src/gcc/gcc/rtl.h:3170 0xab2093 narrower_subreg_mode(machine_mode, machine_mode) /home/alecop01/toolchain/src/gcc/gcc/rtl.h:3200 0xab2093 update_costs_from_allocno /home/alecop01/toolchain/src/gcc/gcc/ira-color.c:1410 0xab26c5 update_costs_from_copies /home/alecop01/toolchain/src/gcc/gcc/ira-color.c:1480 0xab3790 assign_hard_reg /home/alecop01/toolchain/src/gcc/gcc/ira-color.c:1971 0xabc506 pop_allocnos_from_stack /home/alecop01/toolchain/src/gcc/gcc/ira-color.c:2707 0xabc506 color_allocnos /home/alecop01/toolchain/src/gcc/gcc/ira-color.c:3251 0xabc506 color_pass /home/alecop01/toolchain/src/gcc/gcc/ira-color.c:3363 0xaa5ab6 ira_traverse_loop_tree(bool, ira_loop_tree_node*, void (*)(ira_loop_tree_node*), void (*)(ira_loop_tree_node*)) /home/alecop01/toolchain/src/gcc/gcc/ira-build.c:1776 0xab8649 do_coloring /home/alecop01/toolchain/src/gcc/gcc/ira-color.c:3514 0xab8649 color /home/alecop01/toolchain/src/gcc/gcc/ira-color.c:4885 0xab8649 ira_color() /home/alecop01/toolchain/src/gcc/gcc/ira-color.c:5014 0xa9f999 ira /home/alecop01/toolchain/src/gcc/gcc/ira.c:5654 0xa9f999 execute /home/alecop01/toolchain/src/gcc/gcc/ira.c:5964 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. lto-wrapper: fatal error: aarch64-elf-gcc returned 1 exit status compilation terminated. /home/alecop01/toolchain/build-aarch64-elf/install/lib/gcc/aarch64-elf/11.0= .0/../../../../aarch64-elf/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status The backtrace appears to be the same as PR97092, although that PR doesn't appear to have regressed (at least for the original testcase).=