From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4E6943858CDB; Thu, 20 Jul 2023 13:32:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4E6943858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689859973; bh=RCGbMQLuwK/W3Bz/v7eefyh+uqRM6z5BHUNQw8o+IkI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QWdrIuPIyStZTUfIuXWTACzLG8tJ1qMhwwJbja+vkjsuzzcgw1nz+vMb2AhocVXDY /2DCKz79HhIUyDXB2XY6V4rNhBrUy6RRMoMjt87fyrYWnEY+rB1GyW14wwMnAMMuP5 8YUb8zUXmr+AFTLH1IsX8DO+jLPjwl7BdJJizchc= 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: Thu, 20 Jul 2023 13:32:52 +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 #14 from rguenther at suse dot de --- On Thu, 20 Jul 2023, rsandifo at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110751 >=20 > rsandifo at gcc dot gnu.org changed: >=20 > What |Removed |Added > -------------------------------------------------------------------------= --- > CC| |rsandifo at gcc dot gnu.= org >=20 > --- Comment #13 from rsandifo at gcc dot gnu.org --- > I understand the concern with undefined values, since it then becomes less > obvious whether e.g.: >=20 > a =3D undef > b =3D a =3D=3D a >=20 > is guaranteed to be true, or whether it reduces to: >=20 > b =3D undef =3D=3D undef >=20 > which is presumably undef. >=20 > But I don't think a null operand really helps. The same question would a= pply > to: >=20 > x =3D COND_LEN_ADD (a, b, null, len, bias) > y =3D x =3D=3D x >=20 > vs. >=20 > x1 =3D COND_LEN_ADD (a, b, null, len, bias) > x2 =3D COND_LEN_ADD (a, b, null, len, bias) > y =3D x1 =3D=3D x2 >=20 > Do both of these ys evaluate to true, or is one or both be undefined? >=20 > So if we're prepared to accept undefinedness, I'd prefer to have a ?prope= r? > representation of it. We could probably adopt LLVM's semantics for undef. >=20 > (SVE might have some uses for this too.) Note I simply proposed 'NULL' as the "proper" representation of it. That doesn't fix any of the semantic issues but I think neither does any other representation ...=