public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Stubbs <ams@codesourcery.com>
To: Tamar Christina <Tamar.Christina@arm.com>,
	GCC Development <gcc@gcc.gnu.org>
Subject: Re: Complex multiply optimization working?
Date: Mon, 11 Apr 2022 13:51:59 +0100	[thread overview]
Message-ID: <90b263d0-e483-72d5-65e6-3d15f1c63d45@codesourcery.com> (raw)
In-Reply-To: <VI1PR08MB532594A403817228E5020C42FFEA9@VI1PR08MB5325.eurprd08.prod.outlook.com>

On 11/04/2022 13:03, Tamar Christina wrote:
> They work fine in both GCC 11 and HEAD https://godbolt.org/z/Mxxz6qWbP
> Did you actually enable the instructions?

Yes, as I said it uses the instructions, just not fully vectorized. 
Anyway, the problem was I needed -ffast-math to skip the NaN checks.

> There are both SLP and LOOP variants in the testsuite. All the patterns are inside of a loop
> The mul tests are generated from https://github.com/gcc-mirror/gcc/blob/master/gcc/testsuite/gcc.dg/vect/complex/complex-mul-template.c
> 
> Where the tests that use of this template instructs the vectorizer to unroll some cases
> and others they're kept as a loop. So both are tested in the testsuite.

Thanks. This is helpful. My grep skills clearly need work.

Andrew

      reply	other threads:[~2022-04-11 12:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-11 11:19 Andrew Stubbs
2022-04-11 12:02 ` Richard Biener
2022-04-11 12:47   ` Andrew Stubbs
2022-04-11 12:03 ` Tamar Christina
2022-04-11 12:51   ` Andrew Stubbs [this message]

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=90b263d0-e483-72d5-65e6-3d15f1c63d45@codesourcery.com \
    --to=ams@codesourcery.com \
    --cc=Tamar.Christina@arm.com \
    --cc=gcc@gcc.gnu.org \
    /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).