This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Another libmvect question (vectorizing sincos calls)
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Steve Ellcey <sellcey at cavium dot com>
- Cc: gcc <gcc at gcc dot gnu dot org>
- Date: Tue, 27 Mar 2018 22:29:28 +0000
- Subject: Re: Another libmvect question (vectorizing sincos calls)
- References: <1522185581.18659.122.camel@cavium.com>
On Tue, 27 Mar 2018, Steve Ellcey wrote:
> Here is another libmvec question. While testing on x86 I could easily make
> a loop with calls to sin, cos, log, exp, or pow and see them vectorized when
> I compile with -Ofast. But if I try making a loop with sincos, it does not
> get vectorized. Is that to be expected?
The sincos libmvec functions have a rather peculiar ABI; see
<https://sourceware.org/bugzilla/show_bug.cgi?id=20024>; that may not be
well-suited to vectorization in most cases. So far new exports with a
different vector ABI (and corresponding different header declarations)
have not yet been added.
--
Joseph S. Myers
joseph@codesourcery.com