Thanks for the answer,<br><br>So if i understand right, i can't directly compile the c code using clang.<br>And i need to manually generate some llvm ir to replace the builtin function.<br><br>Is that right?<br><br><br>
<div class="gmail_quote">2012/6/4 Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Christophe,<br>
<div><div class="h5"><br>
> I recently migrate from llvm/clang 2.8 to 3.1.<br>
> The builtin __builtin_ia32_pcmpeqd128 compile and works perfectly with clang 2.8.<br>
> But with clang 3.1, i get the compilation error :<br>
><br>
> use of unknown builtin '__builtin_ia32_pcmpeqd128' [-Wimplicit-function-declaration]<br>
>         __v4i comp = __builtin_ia32_pcmpeqd128(vectTag, vectTag2);<br>
><br>
> (cf dummy.c -> clang -c dummy.c -o dummy.o)<br>
><br>
> Is that normal? Is there an other way to do it?<br>
<br>
</div></div>I think it was removed because you can get the same effect using generic IR:<br>
a "icmp eq" of the vectors, followed by a "sext" to the result type.<br>
<br>
Ciao, Duncan.<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br>