From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9FA9D3858423; Fri, 3 Dec 2021 20:16:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9FA9D3858423 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103544] [11/12 Regression] compiler crashes when trying to vectorize loop Date: Fri, 03 Dec 2021 20:16:47 +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: 11.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component cf_known_to_work cf_reconfirmed_on short_desc keywords bug_status target_milestone cf_known_to_fail everconfirmed 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 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: Fri, 03 Dec 2021 20:16:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103544 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |tree-optimization Known to work| |10.1.0, 10.3.0 Last reconfirmed| |2021-12-03 Summary|compiler crashes when |[11/12 Regression] compiler |trying to vectorize loop |crashes when trying to | |vectorize loop Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Target Milestone|--- |11.3 Known to fail| |11.1.0, 11.2.0 Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski --- Testcase without any headers: int crash_me(char* ptr, unsigned long size){ short result[16] =3D {0}; unsigned long no_iters =3D 0; for(unsigned long i =3D 0; i < size - 12; i+=3D 13){ for(unsigned long j =3D 0; j < 12; j++){ result[j] +=3D ptr[i + j] - '0'; } no_iters++; } int result_int =3D 0; for(int j =3D 0; j < 12; j++){ int bit_value =3D result[j] > no_iters/2 ? 1 : 0; result_int |=3D bit_value; } return result_int; }=