<div dir="ltr"><div><div><div><div><div><div><div>I would imagine <span style="font-family:monospace,monospace">__builtin_shufflevector</span> is what you're after. However that takes integer constants to build a shuffle mask from. I'm not aware of one that takes a shuffle mask vector (which seems like your code is passing in). So I'm not sure if this is of any help to you at all.<br><br></div>In any case, perhaps the code should wrap calls like this one in something like:<br></div><span style="font-family:monospace,monospace">#ifndef __has_builtin<br></span></div><span style="font-family:monospace,monospace">#define __has_builtin(x) 0<br></span></div><span style="font-family:monospace,monospace">#endif</span><br></div>and<br></div><span style="font-family:monospace,monospace">#if __has_builtin(__builtin_shuffle)<br></span></div><span style="font-family:monospace,monospace">...<br>#endif</span><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 22, 2017 at 9:21 AM, Armin K. via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I've built LLVM/Clang 5.0.0rc2 on Linux x86_64, and I am using its runtime libraries<br>
(compiler-rt, libc++, openmp).<br>
<br>
While building pixman, I get the following error with 5.0.0rc2, which did not happen<br>
with 4.0.1:<br>
<br>
utils-prng.c:207:27: error: use of unknown builtin '__builtin_shuffle' [-Wimplicit-function-<wbr>declaration]<br>
randdata.vb = __builtin_shuffle (randdata.vb, bswap_shufflemask);<br>
<br>
There's no mention of __builtin_shuffle in release notes, so I need to ask:<br>
<br>
What happened to __builtin_shuffle, and what should be used instead of it so I can<br>
get rid of the compiler error above?<br>
<br>
Thanks!<br>
______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>