This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Idea: extend gcc to save C from the hell of intel vector instructions
- From: Alexander Monakov <amonakov at ispras dot ru>
- To: Warren D Smith <warren dot wds at gmail dot com>
- Cc: Andrew Pinski <pinskia at gmail dot com>, GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Wed, 20 Feb 2019 20:23:36 +0300 (MSK)
- Subject: Re: Idea: extend gcc to save C from the hell of intel vector instructions
- References: <CAAJP7Y2H7RMrmm6Q9PxPzp7y92WpdzPdvUVB4uOWP+f3aBu=-Q@mail.gmail.com> <CA+=Sn1=XU98vkQSqoL30LgdE_k=OKO=N635McUBcnBBYRzZOQQ@mail.gmail.com> <CAAJP7Y2YJVbK3yvpGdOYWzQo+Vhn7Zixk_U-FT45XzQNv4dBAg@mail.gmail.com>
On Wed, 20 Feb 2019, Warren D Smith wrote:
> but if I try to replace that with the nicer (since more portable)
> c = __builtin_shuffle(a, b);
> then
> error: use of unknown builtin '__builtin_shuffle'
> [-Wimplicit-function-declaration]
Most likely you're on OS X and the 'gcc' command actually invokes Clang/LLVM.
Clang does not implement this builtin (there's __builtin_shufflevector with
a different interface — see Clang documentation for details).
Alexander