From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 98F143858C74; Mon, 20 Mar 2023 12:39:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 98F143858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679315995; bh=rJ/eeRzE6uvlizyvQsgVzJh3ESi0J4V3nMdKKAWgnkc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Sc5/jnUTfYiO5Y7LwO+rQc+bmV3AkyZCGMNyuZBZKccy8aD5837W5BKvHswmmBmU+ JihtuNhas3WryB8/7JFl+7iO1tjIOzCPq9Ab2ZPrpk4CJyifT0NOe8GlkD7xN75Frm Y2H8d9iXKtzVi6VRbg1jUoTarKVytv5xxvZRSm84= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109184] [10/11/12/13 Regression] csmith: 2017 bug with -floop-interchange Date: Mon, 20 Mar 2023 12:39:55 +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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109184 --- Comment #8 from Richard Biener --- Reduced testcase: typedef __UINT64_TYPE__ uint64_t; static uint64_t g_1731[7][1] =3D {{0xF75EE82FC4736923LL},{0UL}, {0xF75EE82FC4736923LL},{0UL}, {0xF75EE82FC4736923LL},{0UL}, {0xF75EE82FC4736923LL}}; static int g_149; static unsigned short g_1179; void __attribute__((noipa)) foo () { uint64_t l_1930[5]; int l_1719, l_1721; int i; for (i =3D 0; i < 5; i++) l_1930[i] =3D 0x623D9EDB6316A7CDLL; for (g_149 =3D 0; (g_149 > (-15)); g_149--) for (l_1719 =3D 4; (l_1719 >=3D 1); l_1719 -=3D 1) for (l_1721 =3D 0; (l_1721 >=3D 0); l_1721 -=3D 1) for (g_1179 =3D 0; (g_1179 <=3D 4); g_1179 +=3D 1) g_1731[(l_1719 + 1)][l_1721] &=3D ((0x26L & (((--l_1930[g_1179]) + 0xFC07342370A5FE25LL)))); } int main() { foo (); /* f75ee82fc4736923 0 2 0 0 0 f75ee82fc4736923 */ if (g_1731[0][0] !=3D 0xF75EE82FC4736923LL || g_1731[2][0] !=3D 2 || g_1731[4][0] !=3D 0 || g_1731[6][0] !=3D 0xF75EE82FC4736923LL) __builtin_abort (); return 0; }=