From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 526F13858C52; Thu, 5 Oct 2023 17:40:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 526F13858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696527640; bh=B4xHOTHhslLVdo5lUSW5fA64X4bqVFoyvm+Tavif4zg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hrKfR2IsZleugKJvBBJauarE1GTCuKG8AwI8wd3ObuqH6z5UB8H9Opa0RvGs+JgJn RbHlVo+8wVhWJvxwebKySWKYnGnjc9J0c/KwAxB8ZEQRj+BVPjKW7CRVUYlMnQcHxZ a8iiXX0oYmJNq6xDHt4mkJOnJ8WORhtJy0nEkhDA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/111699] [14 Regression] ICE: SIGSEGV: infinite recursion in fold_build3_loc/fold_ternary_loc/generic_simplify_VEC_COND_EXPR Date: Thu, 05 Oct 2023 17:40:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code, needs-bisection 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: 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=3D111699 --- Comment #2 from Andrew Pinski --- (simplify (vec_cond (vec_cond:s @0 @3 integer_zerop) @1 @2) (if (optimize_vectors_before_lowering_p () && types_match (@0, @3)) (vec_cond (bit_and @0 @3) @1 @2))) goes into an infinite loop with fold_build3 as the fold_build2:BIT_AND of: (gdb) p debug_generic_expr(captures[1]) v =3D=3D { 0, 0, 0, 0, 0, 0, 0, 0 } $9 =3D void (gdb) p debug_generic_expr(captures[2]) { 0, -1, -1, -1, -1, -1, -1, -1 } Creates a vec_cond ...=