public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeff Law <jeffreyalaw@gmail.com>
To: Kito Cheng <kito.cheng@sifive.com>,
	gcc-patches@gcc.gnu.org, juzhe.zhong@rivai.ai
Subject: Re: [PATCH] RISC-V: Improve vector_insn_info::dump for LMUL and policy
Date: Fri, 12 May 2023 11:12:33 -0600	[thread overview]
Message-ID: <11757c9a-6beb-4b74-c134-3a6906888288@gmail.com> (raw)
In-Reply-To: <20230512133254.59478-1-kito.cheng@sifive.com>



On 5/12/23 07:32, Kito Cheng via Gcc-patches wrote:
> Convert vlmul and policy to human readable string, some example below:
> 
> Before:
> [VALID,Demand field={1(VL),0(DEMAND_NONZERO_AVL),1(SEW),0(DEMAND_GE_SEW),1(LMUL),0(RATIO),0(TAIL_POLICY),0(MASK_POLICY)}
> AVL=(reg:DI 0 zero)
> SEW=16,VLMUL=3,RATIO=2,TAIL_POLICY=1,MASK_POLICY=1]
>               ^                     ^             ^
> 
> After:
> [VALID,Demand field={1(VL),0(DEMAND_NONZERO_AVL),1(SEW),0(DEMAND_GE_SEW),1(LMUL),0(RATIO),0(TAIL_POLICY),0(MASK_POLICY)}
> AVL=(reg:DI 0 zero)
> SEW=16,VLMUL=m8,RATIO=2,TAIL_POLICY=agnostic,MASK_POLICY=agnostic]
>               ^^                     ^^^^^^^^             ^^^^^^^^
> 
> gcc/ChangeLog:
> 
> 	* config/riscv/riscv-vsetvl.cc (vlmul_to_str): New.
> 	(policy_to_str): New.
> 	(vector_insn_info::dump): Use vlmul_to_str and policy_to_str.
OK
jeff

  reply	other threads:[~2023-05-12 17:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-12 13:32 Kito Cheng
2023-05-12 17:12 ` Jeff Law [this message]
2023-05-13  6:17   ` Kito Cheng

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=11757c9a-6beb-4b74-c134-3a6906888288@gmail.com \
    --to=jeffreyalaw@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=juzhe.zhong@rivai.ai \
    --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).