From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5AD5C3858412; Wed, 13 Sep 2023 10:15:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5AD5C3858412 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694600101; bh=RhFDfUsGa80y6mopSz3/6bEI1EBXDfnjmqovZ6fyYoI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=C5jLD/9EgQO8OHn/yUHhfQqXakI1Qyr7NPIE3a7n5bb+iwvaw2M1CSNyrNEQ+xipR vjGaD3eqDQSNOTVdbHGBsk5jQVQBBgT5sTyDQ4Afb1eMx2aTwB9ex1PP12/UAUKf86 uxgftoIbj+FEoz0/bcGw48DHhZ4MGz/PSS9SmGuQ= From: "rguenther at suse dot de" 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 10:15:00 +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: rguenther at suse dot de 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 #38 from rguenther at suse dot de --- On Wed, 13 Sep 2023, juzhe.zhong at rivai dot ai wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110751 >=20 > --- 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? >=20 > My current approach is that I passed scalar 0 to the ELSE VALUE. >=20 > So in the I relax the operand predicate of the cond_len else operand: >=20 > it can be either a register_operand has VECTOR_MODE or a const_int 0 (Not= e that > it > can't be the CONST_VECTOR). I see.=