From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DEF24385843A; Wed, 6 Mar 2024 08:25:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DEF24385843A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709713559; bh=z3um5wyLXlPDPN1GePSPewBbdr9ZYcdn5+iY16wPBGM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=W3+XBYyuwGdEskfmk3NscyIEosXLi4Nn+Xm6ruKMELEk2x1KEmXczfyvIqKUAQLlR ZERN1e8RfywzrL7qXV6d2yim2gXu+n//S3Vytd5VoW3ByAEwy3FC8pw5JyGBaf1Exv L6GAmjRjseGf0PckAz7ZAa1A7n6bRStAGac5VRbM= From: "belagod at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114108] [14 regression] ICE when building opencv-4.8.1 (error: type mismatch in binary expression) since r14-1833 Date: Wed, 06 Mar 2024 08:25:44 +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: belagod at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: belagod 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=3D114108 --- Comment #9 from Tejas Belagod --- This seems to be the issue: ... VECITYPE is the vector form of PATTERN_STMT's result type. */ static gimple *=20 vect_convert_output (vec_info *vinfo, stmt_vec_info stmt_info, tree type, gimple *pattern_stmt, tree vecitype)=20 ... vect_recog_abd_pattern () currently calls vect_convert_output () with vecty= pe of the new type when it should actually be calling it with pattern_stmt's L= HS's type's vector form. ... stmt =3D vect_convert_output (vinfo, stmt_vinfo, unsign, stmt, unsigned_vectype); .. Testing a fix as we speak...=