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, lehua.ding@rivai.ai, kito.cheng@sifive.com
Subject: Re: [PATCH] RISC-V: Enable vec_init testsuite for RVV VLA vectorization
Date: Mon, 28 Aug 2023 11:48:07 +0800	[thread overview]
Message-ID: <CA+yXCZBEh_b1fCuw4=8KKnf-HuOrwcGMQKGSrp9sfCFPa5spJw@mail.gmail.com> (raw)
In-Reply-To: <20230828031217.2801549-1-juzhe.zhong@rivai.ai>

> @@ -11100,6 +11101,15 @@ proc check_vect_support_and_set_flags { } {
>          }
>      } elseif [istarget amdgcn-*-*] {
>          set dg-do-what-default run
> +    } elseif [istarget riscv64-*-*] {
> +       if [check_effective_target_riscv_vector_hw] {
> +           lappend DEFAULT_VECTCFLAGS "--param" "riscv-autovec-preference=scalable"
> +           set dg-do-what-default run
> +       } else {
> +           lappend DEFAULT_VECTCFLAGS "-march=rv64gcv_zfh" "-mabi=lp64d"

I would suggest using `-march=rv64gcv` or `-march=rv64gcv_zvfh_zfh`?
Just zfh is not meaningful I think.

  reply	other threads:[~2023-08-28  3:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-28  3:12 Juzhe-Zhong
2023-08-28  3:48 ` Kito Cheng [this message]
2023-08-28  7:15   ` 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+yXCZBEh_b1fCuw4=8KKnf-HuOrwcGMQKGSrp9sfCFPa5spJw@mail.gmail.com' \
    --to=kito.cheng@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=juzhe.zhong@rivai.ai \
    --cc=kito.cheng@sifive.com \
    --cc=lehua.ding@rivai.ai \
    /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).