From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6DD863875429; Wed, 26 Jun 2024 17:10:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6DD863875429 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1719421858; bh=pG8TC30wASko99IH6FayrnM8goH4bx3p9Op3d58Qb9c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SFEQRN7KuxZ/ymifjnTAPcY15yDImWYkIDWzPNPUDu5RJM8VuseZYogEZMEF4lvH+ h2v6fygEvs3nZQOLCk8GceyxlW2l2p0K17TmQ1TI1bzqkiQ4cX7My8teV6gtsxtBiw MxhvmLJE8HijiVnSmbpB7B/Tbnh6Jt3MLZlhL0qA= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/115493] [15 regression] gcc.c-torture/execute/pr94734.c fails on MVE after r15-1054-g202a9c8fe7d Date: Wed, 26 Jun 2024 17:10:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: testsuite-fail, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 15.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=3D115493 --- Comment #15 from Richard Biener --- (In reply to Christophe Lyon from comment #13) > Yes it breaks at the same point, again we are returning an uninitialized > value. > Adding annotate asm OK, looking the fix was only half complete. Can you try diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc index 347dac97e49..6f32867f85a 100644 --- a/gcc/tree-vect-loop.cc +++ b/gcc/tree-vect-loop.cc @@ -6849,7 +6849,7 @@ vect_create_epilog_for_reduction (loop_vec_info loop_vinfo, tree initial_def =3D reduc_info->reduc_initial_values[0]; tree tmp =3D make_ssa_name (new_scalar_dest); epilog_stmt =3D gimple_build_assign (tmp, COND_EXPR, zcompare, - initial_def, new_temp); + initial_def, scalar_results[0]= ); gsi_insert_before (&exit_gsi, epilog_stmt, GSI_SAME_STMT); scalar_results[0] =3D tmp; }=