From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 461693858D1E; Fri, 8 Sep 2023 14:55:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 461693858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694184902; bh=ZmhbZn/kMLp8hTnCRw1v/xqtd9+NLAmLhldaibDgE18=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xip9AgWfjZED+5TI+1bMytk7a22NSwEP8GV5lTJYeoKsNTVyamdKbyOsDBSeRJUSY NSdIU9++MBVazJLotdz/E9SLOzqnLbYoBPUYDGABjCsgnvL4/pJIvAIiM5b4K4YCmE b28Na6twnsBFerMcQT0XMNyMdbRmzn3tTE0odhkU= From: "rdapp at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/111337] ICE in gimple-isel.cc for RISC-V port Date: Fri, 08 Sep 2023 14:55:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rdapp 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: cc 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=3D111337 Robin Dapp changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rdapp at gcc dot gnu.org --- Comment #1 from Robin Dapp --- This is gcc.dg/pr70252.c BTW. What happens is that, starting with maskdest =3D (vec_cond mask1 1 0) >=3D (vec_cond mask2 1 0) we fold to maskdest =3D mask1 >=3D (vec_cond (mask2 1 0)) and then sink the ">=3D" into the vec_cond so we end up with maskdest =3D vec_cond (mask2 ? mask1 : 0), i.e. a vec_cond with a mask "data mode". In gimple-isel, when the target does not provide a vcond_mask implementation for that (which none does) we assert that the mask mode be MODE_VECTOR_INT. IMHO this should not happen and we should not sink comparisons (that could = be folded to masks) into vec_cond. I'm preparing a patch that prevents the sinking of comparisons for mask typ= es.=