From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B6F6A3857351; Wed, 13 Sep 2023 09:38:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B6F6A3857351 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694597886; bh=IxLH9ofSb1uUYKaoMPs3YqNwV+KwyuAI5UVEa6fbPoA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ml8q6m3JjElnyuiVoYEmRkkJaYve4+9RVCAU5SRS2EdNhGS1dXNiHIPau5WEagS9T jO386TCfghztMmTTyW4NAiATqHTKtcEqOpBUHofFNTAGAWeRblSWFwmJAHgM5v58bJ yLgvo2H1MyjEWZwyoYZIVPOI+vt075XACRrImDkI= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110751] RISC-V: Suport undefined value that allows VSETVL PASS use TA/MA Date: Wed, 13 Sep 2023 09:38:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 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=3D110751 --- Comment #34 from Richard Biener --- The ELSE value of type TYPE would be constructed like tree var =3D create_tmp_var (type); tree else_val =3D get_or_create_ssa_default_def (cfun, var); I'm not sure const0_rtx is a good representation on RTL - how would you distinguish that from a conditional operation on an integer vector with else value zero? Say for an integer division? for (i) if (f[i]) y[i] =3D x[i] / z[i]; else y[i] =3D 0; we don't have a separate "else" value for elements cut off via 'len' vs. elements cut off via 'mask'. On RTL there are "special" RTXen used for this kind of stuff, like (use:mode ..) or (clobber const0_rtx), but I'm the wrong person to ask which one would be most appropriate for a general operand in an otherwise generic instruction. Maybe Richard has a guess.=