public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Li, Pan2" <pan2.li@intel.com>
To: "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Cc: Richard Biener <richard.guenther@gmail.com>,
	"richard.sandiford@arm.com" <richard.sandiford@arm.com>,
	"juzhe.zhong@rivai.ai" <juzhe.zhong@rivai.ai>,
	"kito.cheng@gmail.com" <kito.cheng@gmail.com>
Subject: Vectorizer for types with different size
Date: Mon, 16 Oct 2023 14:05:38 +0000	[thread overview]
Message-ID: <MW5PR11MB59086C2B6193F6D88353D276A9D7A@MW5PR11MB5908.namprd11.prod.outlook.com> (raw)

Hi Richard Biener,

Recently I am try to enable the RISC-V auto-vec for the lrint family, which is trying to convert the HF/SF/DF to long type.

Then I found the vectorizer can only act on the types with the same data size. For example, DF to DI (long in RV64) works
well for standard pattern name lrintmn2 but fails on other combinations like SF to DI.

However, according the legacy hook TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION may help to resolve the problem
but I would like to learn if there is any plan that the middle-end would like to support the types with different size before we
start to implement the hook.

I also have a try for ARM for this, you can reference this link https://godbolt.org/z/o41hr9rY9.

Thanks in advance and have a great day, ;)!

Pan

             reply	other threads:[~2023-10-16 14:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-16 14:05 Li, Pan2 [this message]
2023-10-17  8:23 ` Richard Biener
2023-10-17  8:33   ` Li, Pan2
2023-10-17 12:08     ` Li, Pan2

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=MW5PR11MB59086C2B6193F6D88353D276A9D7A@MW5PR11MB5908.namprd11.prod.outlook.com \
    --to=pan2.li@intel.com \
    --cc=gcc@gcc.gnu.org \
    --cc=juzhe.zhong@rivai.ai \
    --cc=kito.cheng@gmail.com \
    --cc=richard.guenther@gmail.com \
    --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).