From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A55503858D3C; Wed, 8 Nov 2023 11:24:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A55503858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699442695; bh=Yw3KJL+u/epASdw5s94FZlk3WFv1ox5LPJe1MG6oVck=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uOubJQLOg5KPW8hJH1OIzYVzTKbgfJzP8wKiWeLtofYyFaZ1UxpEKMG4jSvDOVhMB 01GIjed7Togp2kgucgfq5Mj7DpaywEHt4fdpFELzKgpnvxz5ZF+5OkVh/YJnyjtzZa xFDQxZhunGQwI3U0LI8UcprW5tTDVri1jnrmW440= From: "rdapp at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/112406] [14 Regression] Several SPECCPU 2017 benchmarks fail with on internal compiler error: in expand_insn, at optabs.cc:8305 after g:01c18f58d37865d5f3bbe93e666183b54ec608c7 Date: Wed, 08 Nov 2023 11:24:55 +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 X-Bugzilla-Severity: normal X-Bugzilla-Who: rdapp at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 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=3D112406 --- Comment #9 from Robin Dapp --- I believe the problem is that in if (vectype) vector_type =3D vectype; else if (VECT_SCALAR_BOOLEAN_TYPE_P (TREE_TYPE (op)) && VECTOR_BOOLEAN_TYPE_P (stmt_vectype)) vector_type =3D truth_type_for (stmt_vectype); else vector_type =3D get_vectype_for_scalar_type (loop_vinfo, TREE_TYPE = (op)); we don't expect a COND_OP and wrongly deduce the vector type from the scalar type (because !VECTOR_BOOLEAN_TYPE_P (stmt_vectype)). Maybe we need to che= ck whether we look at the mask operand of a conditional operation and use the statement's vectype in that case.=