From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 856593951C2B; Wed, 24 Feb 2021 17:02:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 856593951C2B From: "stefansf at linux dot ibm.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/99253] New: tree-vect-loop wrong code Date: Wed, 24 Feb 2021 17:02:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: stefansf at linux dot ibm.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 keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget 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 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: Wed, 24 Feb 2021 17:02:01 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99253 Bug ID: 99253 Summary: tree-vect-loop wrong code Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: stefansf at linux dot ibm.com Target Milestone: --- Target: s390x, x86_64-*-* int a =3D 0; static int b =3D 0; long c =3D 0; int main() { for (int d =3D 0; d < 8; d++) { a ^=3D c; b =3D a; a ^=3D 1; } if (b !=3D 1) __builtin_abort(); return 0; } Aborts when built with: gcc -O3 t.c Bisection stops at commit 04bff1bbfc11a974342c0eb0c0d65d902e36e82e on IBM Z= and at commit b7ff7cef5005721e78d6936bed3ae1c059b4e8d2 on x86 =C2=AF\_(=E3=83= =84)_/=C2=AF=