public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: GT <tnggil@protonmail.com>
To: Richard Biener <richard.guenther@gmail.com>
Cc: Jakub Jelinek <jakub@redhat.com>,
	"gcc@gcc.gnu.org" <gcc@gcc.gnu.org>,
	Szabolcs Nagy <Szabolcs.Nagy@arm.com>, nd <nd@arm.com>,
	Bill Schmidt <wschmidt@linux.ibm.com>,
	"tnggil@protonmail.com" <tnggil@protonmail.com>
Subject: Re: PPC64 libmvec implementation of sincos
Date: Sun, 08 Dec 2019 21:40:00 -0000	[thread overview]
Message-ID: <lyW7bEDQcGe8hV1r_r-252urMynbbu4bJHT-mEJOb4rljDo4-H-BpPiZcKO3EVm2p2EkkvF0Xl_CLCFRael9C5TiBdoNLJ4TCEXbNTPe8iU=@protonmail.com> (raw)
In-Reply-To: <CCED278B-4638-4238-A798-9FD4C98EF2BE@gmail.com>

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, December 6, 2019 12:43 PM, Richard Biener richard.guenther@gmail.com wrote:

...
...

> > Are we certain the change we want is to support _Complex double so that
> > cexpi is auto-vectorized?
> > Looking at the resulting executable of the code with sincos in the
> > loop, the only function called
> > is sincos. Not builtin_cexpi or any variant of cexpi. File
> > gcc/builtins.c expands calls to builtin_cexpi
> > to sincos! What is gained by the compiler going through the
> > transformations sincos -> builtin_cexpi ->
> > sincos?
>
> Yes, we want to support vectorizing cexpi because that is what the compiler will lower sincos to. The sincos API is painful to deal with due to the data dependences it introduces. Now, the vectorizer can of course emit calls to a vectorized sincos it just needs to be able to deal with cexpi input IL.
>
> Richard.

I'm modifying the code trying to get complex double accepted as a valid type by the vectorizer.
This is the first time I'm dealing with GCC source so I ask for some patience.

Function mode_for_vector in gcc/stor-layout.c requires a new else-if for complex double. I cannot
seem to find a header file where MIN_MODE_VECTOR_FLOAT and similar macros are defined. I expect
a new MIN_MODE_COMPLEX_VECTOR_FLOAT to be defined in the same file as the existing similar macros.
How do I go about making this change?

Thanks.
Bert.

  reply	other threads:[~2019-12-08 21:40 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-27 19:23 GT
2019-09-30 13:53 ` Szabolcs Nagy
2019-09-30 17:30   ` GT
2019-09-30 18:07     ` Szabolcs Nagy
2019-09-30 18:09   ` Richard Biener
2019-11-25 16:53     ` GT
2019-11-27  8:19       ` Richard Biener
2019-12-04 20:53         ` GT
2019-12-05  9:44           ` Richard Biener
2019-12-05 17:46             ` GT
2019-12-06 10:48               ` Richard Biener
2019-12-06 11:15                 ` Jakub Jelinek
2019-12-06 11:39                   ` Richard Biener
2019-12-06 16:50                     ` GT
2019-12-06 17:43                       ` Richard Biener
2019-12-08 21:40                         ` GT [this message]
2019-12-09  8:40                           ` Richard Biener
2019-12-09 17:36                             ` GT
2019-12-11 17:17                               ` GT
2019-12-18 16:50                             ` GT
2019-12-28 20:01                             ` GT
2020-01-09 13:43                               ` Richard Biener
2020-01-16 11:40                                 ` GT
2020-01-17  8:17                                   ` GT
2020-01-17 16:37                                     ` Richard Biener

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='lyW7bEDQcGe8hV1r_r-252urMynbbu4bJHT-mEJOb4rljDo4-H-BpPiZcKO3EVm2p2EkkvF0Xl_CLCFRael9C5TiBdoNLJ4TCEXbNTPe8iU=@protonmail.com' \
    --to=tnggil@protonmail.com \
    --cc=Szabolcs.Nagy@arm.com \
    --cc=gcc@gcc.gnu.org \
    --cc=jakub@redhat.com \
    --cc=nd@arm.com \
    --cc=richard.guenther@gmail.com \
    --cc=wschmidt@linux.ibm.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).