From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B2D293857821; Fri, 22 Oct 2021 11:22:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2D293857821 From: "tnfchris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/102897] New: [12 Regression] simplify_permutation ICEs on assert Date: Fri, 22 Oct 2021 11:22:39 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tnfchris at gcc dot gnu.org 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 bug_severity priority component assigned_to reporter target_milestone 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: Fri, 22 Oct 2021 11:22:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102897 Bug ID: 102897 Summary: [12 Regression] simplify_permutation ICEs on assert Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: tnfchris at gcc dot gnu.org Target Milestone: --- The following testcase typedef __attribute__((vector_size(8))) signed char int8x8_t; typedef __attribute__((vector_size(8))) unsigned char uint8x8_t; int8x8_t fn1(int8x8_t val20, char tmp) { uint8x8_t __trans_tmp_3; __trans_tmp_3 =3D (uint8x8_t){tmp}; int8x8_t __a =3D (int8x8_t)__trans_tmp_3; return __builtin_shuffle(__a, val20, (uint8x8_t){}); } ICEs at -O1 and higher with during GIMPLE pass: forwprop : In function 'fn1': :12:1: internal compiler error: in simplify_permutation, at tree-ssa-forwprop.c:2271 12 | } | ^ 0x1000e00 simplify_permutation src/gcc/gcc/tree-ssa-forwprop.c:2271 0x1007ae8 execute src/gcc/gcc/tree-ssa-forwprop.c:3397 That line contains an assert with the comment tree op2_type =3D TREE_TYPE (op2); /* Should have folded this before. */ gcc_assert (op2_type !=3D tgt_type);=