From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CEF3B3858C66; Mon, 20 Mar 2023 20:22:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CEF3B3858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679343779; bh=n67bsOuShXUyV0HHMU2MLqgssyo6r0ZMurgX+KqKTzw=; h=From:To:Subject:Date:From; b=QY5tthkp5q+TKG27izzFcoNPcAiI2YV/HlSCa1sbWRbaPycFnY2m+jAlKlCdFPEtu 53S5+bU5CBkPhB/SZ2MnzopjSgrFNyqhgQsux0Ryv3Qr+dxXCa6bSBbctaiQFJrZW3 Qv2SX5hOwk/Bw+FbBm17fjaOMBUIBd8MxHMY9bPM= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109219] New: csmith: ice in vect_slp_analyze_node_operations_1, at tree-vect-slp.cc:5954 Date: Mon, 20 Mar 2023 20:22:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com 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=3D109219 Bug ID: 109219 Summary: csmith: ice in vect_slp_analyze_node_operations_1, at tree-vect-slp.cc:5954 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- For this C code: safe_lshift_func_int32_t_s_s_left, safe_lshift_func_int32_t_s_s_right, safe_sub_func_uint64_t_u_u_ui2, safe_mul_func_uint64_t_u_u_ui2, g_79_2, g_97_l_439; g_97() { unsigned short __trans_tmp_16; long __trans_tmp_15; int __trans_tmp_14, __trans_tmp_7; int *l_437 =3D g_97; for (; g_97_l_439; g_97_l_439 +=3D 1) { char l_502 =3D 0; for (; l_502 < 4; l_502++) { __trans_tmp_14 =3D safe_lshift_func_int32_t_s_s_right >=3D 2 || safe_lshift_func_int32_t_s_s_left ?: safe_lshift_func_int32_t_s_s_right; __trans_tmp_15 =3D __trans_tmp_14 * safe_mul_func_uint64_t_u_u_ui2; __trans_tmp_16 =3D -__trans_tmp_15; __trans_tmp_7 =3D (__trans_tmp_16 ^ 65535UL) - safe_sub_func_uint64_t_u_u_ui2; *l_437 ^=3D (short)(__trans_tmp_7 ^ g_79_2); } } } main() {} when compiled by recent gcc trunk and compiler flag -O3, does this: $ ~/gcc/results/bin/gcc -c -w -O3 bug900.c during GIMPLE pass: vect bug900.c: In function =E2=80=98g_97=E2=80=99: bug900.c:4:1: internal compiler error: in vect_slp_analyze_node_operations_= 1, at tree-vect-slp.cc:5954 4 | g_97() { | ^~~~ 0x7d6a29 vect_slp_analyze_node_operations_1 ../../trunk.year/gcc/tree-vect-slp.cc:5954 0x7d6a29 vect_slp_analyze_node_operations ../../trunk.year/gcc/tree-vect-slp.cc:6147 0x119b14f vect_slp_analyze_node_operations ../../trunk.year/gcc/tree-vect-slp.cc:6126 0x119b14f vect_slp_analyze_node_operations ../../trunk.year/gcc/tree-vect-slp.cc:6126 It is fine at -O2: $ ~/gcc/results/bin/gcc -c -w -O2 bug900.c $=20 The bug has existed since sometime before 20220403.=