From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9015F3857B9B; Mon, 3 Jul 2023 08:05:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9015F3857B9B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688371547; bh=zUtshZt/WAwWjrzwWUYMf8CQNEWeLefcOWDM7VWSBBk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jrkw+jOUvDVy8/wWSkbA9zeGClZJmAcOt1n1YAPRtsS167ap8Kdw8PyRJiU1cz0fZ 1ficdE2VSHPk0ccghUpIyfK/13TdvdzUIzpN1wUqsqHKOPqJO3eLdUOrx8ADrIgm2N lX34dYAraiYp4bmD/WdlJRDOeJLJjzRL85aJ3xXg= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110506] [14 Regression] Ice: tree check: expected none of vector_type, have vector_type in get_value_for_expr, at tree-ssa-ccp.cc:686 Date: Mon, 03 Jul 2023 08:05: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: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth 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=3D110506 --- Comment #6 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:bd7e9856fe5bbeb487797476c4fffb660f63cf4f commit r14-2255-gbd7e9856fe5bbeb487797476c4fffb660f63cf4f Author: Richard Biener Date: Mon Jul 3 08:28:17 2023 +0200 tree-optimization/110506 - bogus non-zero mask in CCP for vector types get_value_for_expr was blindlessly using TYPE_PRECISION to produce a mask for vector typed entities which the new tree checking now catches. PR tree-optimization/110506 * tree-ssa-ccp.cc (get_value_for_expr): Check for integral type before relying on TYPE_PRECISION to produce a nonzero mask. * gcc.dg/pr110506.c: New testcase.=