From: Robin Dapp <rdapp.gcc@gmail.com>
To: Juzhe-Zhong <juzhe.zhong@rivai.ai>, gcc-patches@gcc.gnu.org
Cc: rdapp.gcc@gmail.com, kito.cheng@gmail.com, kito.cheng@sifive.com,
jeffreyalaw@gmail.com
Subject: Re: [PATCH] RISC-V: Support highest-number regno overlap for widen ternary vx instructions
Date: Mon, 4 Dec 2023 13:13:46 +0100 [thread overview]
Message-ID: <f8769554-5973-4c94-9328-78e744fe3513@gmail.com> (raw)
In-Reply-To: <20231204101142.411128-1-juzhe.zhong@rivai.ai>
> +(define_mode_attr widen_ternop_dest_constraint [
> + (RVVM8QI "=vd, vr, vd, vr, vd, vr, ?&vr")
> + (RVVM4QI "=vd, vr, vd, vr, vd, vr, ?&vr")
> + (RVVM2QI "=vd, vr, vd, vr, vd, vr, ?&vr")
> + (RVVM1QI "=vd, vr, vd, vr, vd, vr, ?&vr")
> + (RVVMF2QI "=vd, vr, vd, vr, vd, vr, ?&vr")
> + (RVVMF4QI "=vd, vr, vd, vr, vd, vr, ?&vr")
> + (RVVMF8QI "=vd, vr, vd, vr, vd, vr, ?&vr")
> + (RVVM8HI "=vd, vr, vd, vr, vd, vr, ?&vr")
[...]
I'm fine with avoiding the overlap but I'm not sure this is
easily maintainable because the constraints don't actually
depend on the mode? I suppose this is for easy re-use across
different insns but there are only six(?) widening patterns
so we don't even save lines of code by this?
I guess I would prefer the normal approach of writing it out
explicitly in the pattern. Maybe add a different replacement
method like define_subst in the future to simplify such
situations?
+ "vwmacc<u>.vx\t%0,%z3,%4%p1"
Why the z here? For canonicalization?
Regards
Robin
next prev parent reply other threads:[~2023-12-04 12:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-04 10:11 Juzhe-Zhong
2023-12-04 12:13 ` Robin Dapp [this message]
2023-12-04 13:33 ` 钟居哲
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f8769554-5973-4c94-9328-78e744fe3513@gmail.com \
--to=rdapp.gcc@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jeffreyalaw@gmail.com \
--cc=juzhe.zhong@rivai.ai \
--cc=kito.cheng@gmail.com \
--cc=kito.cheng@sifive.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).