From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2BCB43858C5E; Mon, 10 Jul 2023 16:02:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2BCB43858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689004960; bh=cU70Ann0XaaoyckKun0bT0RI5GEoAW09tGdqJGvqYvA=; h=From:To:Subject:Date:From; b=XQ6EI/2DDp99TJDpS53Mylflxa5ROeOoyAnhuvcBE7YANv6+AJRkiwolFV8SP8RDz 2xql16F5XbBdgn6WWNXVC+72wRqjy3iZhMES0F2d90bZOuFeKRy1IuHawS+R4MVytb 00YxI5W+/KVa68jPpZu5FzQVxA0PkVZJ25KvUzGg= From: "seurer at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110616] New: [14 regression] ICE after r14-2117-gdd86a5a69cbda4 Date: Mon, 10 Jul 2023 16:02:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: seurer 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110616 Bug ID: 110616 Summary: [14 regression] ICE after r14-2117-gdd86a5a69cbda4 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- g:dd86a5a69cbda40cf76388a65d3317c91cb2b501, r14-2117-gdd86a5a69cbda4 commit dd86a5a69cbda40cf76388a65d3317c91cb2b501 Author: Richard Biener Date: Thu Jun 22 11:40:46 2023 +0200 tree-optimization/96208 - SLP of non-grouped loads The ICE only occurs with -mcpu=3Dpower7. This is cut down from a much larg= er test thus the warnings. Note that this still fails with r14-2421-g2c60368ab5706a=20 $ /home/seurer/gcc/git/install/gcc-test/bin/gcc -c -o do_fit.o -DSPEC_CPU -DNDEBUG -I. -DHAVE_CONFIG_H -m64 -O2 -mcpu=3Dpower7 failsX.c failsX.c: In function 'calc_similar_ind': failsX.c:32:14: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 32 | return 2*sqrt(rd/rs); | ^~~~ failsX.c:1:1: note: include '' or provide a declaration of 'sqrt' +++ |+#include 1 | typedef int atom_id; failsX.c:32:14: warning: incompatible implicit declaration of built-in func= tion 'sqrt' [-Wbuiltin-declaration-mismatch] 32 | return 2*sqrt(rd/rs); | ^~~~ failsX.c:32:14: note: include '' or provide a declaration of 'sqrt' during GIMPLE pass: vect failsX.c:12:6: internal compiler error: Segmentation fault 12 | real calc_similar_ind(int bRho,int nind,atom_id *index,real mass[], | ^~~~~~~~~~~~~~~~ 0x10cc57eb crash_signal /home/seurer/gcc/git/gcc-test/gcc/toplev.cc:314 0x11d56c7c vect_supportable_dr_alignment(vec_info*, dr_vec_info*, tree_node= *, int) /home/seurer/gcc/git/gcc-test/gcc/tree-vect-data-refs.cc:6817 0x11d5ec8f vect_enhance_data_refs_alignment(_loop_vec_info*) /home/seurer/gcc/git/gcc-test/gcc/tree-vect-data-refs.cc:2044 0x1107d363 vect_analyze_loop_2 /home/seurer/gcc/git/gcc-test/gcc/tree-vect-loop.cc:2772 0x1107ec9b vect_analyze_loop_1 /home/seurer/gcc/git/gcc-test/gcc/tree-vect-loop.cc:3303 0x1107f5f3 vect_analyze_loop(loop*, vec_info_shared*) /home/seurer/gcc/git/gcc-test/gcc/tree-vect-loop.cc:3457 0x110d4607 try_vectorize_loop_1 /home/seurer/gcc/git/gcc-test/gcc/tree-vectorizer.cc:1064 0x110d4607 try_vectorize_loop /home/seurer/gcc/git/gcc-test/gcc/tree-vectorizer.cc:1180 0x110d4e43 execute /home/seurer/gcc/git/gcc-test/gcc/tree-vectorizer.cc:1296 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. $ /home/seurer/gcc/git/install/gcc-test/bin/gcc -c -o do_fit.o -DSPEC_CPU -DNDEBUG -I. -DHAVE_CONFIG_H -m64 -O2 -mcpu=3Dpower8 failsX.c failsX.c: In function 'calc_similar_ind': failsX.c:32:14: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 32 | return 2*sqrt(rd/rs); | ^~~~ failsX.c:1:1: note: include '' or provide a declaration of 'sqrt' +++ |+#include 1 | typedef int atom_id; failsX.c:32:14: warning: incompatible implicit declaration of built-in func= tion 'sqrt' [-Wbuiltin-declaration-mismatch] 32 | return 2*sqrt(rd/rs); | ^~~~ failsX.c:32:14: note: include '' or provide a declaration of 'sqrt' $ cat failsX.c typedef int atom_id; typedef float real; typedef real rvec[3]; static real sqr(real x) { return (x*x); } real calc_similar_ind(int bRho,int nind,atom_id *index,real mass[], rvec x[],rvec xp[]) { int i, j, d; real m, tm, xs, xd, rs, rd; tm=3D0; rs=3D0; rd=3D0; for(j=3D0; j