From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B55253858D28; Thu, 21 Jul 2022 12:28:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B55253858D28 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106360] [13 regression] ICE in many test cases after r13-1745-g4c323130257744 Date: Thu, 21 Jul 2022 12:28:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status 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: Thu, 21 Jul 2022 12:28:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106360 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #2 from Martin Li=C5=A1ka --- Apparently fixed as the revision was reverted (r13-1780-g9a52d6871a268a) Note there's a x86_64-linux-gnu test-case: $ cat gegl.i int gegl_downscale_2x2_u8_dst_data_x; char *data; int babl_format_get_bytes_per_pixel(); void gegl_downscale_2x2_u8_dst_data() { int bpp =3D babl_format_get_bytes_per_pixel(); switch (bpp) case 4: { char *src, *dst =3D gegl_downscale_2x2_u8_dst_data; for (; gegl_downscale_2x2_u8_dst_data_x; gegl_downscale_2x2_u8_dst_data_x++) { dst[0] =3D (src[0] + (unsigned)src[0]) / 4; dst[1] =3D (src[1] + (unsigned)src[1]) / 4; dst[2] =3D (src[2] + (unsigned)src[2]) / 4; dst[3] =3D (src[3] + (unsigned)src[3]) / 4; dst +=3D bpp; src +=3D bpp * 2; } } } $ gcc gegl.i -c -O2 -ftree-vectorize -w during GIMPLE pass: forwprop gegl.i: In function =E2=80=98gegl_downscale_2x2_u8_dst_data=E2=80=99: gegl.i:7:1: internal compiler error: in fold_vec_perm, at fold-const.cc:105= 46 7 | gegl_downscale_2x2_u8_dst_data() { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x7027e4 fold_vec_perm(tree_node*, tree_node*, tree_node*, vec_perm_indices const&) /home/marxin/Programming/gcc/gcc/fold-const.cc:10546 0x16da940 generic_simplify_VEC_PERM_EXPR /dev/shm/objdir/gcc/generic-match.cc:98764 0xbd5ce7 fold_ternary_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*, tree_node*) /home/marxin/Programming/gcc/gcc/fold-const.cc:12844 0x10a75c3 simplify_permutation /home/marxin/Programming/gcc/gcc/tree-ssa-forwprop.cc:2665 0x10aae40 execute /home/marxin/Programming/gcc/gcc/tree-ssa-forwprop.cc:3748 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.=