From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E60703858C74; Wed, 17 Jan 2024 08:31:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E60703858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705480270; bh=DkZ2p9HJtl4Yuzx/EeLmHQ6qCQfnIPFGDKRZy2kDQ6Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=y7/7lQyuxP4g7yPJwdL5OltW7SqGMqleiubUfZpBSupn/IapgF7sjOqzl4kf5LCoG G8zHG9ta6jk++2Q20CPUJ6e5P1NW5NlI9fmLDERmnlz+R+ZxJBIy5GZ3NocGJ9zJbx zroTM3ED1rCVuOnrip9izJj7OwHw2jbF4eVHQk7U= From: "juzhe.zhong at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113431] [14 Regression] Wrong code at -O3 Date: Wed, 17 Jan 2024 08:31:10 +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: 14.0 X-Bugzilla-Keywords: needs-bisection, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: juzhe.zhong at rivai dot ai X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D113431 --- Comment #11 from JuzheZhong --- I think this following: https://godbolt.org/z/5sWEWWGox ARM SVE GCC-11 correctly vectorize this codes. But both GCC-12 and GCC-13 failed to vectorize it. GCC-14 vectorize it in a wrong way. Would it be possible to recover it back to GCC-11 ?=