From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3121D3858402; Wed, 13 Sep 2023 09:48:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3121D3858402 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694598512; bh=tPB3yA3X9dCoMhRwwzFW8c/FsWeDZ11Nm5tuRLRYbnE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=NvTozW2WFSJ2+YWQS9FHX+0rhWoaoYR1s2XPCowmQHpr3VTCF7vpkpsoAL18PatnQ GtuGPkb4cFBnYTR5rdOYx71pOy/BZJAqJ1+UyzTQ+kx05AoLNznR2xkP2BJyuBM8IX 7v4z3vb3IUK7MyoyyvOTQk2TVnPnQ7Y8eawGNC3Q= From: "juzhe.zhong at rivai dot ai" 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:48:32 +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: juzhe.zhong at rivai dot ai 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 #36 from JuzheZhong --- (In reply to Richard Biener from comment #34) > The ELSE value of type TYPE would be constructed like >=20 > tree var =3D create_tmp_var (type); > tree else_val =3D get_or_create_ssa_default_def (cfun, var); >=20 > 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? My current approach is that I passed scalar 0 to the ELSE VALUE. So in the I relax the operand predicate of the cond_len else operand: it can be either a register_operand has VECTOR_MODE or a const_int 0 (Note = that it can't be the CONST_VECTOR). So, I can distinguish the else operand. If it is a scalar const_int 0, it is undefine. Otherwise, it is always a register operand with a vector mode.=