public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Vectorizer for types with different size
@ 2023-10-16 14:05 Li, Pan2
  2023-10-17  8:23 ` Richard Biener
  0 siblings, 1 reply; 4+ messages in thread
From: Li, Pan2 @ 2023-10-16 14:05 UTC (permalink / raw)
  To: gcc; +Cc: Richard Biener, richard.sandiford, juzhe.zhong, kito.cheng

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-10-17 12:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-16 14:05 Vectorizer for types with different size Li, Pan2
2023-10-17  8:23 ` Richard Biener
2023-10-17  8:33   ` Li, Pan2
2023-10-17 12:08     ` Li, Pan2

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).