From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 32E5F3865C27; Thu, 20 Jul 2023 13:29:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 32E5F3865C27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689859751; bh=AY/sS2tSqehjMEJ716qsDYEUtt/I1loAdQpjrXB24fA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ro686NfudPm/ePMGw9Arq1JE/G28SG3tALiYwHQzyc9K7G9EqZbAY4sE+t9Blg4oa Njj1ijiJMIfJOxMZeh9+nJRiQF24R+eqMh7KXzfnzwJYqnKlDYevKeM/s6FrynN38U i1r0+XddmXKqYWxqUlSXSDaL9cPj0mJwv1gcGNaU= From: "rsandifo 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: Thu, 20 Jul 2023 13:29:10 +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: rsandifo 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=3D110751 rsandifo at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rsandifo at gcc dot gnu.org --- 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.: a =3D undef b =3D a =3D=3D a is guaranteed to be true, or whether it reduces to: b =3D undef =3D=3D undef which is presumably undef. But I don't think a null operand really helps. The same question would app= ly to: x =3D COND_LEN_ADD (a, b, null, len, bias) y =3D x =3D=3D x vs. 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 Do both of these ys evaluate to true, or is one or both be undefined? So if we're prepared to accept undefinedness, I'd prefer to have a =E2=80= =9Cproper=E2=80=9D representation of it. We could probably adopt LLVM's semantics for undef. (SVE might have some uses for this too.)=