public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Kito Cheng <kito.cheng@gmail.com>
To: Juzhe-Zhong <juzhe.zhong@rivai.ai>
Cc: gcc-patches@gcc.gnu.org, kito.cheng@sifive.com,
	jeffreyalaw@gmail.com,  rdapp.gcc@gmail.com
Subject: Re: [PATCH V3] RISC-V: Expand VLS mode to scalar mode move[PR111391]
Date: Thu, 14 Sep 2023 16:11:02 +0800	[thread overview]
Message-ID: <CA+yXCZBpxXiynoMWr5Ex4_47Dwd6nBE4Rga8x=YEk0-vj+KrHw@mail.gmail.com> (raw)
In-Reply-To: <20230914080321.3234794-1-juzhe.zhong@rivai.ai>

On Thu, Sep 14, 2023 at 4:04 PM Juzhe-Zhong <juzhe.zhong@rivai.ai> wrote:
>
> This patch fixes https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111391
>
> I notice that previous patch (V2 patch) cause additional execution fail of pr69719.c
> This FAIL is because of the latent BUG of VSETVL PASS.
>
> So this patch includes VSETVL PASS fix even though it's not related to the PR111391.
>
> I have confirm the whole regression no additional FAILs are introduced.
>
>         PR target/111391
>
> gcc/ChangeLog:
>
>         * config/riscv/autovec.md (@vec_extract<mode><vel>): Remove @.
>         (vec_extract<mode><vel>): Ditto.
>         * config/riscv/riscv-vsetvl.cc (emit_vsetvl_insn): Fix bug.
>         (pass_vsetvl::local_eliminate_vsetvl_insn): Ditto.
>         * config/riscv/riscv.cc (riscv_legitimize_move): Expand move.
>
> gcc/testsuite/ChangeLog:
>
>         * gcc.target/riscv/rvv/autovec/partial/slp-9.c: Adapt test.
>         * gcc.target/riscv/rvv/autovec/pr111391.c: New test.
>
> ---
>  gcc/config/riscv/autovec.md                   |  2 +-
>  gcc/config/riscv/riscv-vsetvl.cc              |  4 ++-
>  gcc/config/riscv/riscv.cc                     | 32 +++++++++++++++++++
>  .../riscv/rvv/autovec/partial/slp-9.c         |  1 -
>  .../gcc.target/riscv/rvv/autovec/pr111391.c   | 28 ++++++++++++++++
>  5 files changed, 64 insertions(+), 3 deletions(-)
>  create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/autovec/pr111391.c
>
> diff --git a/gcc/config/riscv/autovec.md b/gcc/config/riscv/autovec.md
> index e74a1695709..7121bab1716 100644
> --- a/gcc/config/riscv/autovec.md
> +++ b/gcc/config/riscv/autovec.md
> @@ -1442,7 +1442,7 @@
>  ;; -------------------------------------------------------------------------
>  ;; ---- [INT,FP] Extract a vector element.
>  ;; -------------------------------------------------------------------------
> -(define_expand "@vec_extract<mode><vel>"
> +(define_expand "vec_extract<mode><vel>"

Why remove this? I saw this change was introduced in v3?


>    [(set (match_operand:<VEL>     0 "register_operand")
>       (vec_select:<VEL>
>         (match_operand:V_VLS      1 "register_operand")

  reply	other threads:[~2023-09-14  8:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-14  8:03 Juzhe-Zhong
2023-09-14  8:11 ` Kito Cheng [this message]
2023-09-14  8:15   ` juzhe.zhong
2023-09-14  9:18   ` juzhe.zhong
2023-09-14  9:20     ` Kito Cheng
2023-09-14  9:23       ` juzhe.zhong
2023-09-14  9:26         ` Kito Cheng
2023-09-14 10:08           ` juzhe.zhong
2023-09-14  9:26       ` juzhe.zhong

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='CA+yXCZBpxXiynoMWr5Ex4_47Dwd6nBE4Rga8x=YEk0-vj+KrHw@mail.gmail.com' \
    --to=kito.cheng@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jeffreyalaw@gmail.com \
    --cc=juzhe.zhong@rivai.ai \
    --cc=kito.cheng@sifive.com \
    --cc=rdapp.gcc@gmail.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).