From: Robin Dapp <rdapp.gcc@gmail.com>
To: juzhe.zhong@rivai.ai, gcc-patches@gcc.gnu.org
Cc: rdapp.gcc@gmail.com, richard.sandiford@arm.com, rguenther@suse.de
Subject: Re: [PATCH] Machine Description: Add LEN_MASK_{GATHER_LOAD, SCATTER_STORE} pattern
Date: Thu, 29 Jun 2023 17:04:31 +0200 [thread overview]
Message-ID: <ca89b89c-9c69-0687-df95-9d28505b4dc6@gmail.com> (raw)
In-Reply-To: <20230626104303.3098270-1-juzhe.zhong@rivai.ai>
Hi Juzhe,
just looking at the documentation changes.
> +@cindex @code{len_mask_gather_load@var{m}@var{n}} instruction pattern
> +@item @samp{len_mask_gather_load@var{m}@var{n}}
> +Like @samp{gather_load@var{m}@var{n}}, but takes an extra len operand
> +as operand 5 and an extra mask operand as operand 6. Bit @var{i} of
> +the mask is set and i < len if element @var{i} of the result should be
> +loaded from memory. Element @var{i} of the result should be undefined
> +value when either Bit @var{i} of the mask is clear or i >= len.
> +
I would suggest to rephrase this slightly as:
"Like ... but takes an extra length operand (operand 5) as well as a
mask operand (operand 6). Similar to len_maskload, the instruction
loads at most (operand 5) elements from memory.
Bit @var{i} of the mask is set if element @var{i} of the result should
be loaded from memory and clear if element @var{i} of the result
should be undefined. Mask elements @var{i} with i > (operand 5) are
ignored."
to make it more similar to mask_gather_load. Further improvements
welcome though - not sure if we should refer to len_maskload at all
because it has a bias operand and mask_gather_load doesn't.
> +@cindex @code{len_mask_scatter_store@var{m}@var{n}} instruction pattern
> +@item @samp{len_mask_scatter_store@var{m}@var{n}}
> +Like @samp{scatter_store@var{m}@var{n}}, but takes an extra len operand as
> +operand 5 and an extra mask operand as operand 6. Bit @var{i} of the mask
> +is set and i < len if element @var{i} of the result should be stored to memory.
> +
"an extra length operand (operand 5)... The instruction stores
at most (operand 5) elements of (operand 4) to memory.
Bit @var{i} of the mask is set if element @var{i} of (operand 4)
should be stored. Mask elements @var{i} with i > (operand 5) are
ignored."
Regards
Robin
next prev parent reply other threads:[~2023-06-29 15:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-26 10:43 [PATCH] Machine Description: Add LEN_MASK_{GATHER_LOAD,SCATTER_STORE} pattern juzhe.zhong
2023-06-29 15:04 ` Robin Dapp [this message]
2023-06-30 1:43 ` Re: [PATCH] Machine Description: Add LEN_MASK_{GATHER_LOAD, SCATTER_STORE} pattern juzhe.zhong
2023-06-30 6:42 ` Robin Dapp
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=ca89b89c-9c69-0687-df95-9d28505b4dc6@gmail.com \
--to=rdapp.gcc@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=juzhe.zhong@rivai.ai \
--cc=rguenther@suse.de \
--cc=richard.sandiford@arm.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).